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

Eric Blake eblake at redhat.com
Wed Mar 14 09:10:46 UTC 2012


On 03/14/2012 03:02 AM, Daniel Veillard wrote:
> On Wed, Mar 14, 2012 at 03:06:38PM +0800, Alex Jia wrote:
>> On 03/14/2012 01:57 PM, Guannan Ren wrote:
>>>    dom.cPUStats(True, 0)
>> I'd like getVcpuStats or cpuStats function naming.
> 
>   Based on existing conventions, it should be getVcpuStats() method,

getVcpuStats is wrong - if flags is 0, we are getting stats on the
physical cpu of the host, not the vcpu of the guest.

I think we want getCpuStats.

-- 
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/c04666cb/attachment-0001.sig>


More information about the libvir-list mailing list