[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] python: add virDomainGetCPUStats python binding API



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 redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]