From 9d8412917f455ea08fa086e0f668ea5725cb324a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 23 Jul 2020 16:08:04 +0200 Subject: [chattyparser] add total time spend in allocator to ascii summary --- chattyparser.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3