I enter with some trepidation my first question to the monks...

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.