[libvirt] [PATCH v4] python: add virDomainGetCPUStats python binding API
Eric Blake
eblake at redhat.com
Tue Mar 20 15:42:54 UTC 2012
On 03/19/2012 10:34 PM, Guannan Ren wrote:
> dom.getCPUStats(True, 0)
> [{'cpu_time': 24699446159L, 'system_time': 10870000000L, 'user_time': 950000000L}]
> dom.getCPUStats(False, 0)
> [{'cpu_time': 8535292289L}, {'cpu_time': 1005395355L}, {'cpu_time': 9351766377L}, {'cpu_time': 5813545649L}]
>
> *generator.py Add a new naming rule
> *libvirt-override-api.xml The API function description
> *libvirt-override.c Implement it.
> ---
> python/generator.py | 5 +-
> python/libvirt-override-api.xml | 13 ++++
> python/libvirt-override.c | 147 +++++++++++++++++++++++++++++++++++++++
> 3 files changed, 164 insertions(+), 1 deletions(-)
ACK.
--
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/20120320/86ec521b/attachment-0001.sig>
More information about the libvir-list
mailing list