Re: Shark failing to get entire stack

Boris Zbarsky <[email protected]> Sat, 13 Nov 2010 22:42:17 -0500
Newsgroups gmane.comp.mozilla.performance
Message-ID <[email protected]>
On 11/13/10 3:13 PM, Jonathan Watt wrote:
> My first problem is that in Top-Down Tree view Shark claims that
> nsCanvasRenderingContext2D::DrawImage is the top of the call stack, which of
> course is nonsense. Does anyone know why it's doing that, and how I can get it
> to figure out/display the full call stack?

Shaver covered this.

> I'm also seeing a lot of "Unknown Library" entries without symbols. For example:

Shaver also covered this, but one thing that I've found somewhat works 
is to blame the entire "Unknown Library" library to callers.  That will 
make all the mjit-generated code time look like self time for JaegerShot 
and similar for tjit-generated code (becomes self time for some method I 
can't recall the name of right now), and more importatly makes other 
things called from jit code look like they were called from JaegerShot 
and the other method, respectively.  This might not help you much past 
"30% of our time is spent in code we generated outselves", but more 
often it turns out that the real time sinks are things the code we 
generated calls.

-Boris