python: add virDomainGetCPUStats python binding API
commit65ef8171496537b49fcdd0a5b833d61a8ad23351
authorGuannan Ren <gren@redhat.com>
Tue, 20 Mar 2012 04:34:06 +0000 (20 12:34 +0800)
committerLaine Stump <laine@laine.org>
Thu, 22 Mar 2012 14:55:48 +0000 (22 10:55 -0400)
tree02f95b007109042a8379c041c1e38ab4aaf1daa9
parentdebe58f6f7609abcb330b5ab4f69f7ffab830b08
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.
generator.py
libvirt-override-api.xml
libvirt-override.c