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, 28 Mar 2017 13:00:05 +0000 (14:00 +0100)
commitc513d05fd4e85953701b1023bef71af62613cf79
tree72140ae31d52a7dffa521f9ddffc6df89c2cd062
parent4f3794d5718249238a74b614a6b486465bc4315d
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