From c42850f997c9a091202a479dd3a0da5eb884dabc Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 18 Feb 2021 00:34:46 +0100 Subject: [PATCH] chore(core): show total allocations in memperf report --- core/tools/alloc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/tools/alloc.py b/core/tools/alloc.py index a50e7c9f6..896105a66 100755 --- a/core/tools/alloc.py +++ b/core/tools/alloc.py @@ -128,6 +128,11 @@ def html(obj, htmldir): with open(f"{htmldir}/index.html", "w") as f: f.write("") + f.write( + "

Total allocations: {}

".format( + sum(total_sum for _, _, total_sum in file_sums) + ) + ) with HtmlTable(f) as table: table.tr((style_right, "avg"), (style_right, "total"), "") for filename, avg_sum, total_sum in file_sums: