Use virConnectGetAllDomainStats API to collect domain stats (RHBZ#1422795).
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 28 Mar 2017 12:30:07 +0000 (13:30 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 29 Nov 2022 08:13:39 +0000 (08:13 +0000)
commit74971ed8c85400929714a7adff5b61c2ebe9fcee
tree1258e1b33f7ea387d43127f35ed486f99907f9ff
parent9af3b4d4667bf96d8c36e440ea11c106ae53a43f
Use virConnectGetAllDomainStats API to collect domain stats (RHBZ#1422795).

This is much faster than using the basic libvirt APIs to collect
stats for each domain individually.

Note this will not work unless you have the latest ocaml-libvirt
package which includes this new API binding.
src/collect.ml
src/collect.mli
src/utils.ml
src/utils.mli