摘要 |
A central processing unit (CPU) analyzing method sets a time interval and a time period for analyzing a usage rate of the CPU, reads a current time of a hardware timer in a mobile device when a thread is suspended, calculates a CPU time used by the suspended thread. The method further calculates an average time used by each thread during the time period, and divides the average time by the time period so as to obtain the usage rate of the CPU in the mobile device.
|