[libvirt] [PATCH] python: add virDomainGetCPUStats python binding API
Eric Blake
eblake at redhat.com
Wed Mar 14 09:12:38 UTC 2012
On 03/13/2012 11:57 PM, Guannan Ren wrote:
> dom.cPUStats(True, 0)
> [{'cpu_time': 370942649768L, 'system_time': 11640000000L, 'user_time': 890000000L}]
>
> dom.cPUStats(False, 0)
> [{'cpu_time': 38378374721L}, {'cpu_time': 12475521087L}, {'cpu_time': 127388622598L}, {'cpu_time': 192720388324L}]
> ---
> python/libvirt-override-api.xml | 10 +++
> python/libvirt-override.c | 164 +++++++++++++++++++++++++++++++++++++++
> 2 files changed, 174 insertions(+), 0 deletions(-)
Incomplete. python/generator.py needs to be touched up to remove this line:
python/generator.py: 'virDomainGetCPUStats', # not implemented now.
as well as any touchups needed to wire in the correct name of the function.
--
Eric Blake eblake at 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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120314/e4ea7c0d/attachment-0001.sig>
More information about the libvir-list
mailing list