1. 04 9月, 2020 2 次提交
    • N
      display: add CPU usage item to display · 058455aa
      nocjj 提交于
      Calculation formula of CPU usage:
      cpu_time = (utime_now + stime_now) - (utime_pre + stime_pre);
      CPU usage = cpu_time / time_interval;
      
      Get utime and stime from /proc/qemupid/stat, then we can get cpu_time
      by calculate variation of these value over time.
      And time_interval represent cpu time interval between two data acquisition.
      Signed-off-by: NJiajun Chen <1250062498@qq.com>
      058455aa
    • N
      proc: get qemu process info from procfs · e4c1027d
      nocjj 提交于
      Read /proc/qemupid/stat file to refresh process info,
      include: parent pid, userspace time, task state and etc.
      According to these data, add two display itemsi to vmtop:
      S: task state
      P: physical processor that task is runnning on
      Signed-off-by: NJiajun Chen <1250062498@qq.com>
      e4c1027d
  2. 25 8月, 2020 1 次提交
  3. 24 8月, 2020 1 次提交
    • N
      vmtop: Introduce prototype of vmtop tool · 88c75040
      nocjj 提交于
      vmtop is a userspace tool which you can run it in host
      to help detecting VM's performance.
      1. Implement the basic display framework, realize loop display
         and field filter. Press 'f' to enter field filter mode and
         press 'q' to quit.
      2. Build compiling project by autotools.
      3. Add Mulan license for project.
      Signed-off-by: NJiajun Chen <1250062498@qq.com>
      88c75040
  4. 13 8月, 2020 1 次提交