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

前端 未结 3 1316
生来不讨喜
生来不讨喜 2020-12-08 05:34

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 ve

相关标签:
3条回答
  • 2020-12-08 06:15

    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

    0 讨论(0)
  • 2020-12-08 06:17
    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!

    0 讨论(0)
  • 2020-12-08 06:18

    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.

    0 讨论(0)
提交回复
热议问题