From ed4d3938cb75fa7d218eccc759df621743b42f78 Mon Sep 17 00:00:00 2001 From: Brad Schoening <5796692+bschoening@users.noreply.github.com> Date: Thu, 16 Dec 2021 12:06:41 -0500 Subject: [PATCH] fixed regex for PrintAdaptiveSizePolicy --- region_size.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/region_size.py b/region_size.py index c042d95..4277bf9 100644 --- a/region_size.py +++ b/region_size.py @@ -16,7 +16,7 @@ for line in f.read().splitlines(): if (maxheap == None and re.search("CommandLine flags",line) != None): maxheap = re.search("-XX:MaxHeapSize=[0-9]+", line).group() - sizepolicy = re.search("-XX:+PrintAdaptiveSizePolicy", line) + sizepolicy = re.search("-XX:\+PrintAdaptiveSizePolicy", line) if (sizepolicy == None): print("please enable logs with -XX:+PrintAdaptiveSizePolicy") exit(0) @@ -24,7 +24,7 @@ if re.search("allocation request:.*source: concurrent humongous allocation", line) is not None: total += 1 - req = re.search("allocation request: [0-9]+", line).group() + req = re.search("allocationhttps://jiradc-gti.jpmchase.net/secure/RapidBoard.jspa?rapidView=63346 request: [0-9]+", line).group() allocations.append(int(re.search(r"[0-9]+", req).group())) print(f"found {total} humongous objects in {log}")