Android CPU Utilization

Source: Internet
Author: User

proc/$PID The value in the/stat file

Its content 14~17 columns:

       seq_put_ Decimal_ull (m, Span class= "crayon-s" > ", cputime_to_clock _t (utime) )

        seq_put_decimal_ Ull (m, ", cputime_to_clock_t (stime) )         seq_put_decimal_ Ll (m, ", cputime_to_clock_t (cutime) ) seq_put_decimal_ll(m, ', cputime_to_clock_t(cstime) );

The four-digit numbers are:

Utime when the task is running in the user's state

Stime the time the task is running in the core

Cutime the time that all dead threads are running in user state

Cstime uptime of all dead threads at core

So processcputime for this four attributes of the and.

The current algorithm for taking up the CPU is:

100* (PROCESSCPUTIMES-PROCESSCPUTIMEF)/(TOTALCPUTIMES-TOTALCPUTIMEF)

Memory:

http://blog.csdn.net/jackjones_008/article/details/41944973

Http://www.cnblogs.com/adv-qbj/p/4719787.html

http://gityuan.com/2016/01/02/memory-analysis-command/

    1. Active = Active (anon) + active (file) Inactive = Inactive (anon) + Inactive (file)
    2. Active (file), Inactive (file) has a file back-end which means its original file are in disk but to use it faster it was loaded On RAM.
    3. Active (file) + Inactive (file) + Shmem = Cached + Buffer + swapcached

Android CPU Utilization

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.