summaryrefslogtreecommitdiff
path: root/scripts/internal/bench_oneshot.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-08-03 12:45:31 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-08-03 12:45:31 +0200
commit8fea6e30976ec57e43b342ea9ea8626e6f077c10 (patch)
treee388aedf0e62c489317450b7a78af1f673c8b80c /scripts/internal/bench_oneshot.py
parent38ac1934ef471570cfac0a603f8e18cc221fc8b6 (diff)
downloadpsutil-8fea6e30976ec57e43b342ea9ea8626e6f077c10.tar.gz
#799: oneshot() BSD implementation
Diffstat (limited to 'scripts/internal/bench_oneshot.py')
-rwxr-xr-xscripts/internal/bench_oneshot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/internal/bench_oneshot.py b/scripts/internal/bench_oneshot.py
index 08a435e3..8cac3113 100755
--- a/scripts/internal/bench_oneshot.py
+++ b/scripts/internal/bench_oneshot.py
@@ -24,6 +24,9 @@ if psutil.LINUX:
names = ["name", "terminal", "cpu_times", "cpu_percent", "create_time",
"status", "ppid", "num_ctx_switches", "num_threads", "uids",
"gids"]
+elif psutil.BSD:
+ names = ["ppid", "status", "uids", "gids", "terminal", "cpu_times",
+ "cpu_percent", "create_time", "num_ctx_switches", "io_counters"]
else:
raise RuntimeError("platform %r not supported" % sys.platform)