Hi,
 
here is a 3rd patch that add a sample named "virDomainStats"
 
Regards,
 
Arnaud