diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-23 16:08:04 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-23 16:08:04 +0200 |
| commit | 9d8412917f455ea08fa086e0f668ea5725cb324a (patch) | |
| tree | 3b37a6e54b5e9049cc2eaf2e5dd175e177acfe5a /chattyparser.py | |
| parent | aaf2a4921327326540edbd7ef6bf5154c9195ed1 (diff) | |
| download | chattymalloc-9d8412917f455ea08fa086e0f668ea5725cb324a.tar.gz chattymalloc-9d8412917f455ea08fa086e0f668ea5725cb324a.zip | |
[chattyparser] add total time spend in allocator to ascii summary
Diffstat (limited to 'chattyparser.py')
| -rwxr-xr-x | chattyparser.py | 4 |
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 |
