diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-28 15:14:17 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-28 15:14:17 +0200 |
| commit | d4a07172e41bcba258dcc1a4d1f6d7cf67a5400c (patch) | |
| tree | 51f870d99d70434ba34d1d48c8c1f9cdfe1560a1 /scripts | |
| parent | 80c754f6e40ff71c8b354e6363b539e63c63256c (diff) | |
| download | psutil-d4a07172e41bcba258dcc1a4d1f6d7cf67a5400c.tar.gz | |
799 onshot / win: no longer store the handle in python; I am now sure this is slower than using OpenProcess/CloseHandle in C
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/bench_oneshot.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/internal/bench_oneshot.py b/scripts/internal/bench_oneshot.py index 0316e34b..636d37ad 100755 --- a/scripts/internal/bench_oneshot.py +++ b/scripts/internal/bench_oneshot.py @@ -89,17 +89,15 @@ elif psutil.OSX: ] elif psutil.WINDOWS: names += [ - 'cpu_affinity', - 'cpu_times', - 'io_counters', - 'ionice', - 'memory_info', - # 'memory_maps', # just makes things too slow - 'nice', 'num_ctx_switches', + 'num_threads', + # dual implementation, called in case of AccessDenied 'num_handles', + 'cpu_times', + 'create_time', 'num_threads', - 'username', + 'io_counters', + 'memory_info', ] names = sorted(set(names)) |
