diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-08-03 21:53:58 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-08-03 21:53:58 +0200 |
| commit | 355214d2c7874471b077d39421d89955cfeebea5 (patch) | |
| tree | 7a722900219b85fdd118554f31cf44da576714d9 /scripts/internal/bench_oneshot.py | |
| parent | 50015c4073f741e89e29f67b74bded47a25a3a49 (diff) | |
| download | psutil-355214d2c7874471b077d39421d89955cfeebea5.tar.gz | |
update doc
Diffstat (limited to 'scripts/internal/bench_oneshot.py')
| -rwxr-xr-x | scripts/internal/bench_oneshot.py | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/scripts/internal/bench_oneshot.py b/scripts/internal/bench_oneshot.py index dea94400..e2bd4212 100755 --- a/scripts/internal/bench_oneshot.py +++ b/scripts/internal/bench_oneshot.py @@ -22,13 +22,35 @@ ITERATIONS = 1000 # The list of Process methods which gets collected in one shot and # as such get advantage of the speedup. if psutil.LINUX: - names = ["name", "terminal", "cpu_times", "cpu_percent", "create_time", - "status", "ppid", "num_ctx_switches", "num_threads", "uids", - "gids"] + names = ( + 'cpu_percent', + 'cpu_times', + 'create_time', + 'gids', + 'name', + 'num_ctx_switches', + 'num_threads', + 'ppid', + 'status', + 'terminal', + 'uids', + ) elif psutil.BSD: - names = ["ppid", "status", "uids", "gids", "terminal", "cpu_times", - "cpu_percent", "create_time", "num_ctx_switches", "io_counters", - "memory_info", "memory_percent", "memory_full_info"] + names = ( + 'cpu_percent', + 'cpu_times', + 'create_time', + 'gids', + 'io_counters', + 'memory_full_info', + 'memory_info', + 'memory_percent', + 'num_ctx_switches', + 'ppid', + 'status', + 'terminal', + 'uids', + ) else: raise RuntimeError("platform %r not supported" % sys.platform) |
