DrWhy has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dprofpp -g doesn't work for me
by BrowserUk (Patriarch) on Jan 07, 2004 at 05:35 UTC | |
by DrWhy (Chaplain) on Jan 07, 2004 at 21:08 UTC | |
by BrowserUk (Patriarch) on Jan 07, 2004 at 22:05 UTC | |
by DrWhy (Chaplain) on Jan 08, 2004 at 18:33 UTC | |
|
Re: dprofpp -g doesn't work for me
by Anonymous Monk on Jan 07, 2004 at 07:31 UTC |