Re: Drawing speed
Re: Drawing speed
- Subject: Re: Drawing speed
- From: Andrew Pinski <email@hidden>
- Date: Tue, 8 Jul 2003 07:54:02 -0400
On Tuesday, Jul 8, 2003, at 06:00 US/Eastern, Cameron Hayne wrote:
On 8/7/03 1:43 AM, "Henry McGilton" <email@hidden> wrote:
So, I need to put in some timing code to find out who is doing what
to whom, how often, and how fast . . . I want to determine how much
time is taken creating colours, how much time is used in the
triangle subdivision, and how much time is used in defining the
Bezier paths.
While you may still to do that sort of manual instrumenting of your
code to
get those measurements, you might want to try first just using the
"Shark"
tool that comes as part of Apple's CHUD Tools package. It doesn't
require
any recompiling or anything (although it gives you more info if you
run a
program that has been compiled with debugging symbols) and it shows you
where the time is being spent. I found it very effective in pointing
out
where the "hot spots" were in my program. Highly recommended.
You can also use Saturn(part of CHUD 3.0) (which requires a recompile)
which is like gprof but
it includes more information like when where certain functions where
called.
It also shows the "full" function call tree. It is not "full" because
you
have to start and stop Saturn so you do not get the tree before you
start it.
Thanks,
Andrew Pinski
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.