MCPcopy Index your code
hub / github.com/maruel/panicparse / BenchmarkAggregated_ToHTML

Function BenchmarkAggregated_ToHTML

stack/html_test.go:265–281  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

263}
264
265func BenchmarkAggregated_ToHTML(b *testing.B) {
266 b.ReportAllocs()
267 s, _, err := ScanSnapshot(bytes.NewReader(internaltest.StaticPanicwebOutput()), io.Discard, DefaultOpts())
268 if err != io.EOF {
269 b.Fatal(err)
270 }
271 if s == nil {
272 b.Fatal("missing context")
273 }
274 a := s.Aggregate(AnyPointer)
275 b.ResetTimer()
276 for i := 0; i < b.N; i++ {
277 if err := a.ToHTML(io.Discard, ""); err != nil {
278 b.Fatal(err)
279 }
280 }
281}
282
283//
284

Callers

nothing calls this directly

Calls 5

StaticPanicwebOutputFunction · 0.92
ScanSnapshotFunction · 0.85
DefaultOptsFunction · 0.85
AggregateMethod · 0.80
ToHTMLMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…