@@ -93,31 +93,31 @@ func TestMemoryProfiler(t *testing.T) {
93
93
}{{
94
94
stk : []string {"runtime/pprof.allocatePersistent1K" , "runtime/pprof.TestMemoryProfiler" },
95
95
legacy : fmt .Sprintf (`%v: %v \[%v: %v\] @ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+
96
- # 0x[0-9,a-f]+ runtime/pprof\.allocatePersistent1K\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test\.go:47
97
- # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test\.go:82
96
+ # 0x[0-9,a-f]+ runtime/pprof\.allocatePersistent1K\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test\.go:47
97
+ # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test\.go:82
98
98
` , 32 * memoryProfilerRun , 1024 * memoryProfilerRun , 32 * memoryProfilerRun , 1024 * memoryProfilerRun ),
99
99
}, {
100
100
stk : []string {"runtime/pprof.allocateTransient1M" , "runtime/pprof.TestMemoryProfiler" },
101
101
legacy : fmt .Sprintf (`0: 0 \[%v: %v\] @ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+
102
- # 0x[0-9,a-f]+ runtime/pprof\.allocateTransient1M\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test.go:24
103
- # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test.go:79
102
+ # 0x[0-9,a-f]+ runtime/pprof\.allocateTransient1M\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test.go:24
103
+ # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test.go:79
104
104
` , (1 << 10 )* memoryProfilerRun , (1 << 20 )* memoryProfilerRun ),
105
105
}, {
106
106
stk : []string {"runtime/pprof.allocateTransient2M" , "runtime/pprof.TestMemoryProfiler" },
107
107
legacy : fmt .Sprintf (`0: 0 \[%v: %v\] @ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+
108
- # 0x[0-9,a-f]+ runtime/pprof\.allocateTransient2M\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test.go:30
109
- # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test.go:80
108
+ # 0x[0-9,a-f]+ runtime/pprof\.allocateTransient2M\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test.go:30
109
+ # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test.go:80
110
110
` , memoryProfilerRun , (2 << 20 )* memoryProfilerRun ),
111
111
}, {
112
112
stk : []string {"runtime/pprof.allocateTransient2MInline" , "runtime/pprof.TestMemoryProfiler" },
113
113
legacy : fmt .Sprintf (`0: 0 \[%v: %v\] @ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+ 0x[0-9,a-f]+
114
- # 0x[0-9,a-f]+ runtime/pprof\.allocateTransient2MInline\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test.go:34
115
- # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test.go:81
114
+ # 0x[0-9,a-f]+ runtime/pprof\.allocateTransient2MInline\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test.go:34
115
+ # 0x[0-9,a-f]+ runtime/pprof\.TestMemoryProfiler\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test.go:81
116
116
` , memoryProfilerRun , (2 << 20 )* memoryProfilerRun ),
117
117
}, {
118
118
stk : []string {"runtime/pprof.allocateReflectTransient" },
119
119
legacy : fmt .Sprintf (`0: 0 \[%v: %v\] @( 0x[0-9,a-f]+)+
120
- # 0x[0-9,a-f]+ runtime/pprof\.allocateReflectTransient\+0x[0-9,a-f]+ .*/ runtime/pprof/mprof_test.go:55
120
+ # 0x[0-9,a-f]+ runtime/pprof\.allocateReflectTransient\+0x[0-9,a-f]+ .*runtime/pprof/mprof_test.go:55
121
121
` , memoryProfilerRun , (2 << 20 )* memoryProfilerRun ),
122
122
}}
123
123
0 commit comments