aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-04-08 15:40:23 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-04-08 15:40:23 +0200
commitede6aadc4b8bb6d1af2a5abe0cb1174e8fcc69dd (patch)
tree40c8b68ca6ac81a144e65e34b9da7587bcd054fe
parent15c9fe26c2e8c2373df094e1cc11f6473426e36e (diff)
downloadallocbench-ede6aadc4b8bb6d1af2a5abe0cb1174e8fcc69dd.tar.gz
allocbench-ede6aadc4b8bb6d1af2a5abe0cb1174e8fcc69dd.zip
add simple interactive summary support
-rwxr-xr-xsummarize.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/summarize.py b/summarize.py
index 46ca999..ca1927a 100755
--- a/summarize.py
+++ b/summarize.py
@@ -172,6 +172,9 @@ if __name__ == "__main__":
parser.add_argument("--latex-preamble",
help="latex code to include in the preamble of generated standalones",
type=str)
+ parser.add_argument("-i", "--interactive",
+ help="drop into repl after summarizing the results",
+ action='store_true')
args = parser.parse_args()
@@ -197,3 +200,7 @@ if __name__ == "__main__":
summarize(benchmarks=args.benchmarks,
exclude_benchmarks=args.exclude_benchmarks)
+
+ if args.interactive:
+ import code
+ code.InteractiveConsole(locals=globals()).interact()