Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS process internals - how to get information?

I am looking for an API to monitor the tasks running on a plain iPhone (no jailbreak). Those are about:

  • look for CPU usage (my main concern).
  • look for memory usage.
  • look for disk usage (how many read/write)
  • look for network usage (how many bytes sent and received by network: 3G, Wifi, GSM).
  • is it possible to rely on the IOS simulator running on a Mac (or should I test my application directly on the device)?

I think I can look into the system C libraries (sigint, etc.) but I am not sure to be able to retrieve this information except for the current applications running. I know some monitor applications run on the global usage but I would like to be able to find the information process by process.

If someone can provide some links or something useful, I will start a deeper investigation then.

like image 675
William R Avatar asked Sep 29 '11 10:09

William R


1 Answers

CPU usage can be found by looking at the code from this related question:

iOS - Get CPU usage from application

Memory usage:

Available memory for iPhone OS app

And here are a couple threads that talk about how to find out about the applications or tasks currently running:

Can we retrieve the applications currently running in iPhone and iPad

How to get information about free memory and running processes in an App Store approved app? (Yes, there is one!)

How to get the active processes running in iOS

The answers to these questions may point you in the direction you'd like to head towards.

Good luck!

like image 98
Michael Dautermann Avatar answered Nov 11 '22 14:11

Michael Dautermann