Markers to correlate events with Time Profiler?
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