• 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
Markers to correlate events with Time Profiler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Markers to correlate events with Time Profiler?


  • Subject: Markers to correlate events with Time Profiler?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 05 Dec 2013 18:40:50 -0800

My app shows a little “What do you want to do” alert with 3 buttons upon launch, like Xcode except way, way less fancy.  Upon clicking a button in this window, there is a 2-3 second delay, sometimes with a beachball, before the button’s action method gets invoked.  I find this very annoying and am trying to fix it.

So I used Time Profiler in Instruments, and it seems to me that there is not much going on during this 2-3 second spin; CPU usage is less than 10%, and the only action is in system libraries.  So it looks like there is nothing I can do about this, but I’m not quite sure because I’m watching the elapsed time indicator in Instruments as I click that button, and try to eyeball where I should start and end the Inspection Range.

It gets a little better if I put an exit(0) as the first line in the button’s action method.  Then I know to inspect back 2-3 seconds from where the activity went to zero.  But such a kludge reduces my confidence even further.  Is there a more intelligent way to insert markers in Time Profiler, to correlate with code execution or user actions?

Thanks,

Jerry


 _______________________________________________
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: Markers to correlate events with Time Profiler?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: FxPlug plug-in Xcode templates?
  • Next by Date: Re: Markers to correlate events with Time Profiler?
  • Previous by thread: Re: FxPlug plug-in Xcode templates?
  • Next by thread: Re: Markers to correlate events with Time Profiler?
  • Index(es):
    • Date
    • Thread