summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-12-21 10:14:28 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-12-21 10:14:28 +0100
commit10e6561615be67a775993ec5bfbd54eac2efa9a1 (patch)
treef046e0abaf49a9640bdd740264dcbc0a0a3c78bf /bin
parent62fcf3c40a121e30807e1936ff98b7542716e5f3 (diff)
analyze-*: consistently split --plot-param plots on colons (:)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py4
-rwxr-xr-xbin/analyze-kconfig.py4
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]'",