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

Function ParseUncompressed

profile/profile.go:237–251  ·  view source on GitHub ↗

ParseUncompressed parses an uncompressed protobuf into a profile.

(data []byte)

Source from the content-addressed store, hash-verified

235
236// ParseUncompressed parses an uncompressed protobuf into a profile.
237func ParseUncompressed(data []byte) (*Profile, error) {
238 if len(data) == 0 {
239 return nil, errNoData
240 }
241 p := &Profile{}
242 if err := unmarshal(data, p); err != nil {
243 return nil, err
244 }
245
246 if err := p.postDecode(); err != nil {
247 return nil, err
248 }
249
250 return p, nil
251}
252
253var libRx = regexp.MustCompile(`([.]so$|[.]so[._][0-9]+)`)
254

Callers 2

newCopyMethod · 0.92
ParseDataFunction · 0.85

Calls 2

postDecodeMethod · 0.95
unmarshalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…