Skip to content

Commit

Permalink
fixed regex for PrintAdaptiveSizePolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
bschoening authored Dec 16, 2021
1 parent 7bb2ca2 commit ed4d393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions region_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
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)
print(f"maxheap: {maxheap}")

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}")
Expand Down

0 comments on commit ed4d393

Please sign in to comment.