On Mon, Jun 01, 2009 at 02:02:35AM -0700, Joshua ben Jore wrote: > > On Sun, May 31, 2009 at 12:18 PM, Joshua ben Jore <[email protected]> wrote: > > I'm trying to load NYTProf in a mod_perl process, post-fork because I > > get segfaults when I try it the normal way. I seem to get this error > > alot. Has anyone succeeded at this or know what I need to focus on to > > fix this? I think I need to use Enbugger to load the debugger at > > runtime too but that's theoretically a-ok. I wrote > > http://github.com/jbenjore/Enbugger/blob/206c76c3ee676df29b34daa8d2fc7a7ed408009d/lib/Enbugger/nytprof.pm > > as a first stab at this. > > Nevahmind. I was forgetting to go through all the previously compiled > code and fixup w/ (op->op_ppaddr = PL_ppaddr[op->op_type]).
Or run in use_db_sub mode. If you've code that'll "go through all the previously compiled code and fixup" I'll take a patch to add that as a function call. Others may find it useful. > Now I'm > left with a nagging "Attempt to free unreferenced scalar:" but my > nytprof.out is now some 900K and not empty like it was before. It > seems the reader is highly sensitive to abnormal exits though. I'm > blaming the bad exit of the program being profiled on the bad exit of > the nytprofhtml report. Very likely. Turning off compression might help in that case by reducing the amount that's unflushed at the time of the 'bad exit' (though at the cost of a much bigger file). > inflate failed, error -5 ((null)) at end of input file - is it > truncated? at > /opt/perl-5.10.0/lib/site_perl/5.10.0/darwin-2level/Devel/NYTProf/Data.pm > line 78. I'd take a patch to get_input() to change the croak() if ifile->stdio_at_eof case into a warn() + return. Tim. p.s. I've added you ([email protected]) as a project member, so you've a commit bit now :) --~--~---------~--~----~------------~-------~--~----~ You've received this message because you are subscribed to the Devel::NYTProf Development User group. Group hosted at: http://groups.google.com/group/develnytprof-dev Project hosted at: http://perl-devel-nytprof.googlecode.com CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf To post, email: [email protected] To unsubscribe, email: [email protected] -~----------~----~----~----~------~----~------~--~---
