(b *testing.B)
| 305 | func BenchmarkTop(b *testing.B) { benchmarkURL(b, "/top", false) } |
| 306 | func BenchmarkFlame(b *testing.B) { benchmarkURL(b, "/flamegraph", false) } |
| 307 | func BenchmarkDot(b *testing.B) { benchmarkURL(b, "/", true) } |
| 308 | |
| 309 | func benchmarkURL(b *testing.B, path string, needDot bool) { |
| 310 | if needDot { |
nothing calls this directly
no test coverage detected
searching dependent graphs…