POE::Devel::Benchmarker::Utils - Various utility routines for POE::Devel::Benchmarker
perl -MPOE::Devel::Benchmarker::Utils -e 'print poeloop2load( "IO_Poll" )'
This package contains the utility routines and constants that POE::Devel::Benchmarker needs.
This package exports those subs via @EXPORT_OK:
Returns the current test version, used to identify different versions of the test output
Returns an arrayref of the current benchmark "metrics" that we process
Returns an arrayref of the "known" POE loops as of this version of the Benchmarker
Returns the "parent" class to load for a specific loop. An example is:
$real = poeloop2load( 'IO_Poll' ); # $real now contains "IO::Poll"
Returns the version of the "parent" class for a specific loop. An example is:
$ver = loop2realversion( 'IO_Poll' ); # $ver now contains $IO::Poll::VERSION
Returns a hashref of data from parsing 2 consecutive times() structures in a string. You can pass an additional parameter ( boolean ) to include the original data. An example is:
print Data::Dumper::Dumper( beautify_times( '0.1 0 0 0 0.1 0 0.76 0.09', 1 ) ); { "sys" => 0, # total system time "user" => 0, # total user time "csys" => 0.76 # total children system time "cuser" => 0.08 # total children user time "e_csys" => "0.09", # end children system time ( optional ) "e_cuser" => "0.76", # end children user time ( optional ) "e_sys" => 0, # end system time ( optional ) "e_user" => "0.1", # end user time ( optional ) "s_csys" => 0, # start children system time ( optional ) "s_cuser" => 0, # start children user time ( optional ) "s_sys" => 0, # start system time ( optional ) "s_user" => "0.1" # start user time ( optional ) }
POE::Devel::Benchmarker
Apocalypse <apocal@cpan.org>
Copyright 2009 by Apocalypse
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install POE::Devel::Benchmarker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Devel::Benchmarker
CPAN shell
perl -MCPAN -e shell install POE::Devel::Benchmarker
For more information on module installation, please visit the detailed CPAN module installation guide.