Hello, ultimately I am trying to get to the VCPU WAIT time for a domain. It seems complicated with the C API as well, but there I think it's through: virDomainListGetStats https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainListGetStats asking for VIR_DOMAIN_STATS_VCPU And then somehow reaching this: VIR_DOMAIN_STATS_VCPU_SUFFIX_WAIT https://libvirt.org/html/libvirt-libvirt-domain.html#VIR_DOMAIN_STATS_VCPU_SUFFIX_WAIT But there seems to be no equivalent function in the Go Bindings? Thanks
Activity
berrange commentedon Jul 2, 2026
You want the Connect.GetAllDomainStats method https://pkg.go.dev/github.com/libvirt/libvirt-go#Connect.GetAllDomainStats