Re: How to start/stop Instruments (Time Profiler) programatically ?
Re: How to start/stop Instruments (Time Profiler) programatically ?
- Subject: Re: How to start/stop Instruments (Time Profiler) programatically ?
- From: Paul Russell <email@hidden>
- Date: Tue, 25 Jun 2013 11:21:46 +0100
Thanks for the suggestions - I also got a useful response from Ken Thomases on StackOverflow pointing me at DTPerformanceSession, which seems to be exactly what I need: http://stackoverflow.com/a/17293352/253056
Paul On 25 Jun 2013, at 09:10, Quincey Morris < email@hidden> wrote: On Jun 25, 2013, at 00:31 , Paul Russell < email@hidden> wrote: I need to profile just a specific section of my OS X code in a reliable way but I can't seem to find any documentation for Instruments which might tell me how I might do this. It depends what you're trying to do.
You can profile a specific section by setting the in and out times on the timeline at the top of the window.
This works fine for focusing on any section *unless* (for example) Instruments is bogged down trying to record vast quantities of trace data prior to the section of interest.
Another approach is to start the app without Instruments, and attach to the process shortly before the start of the section. (You can likely arrange via debugging code for the app to stall at a suitable moment, to give you the chance to attach, if the normal timing would be hard to work with.)
|
_______________________________________________
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