Skip to content

Commit

Permalink
added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bschoening committed Dec 22, 2021
1 parent 263165c commit 35610ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions region_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ def parseTimes(line):
pass

def plotTimes(line):
"""
[Times: user=0.01 sys=0.00, real=0.01 secs]
"""
pass

def parseGenerations(line):
"""
Parses an input line from gc.log into a set of tokens and returns them
Java 8: [Eden: 26.0M(26.0M)->0.0B(30.0M) Survivors: 5120.0K->3072.0K Heap: 51.4M(64.0M)->22.6M(64.0M)]
"""
generations = re.match(".*Eden:\s(\d+.\d+)(\w).*Survivors:\s(\d+.\d+)(\w).*Heap:\s(\d+.\d+)(\w)", line)
if generations:
Expand Down

0 comments on commit 35610ea

Please sign in to comment.