From a035f9181b32091af66ee8643c30c9ca2c1c2ce3 Mon Sep 17 00:00:00 2001 From: Brad Schoening <5796692+bschoening@users.noreply.github.com> Date: Tue, 16 Nov 2021 00:55:54 -0500 Subject: [PATCH] fixed calcs --- region_size.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/region_size.py b/region_size.py index 21b002c..d05362c 100644 --- a/region_size.py +++ b/region_size.py @@ -31,13 +31,13 @@ mb16 = sum(map(lambda x: x < 8*ONEMB, allocations)) mb32 = sum(map(lambda x: x < 16*ONEMB, allocations)) mbMax = sum(map(lambda x: x >= 16*ONEMB, allocations)) - - print(f"{mb2/total:.2%} would not be humongous with a 2mb region size (-XX:G1HeapRegionSize)") - print(f"{mb4/total:.2%} would not be humongous with a 4mb region size") - print(f"{mb8/total:.2%} would not be humongous with a 8mb region size") - print(f"{mb16/total:.2%} would not be humongous with a 16mb region size") - print(f"{mb32/total:.2%} would not be humongous with a 32mb region size") - print(f"{mb32/total:.2%} would remain humongous with a 32mb region size") + # print(mb2, mb4, mb8, mb16, mb32, mbMax) + print(f"{(mb2/total):.2%} would not be humongous with a 2mb region size (-XX:G1HeapRegionSize)") + print(f"{(mb4/total):.2%} would not be humongous with a 4mb region size") + print(f"{(mb8/total):.2%} would not be humongous with a 8mb region size") + print(f"{(mb16/total):.2%} would not be humongous with a 16mb region size") + print(f"{(mb32/total):.2%} would not be humongous with a 32mb region size") + print(f"{mbMax/total:.2%} would remain humongous with a 32mb region size") #Total created bytes 1.88 gb