示例#1
0
文件: qm.py 项目: GLab/ToMaTo
def getStatistics(vmid):
	with locks[vmid]:
		_checkStatus(vmid, Status.Running)
		pid = _getPid(vmid)
		return proc.getStatistics(pid)
示例#2
0
	def	getStatistics(self, vmid):
		with locks[vmid]:
			self._checkStatus(vmid, StateName.STARTED)
			pid = self._getPid(vmid)
			return proc.getStatistics(pid)
示例#3
0
文件: virsh.py 项目: plaljx/ToMaTo
 def getStatistics(self, vmid):
     with locks[vmid]:
         self._checkStatus(vmid, StateName.STARTED)
         pid = self._getPid(vmid)
         return proc.getStatistics(pid)
示例#4
0
def getStatistics(vmid):
    with locks[vmid]:
        _checkStatus(vmid, Status.Running)
        pid = _getPid(vmid)
        return proc.getStatistics(pid)