• 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: Instruments/Performance tools advice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instruments/Performance tools advice


  • Subject: Re: Instruments/Performance tools advice
  • From: Peter N Lewis <email@hidden>
  • Date: Tue, 31 Mar 2009 10:33:11 +0800


On 31/03/2009, at 1:09 , David Dunham wrote:

On 29 Mar 2009, at 04:52, Peter N Lewis wrote:

Alternatively, is there some way to profile a larger time period, but then accurately limit the profiling to the desired time period?

Not sure if this is quite what you're after, but I was doing some Instruments work and needed to use the very confusing Inspection Range to limit what was displayed. (I was looking at memory not CPU, but I imagine the principle's the same.)


Yes - I guess my question boils down in one form to - is there a good way to precisely set the inspection range edges to particular events (eg first call to a specific subroutine). I wouldn't even mind a named subroutine that had "usleep( 10000 ) in it so it was guaranteed to be picked up by the sampler.

Oh well, I solved my problem in part by using the "purge" unix command to purge the disk cache, which made the performance issue repeatable, and then using the inspection range to confirm the bulk of the time was spent where I thought it was, and then pre-flighting the disk access.

Sean McBride also pointed out that with Shark you can programatically start/stop profiling using chudStartRemotePerfMonitor()/ chudStopRemotePerfMonitor()

<http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man1/shark.1.html >

Also, apparently Jonas pointed out there is a performance optimisation mailing list at:

<http://lists.apple.com/mailman/listinfo/perfoptimization-dev>

which I joined, although a look at the archive seems to indicate (perhaps unsurprisingly) it is a bit hard core compared to what I was after.

Thanks,
   Peter.


-- Run macros from your iPhone with Keyboard Maestro Control! or take a break with Derzle for your iPhone

Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
Aragom Space War <http://www.stairways.com/iphone/aragom> Don't get killed!
Derzle <http://www.stairways.com/iphone/derzle> Enjoy a relaxing puzzle.
<http://www.stairways.com/> <http://download.stairways.com/>





_______________________________________________ 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
References: 
 >Instruments/Performance tools advice (From: Peter N Lewis <email@hidden>)
 >Re: Instruments/Performance tools advice (From: David Dunham <email@hidden>)

  • Prev by Date: CustomDataViews and hierarchial classes
  • Next by Date: Curious linker errors
  • Previous by thread: Re: Instruments/Performance tools advice
  • Next by thread: Code Signing sample?
  • Index(es):
    • Date
    • Thread