I am having trouble in getting memory usage of a particular iOS application . Also i want to make sure that what ever output result i am getting is for particular running app on iPhone.
-
Since we can't read your mind, explain what you are actually trying to achieve. There's a button in Xcode to achieve what you want - if I'm guessing right.gnasher729– gnasher7292015-07-13 10:39:40 +00:00Commented Jul 13, 2015 at 10:39
-
I want to get it done programatically or Terminal !Bharat jain– Bharat jain2015-07-13 10:43:06 +00:00Commented Jul 13, 2015 at 10:43
-
when you run your app on simulator, you can check it on debug Navigator pane, you can open debug navigator pane by "Command + 6". or you can Go to Product --> Profile. after attaching your device, there you can use different instruments to check memory leak, performance etc. also you can record a session. you can visit this link for more detail, raywenderlich.com/23037/how-to-use-instruments-in-xcodeParth Pandya– Parth Pandya2015-07-13 10:46:07 +00:00Commented Jul 13, 2015 at 10:46
-
@parth I want to code the same .Bharat jain– Bharat jain2015-07-13 11:11:17 +00:00Commented Jul 13, 2015 at 11:11
-
1What do you want to get done "programatically or Terminal"? Try to improve your communication skills. I still haven't learned how to read your mind.gnasher729– gnasher7292015-07-13 11:22:20 +00:00Commented Jul 13, 2015 at 11:22
2 Answers
Please check the answer on this thread, https://stackoverflow.com/a/787535/4030948
here is the way to get used memory bytes for your app.
And for the CPU usage of your application, please check the answer on this thread, https://stackoverflow.com/a/8382889/4030948
Comments
The quickest way is to select the 6th icon along, on the left panel in XCode.
Make sure you have selected to run your project on the iphone device you are looking for, and keep an eye on these usage monitors as you use the app. A more thorough analysis is available using Instruments, but this is the quickest way.