summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-10-28 01:27:20 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-10-28 01:27:20 +0200
commit3efb6bf9e5acf3cf62df2854fd910c637a7209f9 (patch)
tree11a0b0cf8560c44f5bc5f9f670bd636c37fd2244 /scripts
parent7818a81c9e44ec9b4d102f7157c7f437a4b22cc0 (diff)
downloadpsutil-3efb6bf9e5acf3cf62df2854fd910c637a7209f9.tar.gz
#799 / win: use oneshot() around num_threads() and num_ctx_switches(); speedup from 1.2x to 1.8xoneshot-win
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/internal/bench_oneshot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/internal/bench_oneshot.py b/scripts/internal/bench_oneshot.py
index ad96ef5a..5ab2266e 100755
--- a/scripts/internal/bench_oneshot.py
+++ b/scripts/internal/bench_oneshot.py
@@ -95,7 +95,9 @@ elif psutil.WINDOWS:
'ionice',
'memory_info',
'nice',
+ 'num_ctx_switches',
'num_handles',
+ 'num_threads',
]
names = sorted(set(names))