I'm trying to optimize an iPhone game that I am developing which uses the Cocos2D-iphone framework.
I want to use Shark to measure performance but "Run->Start with Performance Tool->Shark" is disabled in XCode (Instruments Leaks works fine). I've configured the build to "Generate Profiling Code", tried building for both the device and the simulator but with no luck, shark still stays disabled.
I also tried to launch Shark manually (outside of XCode), and it was equally ineffective. Under "Sampling->Network/iPhone sampling", I chose the "Control network profiling of shared computers" radiobutton and tick the checkbox next to my listed device. When I pressed Start, nothing happened.
Shark works fine for desktop apps. I'm using Shark 4.7.0 (244.4), and XCode 3.1.3. I'm building the iphone app on SDK ver 2.2.1.
Is there an app I need to install on the iPhone to get Shark to work, or is there something else I'm missing?