in reply to DProf + Safe = corrupted tmon.out

Have you tried dprofpp's -F switch?

One thing that produces a garbled tmon.out file is code that uses the magic goto:

sub bsub { return ...; } sub asub{ goto &bsub; }

A bsub never returns to asub, no exit timestamp appears in the trace for that sub. -F will fake those timestamps and allow dprofpp to process the file. The fake timestamps will usually be the same as the exit timestamp for the gone to sub</c>, so the timings will all be fairly accurate.

I've never used mod_perl or Safe, so this may be a completely bogus post and waste of your time and mine.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: DProf + Safe = corrupted tmon.out
by smammy (Novice) on Oct 20, 2006 at 15:26 UTC
    This isn't a "garbled" file -- all the exit timestamps are present. -F doesn't help things.