How to enable Shark menu item in XCode?

Discussion in 'iPhone/iPad Programming' started by 99miles, Dec 19, 2008.

  1. macrumors member

    Oct 10, 2008
    The Shark and MallocDebug menu items are grayed out in XCode under Start->Run with Performance Tool.
    How do I enable those?
  2. Moderator emeritus


    Jun 15, 2000
    I'm not sure if you can use these with iPhone apps.. I think you need to use Instruments.
  3. macrumors 68030


    Sep 2, 2008
    *) Download your app to the iPhone as usual, you want a release build for performance testing
    *) Launch the app on the device
    *) Launch /Developer/Applications/Performance Tools/Shark in the Finder
    *) Choose Sampling>Network/iPhone menu item
    *) Choose your device in the window
    *) Choose the application from the popup menu under Target so only your app is sampled
    *) Click Start button in window
    *) Do stuff in test application
    *) Click Stop in window

Share This Page