Re: Shark question
Re: Shark question
- Subject: Re: Shark question
- From: Wade Tregaskis <email@hidden>
- Date: Mon, 16 Jun 2008 12:33:44 -0700
Self is the number of samples recorded where that function (or line of source, or instruction) was executing. When looking at the profile view (function breakdown), self should add up to 100%. An easy way to check is to select all the rows in the outline view. If you have a session where this doesn't happen, please send it our way. I figured it out. Heavy view does not have this problem. Tree view has this problem when some functions are not expanded. If the stack trace is fully expanded (by option clicking the triangle for example), then the Self column sums to 100%. Otherwise, stack frames contained within closed triangles don't register in the Self column and consequently Self doesn't sum to 100%. I suppose this behavior makes sense, I certainly can't think of an alternative that makes better sense.
The behaviour is correct; no problems here. Self will add to 100% across the entire calltree because it's straightforwardly the percentage of time by function, as noted. Total will sum to 100% for the roots of the trees (whether in heavy or tree view), but because it's an aggregate statistic that includes all the callers or callees (heavy and tree views, respectively), it "repeats", if you like to think of it that way.
This shouldn't be confusing; that it is to you makes me suspect you're simply wanting to see the stats calculated in a different way, for whatever purpose you currently have... if you can figure out what that is, or at least explain what you're trying to do, we might be able to either point you in a better direction, or take it onboard as an enhancement request.
Wade |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden