I want to use Shark on OS 10.5 to do some basic profiling of my iPhone game (Open GL ES + Objective C). How exactly can I do this? I've read tutorials but they are too verbose for me after a full day of coding at work and a few hours of iPhone development afterwards.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
- Build app and launch on device
- Launch Shark
- From the Shark menu, select Sampling->Network/iPhone Profiling
- In the Shark window, select the radio button "Control network profiling of shared computers".
- Select your iPhone in the list and optionally configure the profiling session
- Press Start to begin profiling, and Stop to end
After that, viewing the profile results is pretty straightforward, assuming you've looked at other profilers before.
Hope this helps!
回答2:
Shark will only work for iOS devices running version 3.x
As of iOS 4.x, SHARK support has been removed from the OS, with no plans to bring it back. Apple recommends using Instruments instead.
回答3:
Right From iOS 4, support for Shark is stopped. INstead we have to use Time Profiler available as part of the Instruments.
A discussion on Apple's Dev forums give information about this:
https://devforums.apple.com/message/243237#243237