Closed GoogleCodeExporter closed 9 years ago
Yes, I'm afraid pprof is hard to understand. :-( Every time I hack on it I
need to take a few minutes to remind myself what functions do what.
In this case, you'll want to look at why the addr2line call is failing. The
routine to look at in pprof is MapToSymbols(). The loop you want is the one
over <SYMBOLS>. You'll want to look at the file (on disk) $main::tmpfile_sym,
to see what addresses are being passed in to addr2line. You can see if those
match up with your expectations (they may not be the exact same as the
addresses in the profile file due to offsets and the like). THen you can look
at $_ inside the <SYMBOLS> loop to see what addr2line is giving back.
It's definitely possible to fall back on nm if addr2line doesn't work, but nm
doesn't correctly handle inlined functions, which addr2line does, so it's
really a solution of last resort. Better is to figure out why addr2line isn't
working, if you can.
Original comment by csilv...@gmail.com
on 9 Dec 2010 at 9:47
Did you ever have a chance to look into this? I'm starting to think about
getting ready to begin preparing for a new perftools release, and I'm hoping to
resolve as many open issues before then, as I can.
Original comment by csilv...@gmail.com
on 10 Jan 2011 at 1:42
No, sorry. I got memory hoarding down considerably "by chance" and haven't
looked into fixing pprof. I'm kind of on tight schedule right now too, sorry
-.- And i overlooked your initial answer -.- Also it would be the first time i
see/touch Perl code ever, i'll have to give me a few hours of crash-course till
i can do anything there at all. But i'll give it a shot upcoming weekend.
Original comment by siana.gearz
on 11 Jan 2011 at 9:43
It's been a while, so closing this CannotReproduce. Feel free to reopen if
you're still seeing the trouble and can figure out what's going wrong (and
ideally how to fix it :-) )
Original comment by csilv...@gmail.com
on 1 Sep 2011 at 1:57
Original issue reported on code.google.com by
siana.gearz
on 9 Dec 2010 at 3:46