saxman25 has asked for the wisdom of the Perl Monks concerning the following question:

hi, I have an application written in perl which makes use of POE (http://search.cpan.org/~rcaputo/POE-1.003/lib/POE.pm).

Now I like to use Devel::DProf on this application for creating an execution graph of the script. But end up with the bug mentioned here:
http://search.cpan.org/~rgarcia/perl-5.10.0/ext/Devel/DProf/DProf.pm#BUGS

The culprit is within the POE:
panic: Devel::DProf inconsistent subroutine return at /usr/lib/perl5/vendor_perl/5.10.0/POE/Kernel.pm line 798.

My question:
Are there any similiar possibilities for extracting this kind of information which don't stumble over POE?
Or any other way to automatically generate something like an execution graph while running a skript? (not just "dry parsing" of code but following the exact execution during runtime)



thanks

  • Comment on create an execution graph / Devel::DProf doesn't work with POE

Replies are listed 'Best First'.
Re: create an execution graph / Devel::DProf doesn't work with POE
by Anonymous Monk on Oct 22, 2008 at 10:46 UTC
    for creating an execution graph of the script.
    Try Devel::Trace, then turn that into a graph :)
      thanks.

      but how can I translate the output of Devel::Trace into a execution graph?

      dprofpp can't handle the format of the Trace.

      is there a more general visualisation tool that allows to configure the syntax of the input file?
      or a module which generates dprofpp compatible output?
Re: create an execution graph / Devel::DProf doesn't work with POE
by Anonymous Monk on Oct 22, 2008 at 19:03 UTC
    Devel::DProfLB is compatible with, and produces the same output as Devel::DProf, but with fewer bugs.
      thanks a lot!

      yes, DProfLB can handle the POE.