mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 06:18:07 +00:00
chore(core): show total allocations in memperf report
This commit is contained in:
parent
90a50adc1e
commit
c42850f997
@ -128,6 +128,11 @@ def html(obj, htmldir):
|
||||
|
||||
with open(f"{htmldir}/index.html", "w") as f:
|
||||
f.write("<html>")
|
||||
f.write(
|
||||
"<h3>Total allocations: {}</h3>".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:
|
||||
|
Loading…
Reference in New Issue
Block a user