summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-10-27 20:16:00 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-10-27 20:16:00 +0200
commitc37304538285289c6f2917c9ddbe705209b225c4 (patch)
tree42c21fc53f6faa8e85696b8619b1df3a2c3d4b5c
parent677060e58e2b3343403ced9da674397b5901e218 (diff)
downloadpsutil-c37304538285289c6f2917c9ddbe705209b225c4.tar.gz
update doc
-rw-r--r--docs/index.rst74
-rwxr-xr-xscripts/internal/bench_oneshot.py6
2 files changed, 39 insertions, 41 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 5c643069..fb6b7116 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -808,43 +808,43 @@ Process class
The last column (speedup) shows an approximation of the speedup you can get
if you call all the methods together (best case scenario).
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | Linux | Windows | OSX | BSD | SunOS |
- +==============================+=============+==============================+==============================+==========================+
- | :meth:`~Process.cpu_percent` | | :meth:`~Process.cpu_percent` | :meth:`~Process.cpu_percent` | :meth:`name` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`~Process.cpu_times` | | :meth:`~Process.cpu_times` | :meth:`~Process.cpu_times` | :meth:`cmdline` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`create_time` | | :meth:`memory_info` | :meth:`create_time` | :meth:`create_time` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`name` | | :meth:`memory_percent` | :meth:`gids` | |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`ppid` | | :meth:`num_ctx_switches` | :meth:`io_counters` | :meth:`memory_info` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`status` | | :meth:`num_threads` | :meth:`name` | :meth:`memory_percent` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`terminal` | | | :meth:`memory_info` | :meth:`nice` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | | | :meth:`create_time` | :meth:`memory_percent` | :meth:`num_threads` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`gids` | | :meth:`gids` | :meth:`num_ctx_switches` | :meth:`ppid` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`num_ctx_switches` | | :meth:`name` | :meth:`ppid` | :meth:`status` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`num_threads` | | :meth:`ppid` | :meth:`status` | :meth:`terminal` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`uids` | | :meth:`status` | :meth:`terminal` | |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | :meth:`username` | | :meth:`terminal` | :meth:`uids` | :meth:`gids` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | | | :meth:`uids` | :meth:`username` | :meth:`uids` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | | | :meth:`username` | | :meth:`username` |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | | | | | |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
- | *speedup: +2.5x* | | *speedup: +1.9x* | *speedup: +2x* | |
- +------------------------------+-------------+------------------------------+------------------------------+--------------------------+
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | Linux | Windows | OSX | BSD | SunOS |
+ +==============================+==============================+==============================+==============================+==========================+
+ | :meth:`~Process.cpu_percent` | :meth:`~Process.cpu_percent` | :meth:`~Process.cpu_percent` | :meth:`~Process.cpu_percent` | :meth:`name` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`~Process.cpu_times` | :meth:`~Process.cpu_times` | :meth:`~Process.cpu_times` | :meth:`~Process.cpu_times` | :meth:`cmdline` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`create_time` | :meth:`io_counters()` | :meth:`memory_info` | :meth:`create_time` | :meth:`create_time` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`name` | :meth:`ionice` | :meth:`memory_percent` | :meth:`gids` | |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`ppid` | :meth:`memory_info` | :meth:`num_ctx_switches` | :meth:`io_counters` | :meth:`memory_info` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`status` | :meth:`nice` | :meth:`num_threads` | :meth:`name` | :meth:`memory_percent` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`terminal` | :meth:`num_handles` | | :meth:`memory_info` | :meth:`nice` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | | | :meth:`create_time` | :meth:`memory_percent` | :meth:`num_threads` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`gids` | | :meth:`gids` | :meth:`num_ctx_switches` | :meth:`ppid` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`num_ctx_switches` | | :meth:`name` | :meth:`ppid` | :meth:`status` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`num_threads` | | :meth:`ppid` | :meth:`status` | :meth:`terminal` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`uids` | | :meth:`status` | :meth:`terminal` | |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | :meth:`username` | | :meth:`terminal` | :meth:`uids` | :meth:`gids` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | | | :meth:`uids` | :meth:`username` | :meth:`uids` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | | | :meth:`username` | | :meth:`username` |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | | | | | |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
+ | *speedup: +2.5x* | | *speedup: +1.9x* | *speedup: +2.0x* | |
+ +------------------------------+------------------------------+------------------------------+------------------------------+--------------------------+
.. versionadded:: 5.0.0
diff --git a/scripts/internal/bench_oneshot.py b/scripts/internal/bench_oneshot.py
index d63cb349..ad96ef5a 100755
--- a/scripts/internal/bench_oneshot.py
+++ b/scripts/internal/bench_oneshot.py
@@ -88,17 +88,15 @@ elif psutil.OSX:
'uids',
]
elif psutil.WINDOWS:
- names = (
+ names += [
'cpu_affinity',
- 'cpu_percent',
'cpu_times',
'io_counters',
'ionice',
'memory_info',
- 'memory_percent',
'nice',
'num_handles',
- )
+ ]
names = sorted(set(names))