• 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: How to start/stop Instruments (Time Profiler) programatically ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to start/stop Instruments (Time Profiler) programatically ?
      • From: Paul Russell <email@hidden>
References: 
 >How to start/stop Instruments (Time Profiler) programatically ? (From: Paul Russell <email@hidden>)

  • Prev by Date: Re: How to start/stop Instruments (Time Profiler) programatically ?
  • Next by Date: Re: How to start/stop Instruments (Time Profiler) programatically ?
  • Previous by thread: Re: How to start/stop Instruments (Time Profiler) programatically ?
  • Next by thread: Re: How to start/stop Instruments (Time Profiler) programatically ?
  • Index(es):
    • Date
    • Thread