IOS process internal processes - how to get information?

I am looking for an API to track tasks performed on a simple iPhone (no jailbreak). It is approximately:

  • look at CPU usage (my main problem).
  • find memory usage.
  • look for disk usage (how much to read / write)
  • Look for network usage (number of bytes sent and received over the network: 3G, Wi-Fi, GSM).
  • Can I rely on an iOS simulator running on a Mac (or should I test my application directly on the device)?

I think I can look into the C system libraries (sigint, etc.), but I'm not sure I can get this information except for the currently running applications. I know that some monitoring applications work on a global usage level, but I would like to find a process information process.

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

+6
source share
2 answers

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

iOS - get CPU usage from the app

Memory usage:

Available memory for iPhone OS app

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

Can we get the applications currently running on the iPhone and iPad .

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

How to start active processes in iOS

The answers to these questions may point you in the direction you would like to go.

Good luck

+5
source

Activity Monitor should provide you with what you are looking for. You should be able to observe the use of RAM, CPU and VRAM for each iOS process. This is the default tool installed using xCode. Very comfortably.

0
source

Source: https://habr.com/ru/post/898273/


All Articles