def get_sys_ipc(t=cfg.sys_ipc_time): r = ipc(time=t) log.debug("system IPC: {:.3}".format(r)) return r
def syswide_stat(time:float=10, vms=[]): from perf import perftool print("measuring system wide kvm stats %ss" % time) performance = perftool.ipc(guest=True, systemwide=True, time=time) print("{:.3f}".format(performance))
def ipc(self, time=0.1): return ipc(pid=self.pid, time=time)