Пример #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
 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)