show `vcpu usages' by `virt-top -1'
authorHu Tao <hutao@cn.fujitsu.com>
Fri, 12 Oct 2012 12:45:26 +0000 (13:45 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 12 Oct 2012 12:45:26 +0000 (13:45 +0100)
commit911493a7f2bc93ac93a516a2ca0fbf2774d2dc24
treed1c78bc8a05574782b34abe4092b97b1d9a4dcac
parent8735ff4e1dfbb1f9205f851b5efc56cf20fb31a9
show `vcpu usages' by `virt-top -1'

Before this patch, `virt-top -1' shows total cpu usages
which euqal to `vcpu usages' + `hypervisor usages'. This
patch adds another column for domains showing `vcpu
usages'. An example is:

PHYCPU %CPU example_domain
   0   10.4 10.4  0.8
   1    1.6  1.6  1.4
   2    2.6  2.6  2.6
   3    0.0  0.0  0.1

RWMJ: I cleaned up this patch a little, but it should be
functionally the same.
virt-top/virt-top.pod
virt-top/virt_top.ml