Devel::EndStatsShow various statistics at the end of program run | |
Download |
Devel::EndStats Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Steven Haryanto
- Publisher web site:
- http://search.cpan.org/~sharyanto/
Devel::EndStats Tags
Devel::EndStats Description
Show various statistics at the end of program run Devel::EndStats is a Perl module that runs in the END block, displaying various statistics about your program, such as: how many seconds the program ran, how many module files and total number of lines loaded (by inspecting %INC), etc.Some notes/caveats:END blocks declared after Devel::EndStats' will be executed after it, so in that case it's ideal to load Devel::EndStats as the last module.In modules statistics, unless instructed otherwise, Devel::EndStats excludes itself and the modules it uses. Devel::EndStats tries to check whether those modules are actually loaded/used by your program instead of just by Devel::EndStats and if so, will not exclude them. See exclude_endstats_modules in "OPTIONS" for information on how to not do the excluding.SYNOPSIS # from the command line % perl -MDevel::EndStats script.pl ##### sample output ##### < normal script output, if any... > # BEGIN stats from Devel::EndStats # Program runtime duration (s): 2 # Total number of module files loaded: 132 # Total number of modules lines loaded: 48772 # END stats ##### sample output (with verbose=1, some cut) ##### < normal script output, if any... > # BEGIN stats from Devel::EndStats # Program runtime duration (s): 2 # Total number of module files loaded: 132 # Total number of modules lines loaded: 48772 # Lines from Class::MOP::Class: 1733 # Lines from overload: 1499 # Lines from Moose::Util::TypeConstraints: 1390 # Lines from File::Find: 1349 # Lines from Data::Dumper: 1306 ... # END stats Requirements: · Perl
Devel::EndStats Related Software