How exactly can I use shark to profile my iPhone app?

瘦欲@ 提交于 2019-11-28 05:06:22
  1. Build app and launch on device
  2. Launch Shark
  3. From the Shark menu, select Sampling->Network/iPhone Profiling
  4. In the Shark window, select the radio button "Control network profiling of shared computers".
  5. Select your iPhone in the list and optionally configure the profiling session
  6. 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!

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.

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!