diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-11-26 02:27:01 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-11-26 02:27:01 +0100 |
| commit | 4b52141bd4f7c477d4ad3c36142ebeddb92eab18 (patch) | |
| tree | 4d1ff4f016bccdc4f0b5fcf767dacbc5cb8f2607 /scripts | |
| parent | d7aed98564993694d55d95a0b034fcb62afafaea (diff) | |
| download | psutil-4b52141bd4f7c477d4ad3c36142ebeddb92eab18.tar.gz | |
#357: does not support cpu_num() on Net and Open BSD
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/bench_oneshot.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/internal/bench_oneshot.py b/scripts/internal/bench_oneshot.py index cf8497f8..639e9ad7 100755 --- a/scripts/internal/bench_oneshot.py +++ b/scripts/internal/bench_oneshot.py @@ -37,10 +37,11 @@ if psutil.POSIX: if psutil.LINUX: names += [ - 'cpu_times', - 'gids', # 'memory_full_info', # 'memory_maps', + 'cpu_num', + 'cpu_times', + 'gids', 'name', 'num_ctx_switches', 'num_threads', @@ -63,6 +64,8 @@ elif psutil.BSD: 'terminal', 'uids', ] + if psutil.FREEBSD: + names.append('cpu_num') elif psutil.SUNOS: names += [ 'cmdline', |
