Re: Tracking animation in multiple windows using NSTimer vs NSThread?
Re: Tracking animation in multiple windows using NSTimer vs NSThread?
- Subject: Re: Tracking animation in multiple windows using NSTimer vs NSThread?
- From: Chris Kane <email@hidden>
- Date: Sun, 12 Aug 2001 11:03:02 -0700
On Saturday, August 11, 2001, at 08:56 PM, l.m.orchard wrote:
Problem is that I use 100% CPU, and I think it's because I'm trying to
make the run loop do too much. [...]
So I'm wondering which part of this process is so heavyweight.
Run Sampler in /Developer/Applications. Point it at your program and
run your program under Sampler for a while. Sampler takes a snapshot of
the threads' call stacks at a periodic interval, and collects the
results into a "tree"/browser. The paths through the tree with the
largest numbers are where Sampler caught the app the most, which are
where the app is spending most of its time.
Chris Kane
Cocoa Frameworks, Apple