]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
python: add virDomainGetCPUStats python binding API
authorGuannan Ren <gren@redhat.com>
Tue, 20 Mar 2012 04:34:06 +0000 (12:34 +0800)
committerLaine Stump <laine@laine.org>
Thu, 22 Mar 2012 14:55:48 +0000 (10:55 -0400)
commita772f4eebc9e62870ac03dfaaac1102d0fa967b4
tree7a543119504e28e14900b75d7332666b862f08c4
parent558ebc256dc8179413b1f35d91cd5167e41633cb
python: add virDomainGetCPUStats python binding API

    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
python/libvirt-override-api.xml
python/libvirt-override.c