Esempio n. 1
0
 def _GetPerformanceDataThread(self):
     while True:
         cpuRate = info.getCpuInfo()
         mem = info.getMemInfo()
         print("cpu is {}% mem is {}M".format(cpuRate, mem))
         self._CpuUseRateQueue.appendleft(cpuRate)
         self._MemUseQueue.appendleft(mem)
Esempio n. 2
0
 def _GetPerformanceDataThread(self):
     while True:
         # cpuRate,mem = info.top()
         cpuRate = info.getCpuInfo()
         mem = info.getMemInfo()
         print("---cpu is {}% mem is {}M---".format(cpuRate, mem))
         self._CpuUseRateQueue.appendleft(cpuRate)
         self._MemUseQueue.appendleft(mem)
         time.sleep(0.8)
 def _GetPerformanceDataThread(self):
     while True:
        # cpuRate,mem = info.top()
         cpuRate = info.getCpuInfo()
         mem = info.getMemInfo()
         print(cpuRate)
         print("main function mem is %f" % (mem))
         self._CpuUseRateQueue.appendleft(cpuRate)
         self._MemUseQueue.appendleft(mem)
         time.sleep(0.8)