views:

210

answers:

2

Hi,

We're trying to determine why one of our web app ends up getting the Mobile Safari app killed on the iPad (works fine in the Simulator or even on the iPhone).

Is it possible to profile a web application CPU/Memory usage by profiling Mobile Safari app via Instruments (either on the simulator, or even better on the device)?

Thanks!

A: 

You can maybe try in Instruments to open your profiling in the simulator and choose as executable somewhere in (User)/Library/Application Support/iPhone Simulator/ for MobileSafari.app. Or you may try to make an (simple) app that loads the webapp in a UIWebKit view and use Instruments for that.

puckipedia
A: 

You can definitely use Shark.app against a live iPhone device (if it's registered for development) - that gives pretty useful memory and CPU profiling.

I haven't looked at the recent Xcode builds but I'd expect Instruments.app to be able to do something similar - it's very handy for snooping around the simulator anyway.

Rasputnik