Lines Matching full:psutil
4 import psutil
8 def get_metric_total_cpu_usage(psutil_process : psutil.Process):
13 print ("ERROR - No psutil.process passed! Cannot gather metric!", flush=True)
17 psutil.cpu_percent(interval=None)
20 return psutil.cpu_percent(interval=None)
27 def get_metric_total_memory_usage_value(psutil_process : psutil.Process):
30 print ("ERROR - No psutil.process passed! Cannot gather metric!", flush=True)
32 return psutil.virtual_memory()[3]
39 def get_metric_total_memory_usage_percent(psutil_process : psutil.Process):
42 print ("ERROR - No psutil.process passed! Cannot gather metric!", flush=True)
44 return psutil.virtual_memory()[2]