diff options
author | SeongJae Park <sj@kernel.org> | 2024-04-28 12:05:04 -0700 |
---|---|---|
committer | SeongJae Park <sj@kernel.org> | 2024-04-28 12:05:04 -0700 |
commit | 7f18bec380a3a16c909637e2bc48adb0855ad07a (patch) | |
tree | 775c0c235c48f4799238a3777f722e0cb762a955 | |
parent | 0dfe9170c5d3c12d1125641c9aa57e3633db4387 (diff) | |
download | damo-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.py | 3 |
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' |