diff options
| -rw-r--r-- | src/plots.py | 6 | ||||
| -rwxr-xr-x | summarize.py | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/plots.py b/src/plots.py index a5bd32e..c7750d8 100644 --- a/src/plots.py +++ b/src/plots.py @@ -25,7 +25,7 @@ import numpy as np import tikzplotlib import src.globalvars -from src.util import print_warn +from src.util import print_debug, print_warn # This is useful when evaluating strings in the plot functions. str(np.NaN) == "nan" nan = np.NaN @@ -52,8 +52,8 @@ def _eval_with_stat(bench, evaluation, alloc, perm, stat): try: res = evaluation.format(**bench.results["stats"][alloc][perm][stat]) except KeyError: - print_warn(traceback.format_exc()) - print_warn(f"For {alloc} in {perm}") + print_debug(traceback.format_exc()) + print_warn(f"KeyError while expanding {evaluation} for {alloc} and {perm}") return nan return eval(res) diff --git a/summarize.py b/summarize.py index 422be57..a248554 100755 --- a/summarize.py +++ b/summarize.py @@ -150,6 +150,7 @@ if __name__ == "__main__": help="print version info and exit", action='version', version=f"allocbench {src.facter.allocbench_version()}") + parser.add_argument("-v", "--verbose", help="more output", action='count') parser.add_argument("-b", "--benchmarks", help="benchmarks to summarize", @@ -164,6 +165,9 @@ if __name__ == "__main__": args = parser.parse_args() + if args.verbose: + src.globalvars.verbosity = args.verbose + if args.file_ext: src.globalvars.summary_file_ext = args.file_ext |
