I've been trying to profile a subroutine that needs to work faster using perl -d:DProf and dprofpp. The code I'm testing is embedded in a good bit of other code (mostly setting up the environment for the test code) so I would like to use the -g option of dprofpp to look only at the data for the relevant sub and the things it calls.
I'm running into a brick wall. It looks like it just doesn't work. I get the following:
> /usr/local/bin/dprofpp -g base::import tmon.out Modification of non-creatable array value attempted, subscript -1 at / +usr/local/stow/perl-debug5.6.1/bin/dprofpp line 584, <fh> line 210.
I'm using Perl 5.6.1 on a Solaris system and the Devel::DProf and dprofpp that comes with it.
I've tried a build of perl with and without -DDEBUGGING and that only seems to change the line number in the error message above.
Having looked around on PM and on the Web I've found nothing, but a couple of other mentions of the problem with no solution.
So my question is: Have any of you ever successfully used the -g option of dprofpp? If you have can you tell me a little about the environment you were in, e.g. perl version, os, a little of the circumstances of your testing, anything you think might be helpful to me getting it to work.
Thanks.
In reply to dprofpp -g doesn't work for me by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |