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