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

Function makeProfileCopier

internal/driver/driver.go:394–399  ·  view source on GitHub ↗
(src *profile.Profile)

Source from the content-addressed store, hash-verified

392type profileCopier []byte
393
394func makeProfileCopier(src *profile.Profile) profileCopier {
395 // Pre-serialize the profile. We will deserialize every time a fresh copy is needed.
396 var buf bytes.Buffer
397 src.WriteUncompressed(&buf)
398 return profileCopier(buf.Bytes())
399}
400
401// newCopy returns a new copy of the profile.
402func (c profileCopier) newCopy() *profile.Profile {

Callers 3

serveWebInterfaceFunction · 0.85
interactiveFunction · 0.85
TestProfileCopierFunction · 0.85

Calls 2

profileCopierTypeAlias · 0.85
WriteUncompressedMethod · 0.80

Tested by 1

TestProfileCopierFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…