POE::Devel::Profiler - profiles POE programs
perl -MPOE::Devel::Profiler myPOEapp.pl poepp BasicSummary
Added the BasicGraphViz Visualizer -> use it like: poepp BasicGraphViz > output.dot dot -Tpng -o output.png output.dot
First release!
Profiles POE programs for useful data
This module profiles POE programs, in the same way the Devel::DProf family of modules do.
Currently, POE::Devel::Profiler will profile the following:
Program start/end Session create/destruction alarm_set delay_set signal alias_set yield/post/call from a session entering an event ( also includes _default states and failed states ) Garbage Collection on a session
POE::Devel::Profiler will not profile:
Anything not mentioned above :)
This module is currently compatible only with POE::Session, further work will be needed.
If you want to set POE options like ASSERT_DEFAULT, it is currently not possible with this module. The only way to do it is to set environment variables or hardcode the following in your program:
sub POE::Kernel::ASSERT_DEFAULT () { 1 } use POE::Devel::Profiler; use POE;
POE::Devel::Profiler MUST be loaded before POE or craziness will ensue...
The profile data is stored in the file 'poep.out', don't ask me why :)
To interpret the data, use the program 'poepp' and any Visualizer you want, consult the poepp documentation.
L<POE> L<POE::Devel::Profiler::Parser> L<poepp>
Apocalypse <apocal@cpan.org>
Copyright 2004 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::Profiler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Devel::Profiler
CPAN shell
perl -MCPAN -e shell install POE::Devel::Profiler
For more information on module installation, please visit the detailed CPAN module installation guide.