diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2021-05-03 13:33:16 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2021-05-03 13:33:16 +0200 |
commit | 4d30272e3de81a0c4244143595284e040cfb070f (patch) | |
tree | be800c8d557f05b340479d11b8d897ba4a9c2b21 /README.rst | |
parent | b035d1f8f3bd4cea7a0a7817c21ef161f2bb2fd7 (diff) | |
download | psutil-4d30272e3de81a0c4244143595284e040cfb070f.tar.gz |
Re. #1210: add doc warning explaining that cpu_times() values can sometimes go backwards
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 21 |
1 files changed, 2 insertions, 19 deletions
@@ -299,9 +299,9 @@ Process management >>> p psutil.Process(pid=7055, name='python3', status='running', started='09:04:44') >>> p.name() - 'python' + 'python3' >>> p.exe() - '/usr/bin/python' + '/usr/bin/python3' >>> p.cwd() '/home/giampaolo' >>> p.cmdline() @@ -444,23 +444,6 @@ Further process APIs >>> gone, alive = psutil.wait_procs(procs_list, timeout=3, callback=on_terminate) >>> -Popen wrapper: - -.. code-block:: python - - >>> import psutil - >>> from subprocess import PIPE - >>> p = psutil.Popen(["/usr/bin/python", "-c", "print('hello')"], stdout=PIPE) - >>> p.name() - 'python' - >>> p.username() - 'giampaolo' - >>> p.communicate() - ('hello\n', None) - >>> p.wait(timeout=2) - 0 - >>> - Windows services ---------------- |