Lines Matching defs:psutil
23 import psutil
24 if not hasattr(psutil.Process, "children") and hasattr(psutil.Process, "get_children"):
25 psutil.Process.children = psutil.Process.get_children
26 if not hasattr(psutil.Process, "memory_maps") and hasattr(psutil.Process, "get_memory_maps"):
27 psutil.Process.memory_maps = psutil.Process.get_memory_maps
39 '''Retrieve the memory usage of a particular psutil process without its
42 assert isinstance(proc, psutil.Process)
45 except psutil.AccessDenied:
58 p = psutil.Process(pid)
61 except psutil.NoSuchProcess:
68 except psutil.NoSuchProcess:
133 print("Error: 'psutil' module not available. Run\n"
135 " pip install --user psutil\n"