• 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: Maybe OT: Speed and Sampler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maybe OT: Speed and Sampler


  • Subject: Re: Maybe OT: Speed and Sampler
  • From: Kurt Revis <email@hidden>
  • Date: Tue, 25 Feb 2003 00:09:28 -0800

On Monday, February 24, 2003, at 11:44 PM, Justin Bakse wrote:

I figured that the two places that might be be slowing it up are the ioproc that copies the data into an array (mostly becaused it is called so often) and the drawRect function.

You're probably right, but you can get more detail than that.

To find out, i ran sampler on my app. and am confused by the results. i find that two functions account for 99%:

mach_msg_trap
and
semaphore_timedwait_signal_trap

after that my redraw is a distant third.

As its name implies, Sampler takes samples of where your program is running at regular time intervals. This includes times when your program is sitting idle waiting for something to do, which is (most likely) most of the time spent in those two functions.

You will probably find it a lot more useful to use Shikari, which takes samples of the entire system. It will let you see only the samples associated with actual execution of your program. It also gives much more detail, including the exact instruction for each sample (instead of just the function).

Shikari is part of the CHUD tools, which you can get here:
http://developer.apple.com/tools/debuggers.html

--
Kurt Revis
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Maybe OT: Speed and Sampler (From: Justin Bakse <email@hidden>)

  • Prev by Date: Re: Idle processing
  • Next by Date: Re: Idle processing
  • Previous by thread: Maybe OT: Speed and Sampler
  • Next by thread: Mixing
  • Index(es):
    • Date
    • Thread