def getStatistics(vmid): with locks[vmid]: _checkStatus(vmid, Status.Running) pid = _getPid(vmid) return proc.getStatistics(pid)
def getStatistics(self, vmid): with locks[vmid]: self._checkStatus(vmid, StateName.STARTED) pid = self._getPid(vmid) return proc.getStatistics(pid)