Skip to content

Commit

Permalink
Merge pull request #10 from rauls5382/master
Browse files Browse the repository at this point in the history
Extend regexp for matching legacy growth profiles
  • Loading branch information
josef-jelinek committed Mar 14, 2016
2 parents 6ec81ae + f263fcb commit 8e479a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profile/legacy_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ var (

hexNumberRE = regexp.MustCompile(`0x[0-9a-f]+`)

growthHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ growthz`)
growthHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ growthz?`)

fragmentationHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ fragmentationz`)
fragmentationHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ fragmentationz?`)

threadzStartRE = regexp.MustCompile(`--- threadz \d+ ---`)
threadStartRE = regexp.MustCompile(`--- Thread ([[:xdigit:]]+) \(name: (.*)/(\d+)\) stack: ---`)
Expand Down

0 comments on commit 8e479a1

Please sign in to comment.