MCPcopy Create free account
hub / github.com/google/pprof / BenchmarkWrite

Function BenchmarkWrite

profile/profile_test.go:1931–1942  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1929}
1930
1931func BenchmarkWrite(b *testing.B) {
1932 p, err := Parse(bytes.NewBuffer(proftest.LargeProfile(b)))
1933 if err != nil {
1934 b.Fatal(err)
1935 }
1936 b.ResetTimer()
1937 for i := 0; i < b.N; i++ {
1938 if err := p.WriteUncompressed(io.Discard); err != nil {
1939 b.Fatal(err)
1940 }
1941 }
1942}
1943
1944func TestMappingUnsymbolizable(t *testing.T) {
1945 testcases := []struct {

Callers

nothing calls this directly

Calls 3

LargeProfileFunction · 0.92
ParseFunction · 0.85
WriteUncompressedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…