Search code examples
iphoneperformanceshark

How to bind Shark to an running iPhone app on the device?


I was reading at an apple site that shark captures everything that is running on my mac. Thats stupid. I want it to be constrained only to my iPhone app on the device, but there's just nothing to select the executable or something like that. Also in xcode, "Run > Run with Performance Tool > Shark" is grayed out. But shark 4.6x is running.

Are there any videos (except the WWDC stuff for 1500 bucks) that show how to use Shark with an iPhone app on a device? (I mean how to analyze performance while an app runs on the device)


Solution

  • If you create your symbols manually, according to this doc, Shark will show the application name instead of the address space, according to this doc. Don't know of any videos, but that second document should walk you through it pretty clearly.

    Basically, in Shark, select Sampling > Network/iPhone profiling (shift-command-N).