IOS gets the app's CPU, memory, and other information

Source: Internet
Author: User

The goal is to develop an SDK, embedded in the app, to count the current app's real-time CPU, memory and other information

2015.11.17

Http://stackoverflow.com/questions/12889422/ios-cpu-usage-for-each-process-using-sysctl

This is the first one to be found, using the SYSCTL function

But out of the CPU data and instrument, GT data is not up (the latter two data closer)

2015.11.19

Https://github.com/TianJIANG/ios_monitor

Guithub from the search, the use of the main is #import <mach/mach.h> inside the Task_info, opened a new door, followed by a number of similar methods found

Http://stackoverflow.com/questions/8223348/ios-get-cpu-usage-from-application

This answer is also given this method, the end of an additional line of code, VM_DEALLOC, solve the leaking problem

To supplement several related:

Http://stackoverflow.com/questions/5182924/where-is-my-ipad-runtime-memory-going%E2%80%8C%E2%80%8B

Http://blog.sina.com.cn/s/blog_693de6100101ffwm.html

http://www.zhihu.com/question/22992491

IOS gets the app's CPU, memory, and other information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.