diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-21 10:14:28 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-21 10:14:28 +0100 |
commit | 10e6561615be67a775993ec5bfbd54eac2efa9a1 (patch) | |
tree | f046e0abaf49a9640bdd740264dcbc0a0a3c78bf /bin | |
parent | 62fcf3c40a121e30807e1936ff98b7542716e5f3 (diff) |
analyze-*: consistently split --plot-param plots on colons (:)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 4 | ||||
-rwxr-xr-x | bin/analyze-kconfig.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index ebd16ce..684108a 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -197,7 +197,7 @@ if __name__ == "__main__": ) parser.add_argument( "--plot-param", - metavar="<name> <attribute> <parameter> [gplearn function][;<name> <attribute> <parameter> [function];...])", + metavar="<name>:<attribute>:<parameter>[:gplearn function][;<name>:<attribute>:<parameter>:[function];...])", type=str, help="Plot measurements for <name> <attribute> by <parameter>. " "X axis is parameter value. " @@ -835,7 +835,7 @@ if __name__ == "__main__": if args.plot_param: for kv in args.plot_param.split(";"): try: - state_or_trans, attribute, param_name, *function = kv.split(" ") + state_or_trans, attribute, param_name, *function = kv.split(":") except ValueError: print( "Usage: --plot-param='state_or_trans attribute param_name [additional function spec]'", diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index f2c6f8f..a7049f6 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -162,7 +162,7 @@ def main(): ) parser.add_argument( "--plot-param", - metavar="<name> <attribute> <parameter> [gplearn function][;<name> <attribute> <parameter> [function];...])", + metavar="<name>:<attribute>:<parameter>[:gplearn function][;<name>:<attribute>:<parameter>:[function];...])", type=str, help="Plot measurements for <name> <attribute> by <parameter>. " "X axis is parameter value. " @@ -378,7 +378,7 @@ def main(): for kv in args.plot_param.split(";"): try: - state_or_trans, attribute, param_name, *function = kv.split(" ") + state_or_trans, attribute, param_name, *function = kv.split(":") except ValueError: print( "Usage: --plot-param='state_or_trans attribute param_name [additional function spec]'", |