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: Quincey Morris <email@hidden>
- Date: Tue, 25 Jun 2013 01:10:05 -0700
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