MCPcopy
hub / github.com/felixge/fgprof / BenchmarkStackCounter

Function BenchmarkStackCounter

fgprof_test.go:162–170  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

160}
161
162func 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}

Callers

nothing calls this directly

Calls 2

GoroutineProfileMethod · 0.95
AddMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…