Преглед изворни кода

Extend regexp for matching legacy growth profiles

This fixes issue #9
Raul Silvera пре 9 година
родитељ
комит
b270ddac1c
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      profile/legacy_profile.go

+ 2
- 2
profile/legacy_profile.go Прегледај датотеку

@@ -39,9 +39,9 @@ var (
39 39
 
40 40
 	hexNumberRE = regexp.MustCompile(`0x[0-9a-f]+`)
41 41
 
42
-	growthHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ growthz`)
42
+	growthHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ growth.?`)
43 43
 
44
-	fragmentationHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ fragmentationz`)
44
+	fragmentationHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ fragmentation.?`)
45 45
 
46 46
 	threadzStartRE = regexp.MustCompile(`--- threadz \d+ ---`)
47 47
 	threadStartRE  = regexp.MustCompile(`--- Thread ([[:xdigit:]]+) \(name: (.*)/(\d+)\) stack: ---`)