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

Function Parse

profile/profile.go:172–178  ·  view source on GitHub ↗

Parse parses a profile and checks for its validity. The input may be a gzip-compressed encoded protobuf or one of many legacy profile formats which may be unsupported in the future.

(r io.Reader)

Source from the content-addressed store, hash-verified

170// may be a gzip-compressed encoded protobuf or one of many legacy
171// profile formats which may be unsupported in the future.
172func Parse(r io.Reader) (*Profile, error) {
173 data, err := io.ReadAll(r)
174 if err != nil {
175 return nil, err
176 }
177 return ParseData(data)
178}
179
180// ParseData parses a profile from a buffer and checks for its
181// validity.

Callers 13

fetchFunction · 0.92
largeProfileFunction · 0.92
readProfileFunction · 0.92
BenchmarkMergeFunction · 0.85
TestMarshalUnmarshalFunction · 0.85
TestParseFunction · 0.85
TestParseErrorFunction · 0.85
TestParseConcatentatedFunction · 0.85
TestCheckValidFunction · 0.85
TestEncodeDecodeDocURLFunction · 0.85
BenchmarkParseFunction · 0.85

Calls 1

ParseDataFunction · 0.85

Tested by 12

largeProfileFunction · 0.74
readProfileFunction · 0.74
BenchmarkMergeFunction · 0.68
TestMarshalUnmarshalFunction · 0.68
TestParseFunction · 0.68
TestParseErrorFunction · 0.68
TestParseConcatentatedFunction · 0.68
TestCheckValidFunction · 0.68
TestEncodeDecodeDocURLFunction · 0.68
BenchmarkParseFunction · 0.68
BenchmarkWriteFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…