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/
- Active = Active (anon) + active (file) Inactive = Inactive (anon) + Inactive (file)
- 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.
- Active (file) + Inactive (file) + Shmem = Cached + Buffer + swapcached
Android CPU Utilization