(b *testing.B)
| 160 | } |
| 161 | |
| 162 | func BenchmarkStackCounter(b *testing.B) { |
| 163 | prof := &profiler{} |
| 164 | stacks := prof.GoroutineProfile() |
| 165 | sc := wallclockProfile{} |
| 166 | b.ResetTimer() |
| 167 | for i := 0; i < b.N; i++ { |
| 168 | sc.Add(stacks) |
| 169 | } |
| 170 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…