IOS – How to identify CPU and memory usage per process on iPhone

iosiphonememorymemory leakperformance

There are many common apps available to show total system RAM usage and free. However, my understanding is only a jailbroken phone has access to the APIs to access PER PROCESS memory usage on iOS. How can one do this most effectively?

This link has a few example tools but they all seem outdated and no information if they work on iOS 5 & iOS 6. http://www.ifans.com/forums/threads/troubleshooting-memory-issues.142660/

Best Answer

Xcode has an app called Instruments and you can use it to gather all sorts of CPU and memory statistics both live as the device runs and to save for analysis over time. This use of the tool doesn't require a developer account, any paid software, or a jailbroken device. You do need to set up the devices in Xcode's organizer to indicate you wish to use them for development and connect them via USB - just cancel out of any requests to manage certificates or developer profiles as you add each device to Xcode's organizer.

instruments and iOS sampling

Above is a one click, capture and you can dive as deep as I could imagine anyone needs by selecting extra data to be sampled and displayed...

detailed instruments