• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tracking animation in multiple windows using NSTimer vs NSThread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Tracking animation in multiple windows using NSTimer vs NSThread?
      • From: "l.m.orchard" <email@hidden>
References: 
 >Tracking animation in multiple windows using NSTimer vs NSThread? (From: "l.m.orchard" <email@hidden>)

  • Prev by Date: Re: How to convert white color to alpha color in a gif image
  • Next by Date: Re: Tracking animation in multiple windows using NSTimer vs NSThread?
  • Previous by thread: Tracking animation in multiple windows using NSTimer vs NSThread?
  • Next by thread: Re: Tracking animation in multiple windows using NSTimer vs NSThread?
  • Index(es):
    • Date
    • Thread