aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-07-23 16:08:04 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-07-23 16:08:04 +0200
commit9d8412917f455ea08fa086e0f668ea5725cb324a (patch)
tree3b37a6e54b5e9049cc2eaf2e5dd175e177acfe5a
parentaaf2a4921327326540edbd7ef6bf5154c9195ed1 (diff)
downloadchattymalloc-9d8412917f455ea08fa086e0f668ea5725cb324a.tar.gz
chattymalloc-9d8412917f455ea08fa086e0f668ea5725cb324a.zip
[chattyparser] add total time spend in allocator to ascii summary
-rwxr-xr-xchattyparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/chattyparser.py b/chattyparser.py
index 1d2ad22..48d2bf5 100755
--- a/chattyparser.py
+++ b/chattyparser.py
@@ -426,6 +426,10 @@ def plot_ascii_summary(path,
print(f"Number of threads: {threads}\n", file=hist_file)
print("Total function calls:", sum(calls.values()), file=hist_file)
+ if times:
+ print(
+ f"Time spend in the allocator: {fmt_nsec(sum(times.values()))}",
+ file=hist_file)
for func, func_calls in calls.items():
if func == Function.uninitialized or func == Function.thread_termination:
continue