/external/aws-crt-java/codebuild/ |
D | CanaryWrapper_MetricFunctions.py | 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) [all …]
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | memory_debug.py | 11 import psutil 13 psutil = None variable 45 if not psutil: 46 logging.warning('psutil module is not found, skipping logging memory info') 48 if psutil.version_info < (2, 0): 49 logging.warning('psutil %s too old, upgrade to version 2.0 or higher' 50 ' for memory usage information.', psutil.__version__) 54 # check for a recent enough psutil version above, the catapult presubmit 55 # builder (still running some old psutil) fails pylint checks due to API 56 # changes in psutil. [all …]
|
/external/pytorch/tools/stats/ |
D | monitor.py | 11 import psutil # type: ignore[import] 16 for process in psutil.process_iter(): 20 except (psutil.NoSuchProcess, psutil.AccessDenied): 37 # https://psutil.readthedocs.io/en/latest/index.html?highlight=memory_full_info 47 except psutil.AccessDenied as e: 119 "total_cpu_percent": psutil.cpu_percent(),
|
/external/autotest/client/cros/ |
D | xmlrpc_server.py | 44 import psutil 48 me = psutil.Process() 54 for proc in psutil.process_iter(attrs=['name', 'exe', 'cmdline']): 70 except psutil.Error as e: 82 except psutil.NoSuchProcess as e: 84 except psutil.Error as e: 87 (terminated, running) = psutil.wait_procs(running, sigterm_timeout) 96 except psutil.NoSuchProcess as e: 98 except psutil.Error as e: 101 (sigkilled, running) = psutil.wait_procs(running, sigkill_timeout)
|
/external/skia/infra/bots/recipe_modules/build/resources/ |
D | cleanup_win_processes.py | 8 # name: "infra/python/wheels/psutil/${vpython_platform}" 13 import psutil 14 for p in psutil.process_iter(): 18 except psutil._error.AccessDenied:
|
/external/chromium-crossbench/crossbench/plt/ |
D | base.py | 30 import psutil 87 _IGNORED_PROCESS_EXCEPTIONS: Final = (psutil.NoSuchProcess, psutil.AccessDenied, 88 psutil.ZombieProcess) 217 if not psutil.sensors_battery: 219 status = psutil.sensors_battery() 349 return self._collect_process_dict(psutil.process_iter(attrs=attrs)) 354 for proc in psutil.process_iter(attrs=["name"]): 368 process = psutil.Process(parent_pid) 374 self, process_iterator: Iterable[psutil.Process]) -> List[Dict[str, Any]]: 387 return psutil.Process(pid).as_dict() [all …]
|
/external/pytorch/test/ |
D | test_openmp.py | 11 import psutil 16 psutil = None variable 29 @unittest.skipIf(not HAS_PSUTIL, "Requires psutil to run") 39 p = psutil.Process() 67 ncores = min(5, psutil.cpu_count(logical=False))
|
/external/llvm/utils/lit/tests/ |
D | lit.cfg | 47 # Add a feature to detect if psutil is available 49 import psutil 50 lit_config.note('Found python psutil module') 51 config.available_features.add("python-psutil") 53 lit_config.warning('Could not import psutil. Some tests will be skipped and'
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | device_recovery.py | 14 import psutil 35 # Script depends on features from psutil version 2.0 or higher. 36 modules_util.RequireVersion(psutil, '2.0') 41 for p in psutil.process_iter(): 48 except (psutil.NoSuchProcess, psutil.AccessDenied): 57 except (psutil.NoSuchProcess, psutil.AccessDenied): 62 except (psutil.NoSuchProcess, psutil.AccessDenied):
|
/external/libcxx/utils/libcxx/ |
D | util.py | 251 using the psutil module which provides a simple platform 254 TODO: Reimplement this without using psutil so we can 257 import psutil 259 psutilProc = psutil.Process(pid) 260 # Handle the different psutil API versions 262 # psutil >= 2.x 265 # psutil 1.x 270 except psutil.NoSuchProcess: 273 except psutil.NoSuchProcess:
|
/external/llvm/utils/lit/lit/ |
D | util.py | 261 using the psutil module which provides a simple platform 264 TODO: Reimplement this without using psutil so we can 267 import psutil 269 psutilProc = psutil.Process(pid) 270 # Handle the different psutil API versions 272 # psutil >= 2.x 275 # psutil 1.x 280 except psutil.NoSuchProcess: 283 except psutil.NoSuchProcess:
|
D | LitConfig.py | 80 # The current implementation needs psutil to set 84 import psutil 87 " Python psutil module but it could not be"
|
/external/webrtc/tools_webrtc/ |
D | ensure_webcam_is_running.py | 15 * The Python interpreter must have the psutil package installed. 32 # psutil is not installed on non-Linux machines by default. 33 import psutil # pylint: disable=F0401 51 for p in psutil.process_iter(): 57 except psutil.AccessDenied:
|
/external/webrtc/tools_webrtc/cpu/ |
D | README | 2 It requires a Python package, psutil, to be installed. 3 See: https://pypi.python.org/pypi/psutil 6 sudo ARCHFLAGS='-Wno-error=unused-command-line-argument-hard-error-in-future' easy_install psutil
|
D | cpu_mon.py | 13 import psutil 27 self.samples.append(psutil.cpu_percent(1.0, False))
|
/external/pigweed/pw_cli/py/pw_cli/ |
D | process.py | 28 import psutil # type: ignore 105 process_util = psutil.Process(pid=pid) 107 except psutil.NoSuchProcess: 117 except psutil.NoSuchProcess: 124 except psutil.NoSuchProcess:
|
/external/python/portpicker/src/ |
D | portserver.py | 37 import psutil 49 return psutil.Process(pid).cmdline() 50 except psutil.NoSuchProcess: 56 return psutil.Process(pid).create_time() 57 except psutil.NoSuchProcess: 119 if not psutil.pid_exists(pid):
|
/external/tensorflow/tensorflow/tools/test/ |
D | system_info_lib.py | 24 # Note: cpuinfo and psutil are not installed for you in the TensorFlow 27 import psutil 66 vmem = psutil.virtual_memory()
|
/external/pytorch/test/cpp_extensions/open_registration_extension/test/ |
D | test_openreg.py | 6 import psutil 24 all_threads = psutil.Process(pid).threads()
|
/external/rust/android-crates-io/crates/spdx/src/text/licenses/ |
D | psutils | 18 pstops.c pstops.man psutil.c psutil.h
|
/external/pigweed/pw_cli/py/ |
D | process_integration_test.py | 22 import psutil # type: ignore 70 self.assertFalse(psutil.pid_exists(child_pid))
|
/external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/gce/ |
D | linux_kokoro_performance_worker_init.sh | 71 sudo apt-get install -y python-psutil python3-psutil 94 # TODO(jtattermusch): for some reason, we need psutil installed 97 sudo pypy -m pip install psutil
|
/external/grpc-grpc/tools/gce/ |
D | linux_kokoro_performance_worker_init.sh | 71 sudo apt-get install -y python-psutil python3-psutil 94 # TODO(jtattermusch): for some reason, we need psutil installed 97 sudo pypy -m pip install psutil
|
/external/chromium-crossbench/ |
D | poetry.lock | 29 …", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 30 …", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 31 …11.1)", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 33 …", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 632 dmypy = ["psutil (>=4.0)"] 889 name = "psutil" 895 …{file = "psutil-5.9.8-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:26bd09967ae00920df88e0352… 896 …{file = "psutil-5.9.8-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:05806de88103b25903dff19bb… 897 …{file = "psutil-5.9.8-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:611052c4bc70432ec770d5d… 898 …{file = "psutil-5.9.8-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:50187900d73c1381ba1454cf… [all …]
|
/external/trusty/arm-trusted-firmware/tools/cot_dt2c/ |
D | poetry.lock | 25 …", "pympler", "pytest (>=4.3.0)", "pytest-codspeed", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 26 …", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 27 …11.1)", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 29 …", "mypy (>=1.11.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] 166 dmypy = ["psutil (>=4.0)"]
|