aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2024-04-28 12:05:04 -0700
committerSeongJae Park <sj@kernel.org>2024-04-28 12:05:04 -0700
commit7f18bec380a3a16c909637e2bc48adb0855ad07a (patch)
tree775c0c235c48f4799238a3777f722e0cb762a955
parent0dfe9170c5d3c12d1125641c9aa57e3633db4387 (diff)
downloaddamo-7f18bec380a3a16c909637e2bc48adb0855ad07a.tar.gz
damo_wss: Do '--collapse_targets' by default
In many cases, users would do '--collapse_targets' first, and then look into separate target's woking set size if needed. Let the behavior with the option as default, and add an option for per-target reporting, '--per_target'. Keep '--collapse_targets' for cases where users simply following the examples that already presented at OSSNA 24. Signed-off-by: SeongJae Park <sj@kernel.org>
-rw-r--r--damo_wss.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/damo_wss.py b/damo_wss.py
index 2266c88e..a4299c7f 100644
--- a/damo_wss.py
+++ b/damo_wss.py
@@ -109,6 +109,9 @@ def set_argparser(parser):
help='use machine-friendly raw numbers')
parser.add_argument('--all_wss', action='store_true',
help='Do not print percentile but all calculated wss')
+ parser.add_argument('--per_target', action='store_false',
+ dest='collapse_targets',
+ help='Report workingset size per monitoring target')
parser.add_argument('--collapse_targets', action='store_true',
help='Collapse targets in the record into one')
parser.description = 'Show distribution of working set size'