Re: Shark - where is application spending most of the time?
Re: Shark - where is application spending most of the time?
- Subject: Re: Shark - where is application spending most of the time?
- From: Shawn Erickson <email@hidden>
- Date: Wed, 23 Jun 2004 09:20:01 -0700
To do what you are asking for you actually have to instrument the
application. You will most likely want to look at using Saturn. The
CHUD tools have good documentation read over it for an idea of what and
how to use them (/Developer/Documentation/CHUD).
Sample and Shark both periodically test to see what your application is
doing at a given moment, from this you can statically build up an idea
of what is taking longest in your application (more hits often implies
called more often or taking longer). Shark can also do a static
analysis of you application to look for code issues, like stalls, etc.
-Shawn
On Jun 21, 2004, at 12:25 PM, Izidor Jerebic wrote:
Hello!
I asked the following question and got the answer real fast (thank
you!) - just use Shark. I did and it helped me enormously. I solved my
current problem...
But now I became spoiled. Shark only lists functions in two views -
tree view (call stack trace) and something called heavy view, which is
sorted by the time function itself has consumed (but not its
descendants!). I would really like the modified heavy option, that is:
functions sorted by the time they and their descendants have consumed,
because this would give me insight where the program is spending its
time. Right now, with some intuition and some clicking around, I can
guess which method I should be looking at. But it would be really nice
if the program would show them to me, because it already has all the
data, it just needs to display them.
Is there any configuration option to see such list in Shark?
izidor
P.S. If there is no way to do it currently, where should I file
enhancement request? Under what topic?
From: Izidor Jerebic <email@hidden>
Date: 21 June 2004 17:05:21 GMT+02:00
To: email@hidden
Subject: Sampler - where is application spending most of the time?
Hello!
I have a very basic wish - just want to see where my application
spends most of its time.
In the bad old days when profiling was done via gprof, it was easy to
see where your application spends most of the time, because gprof did
list the functions (methods) in one part of its report according to
time spent in the function + its descendants (plus it indicated where
it was called from and all those cycles were quite easy to navigate
in text editor because you could search for text which marked the
cycle)...
So you just skipped a couple system functions and main(), which were
at the top, and you saw clearly where your application is spending
time and how it came there and what was happening there (who was
called by whom etc.)...
Now, we have the Sampler and I cannot find this functionality. I just
want the list of most time consuming functions + number of times they
were called + information which one called them and which functions
were called by them (annotated by % of time consumed by each subpart
so you can navigate to most busy subtree).
How do I achieve this?
izidor
P.S. I did read the Sampler help...
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.