Attribute::Profiled - Profiles specific methods in class
package SomeClass; use Attribute::Profiled; sub long_running_method : Profiled { }
Attribute::Profiled provides a way to profile specific methods with attributes. This module uses Benchmark::Timer to profile elapsed times for your calls to the methods with Profiled attribute on.
Profiling report will be printed to STDERR at the end of program execution.
Options where to print profiling report.
Allows public way to get reports in any timing other than the end of execution. Currently you can do it by explicitly calling report() on $Attribute::Profiled::_Profiler.
$Attribute::Profiled::_Profiler
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Attribute::Handlers, Benchmark::Timer
To install Attribute::Profiled, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Attribute::Profiled
CPAN shell
perl -MCPAN -e shell install Attribute::Profiled
For more information on module installation, please visit the detailed CPAN module installation guide.