[virt-tools-list] How does virt-manager get the CPU usage of a guest/vm
Eric Blake
eblake at redhat.com
Thu Aug 14 12:53:23 UTC 2014
On 08/13/2014 10:56 PM, Restituto Marcus Arevalo wrote:
> Hi,
>
> I need to know how the virt-manager is getting the CPU usage of each guest/vm? I mean where does it get the graph it outputs? Does anybody have an idea where I should start researching? I tried understanding the Libvirt API but I think it just outputs cpu time. Any suggestion would be much appreciated. Thanks
You are asking a FAQ; search the list archives for other answers to this
question. Meanwhile, the source code is your friend. virt-manager is
using the python bindings; and here is a program using the C bindings
for the same purpose:
http://libvirt.org/git/?p=libvirt.git;a=blob;f=examples/domtop/domtop.c
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140814/33cee77e/attachment.sig>
More information about the virt-tools-list
mailing list