android - How to get the accurate CPU Usage per process and process Idle CPU Time -


i'hv been struggling accurate cpu usage per process , process idle cpu time.. tried " top " command proc/[pid]/stat folder still trying luck..

top command gives cpu usage processes running in fg(foreground) , bg(background) not accurate feel.. because shows %cpu 0, if process running in background.. other way? please

i have found way myself.. using

  1. proc/[pid]/stat -> per process cpu usage 14th , 15th parameter
  2. proc/stat -> processes cpu consumption @ same time

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -