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

Method get

internal/binutils/binutils.go:72–82  ·  view source on GitHub ↗

get returns the current representation for bu, initializing it if necessary.

()

Source from the content-addressed store, hash-verified

70
71// get returns the current representation for bu, initializing it if necessary.
72func (bu *Binutils) get() *binrep {
73 bu.mu.Lock()
74 r := bu.rep
75 if r == nil {
76 r = &binrep{}
77 initTools(r, "")
78 bu.rep = r
79 }
80 bu.mu.Unlock()
81 return r
82}
83
84// update modifies the rep for bu via the supplied function.
85func (bu *Binutils) update(fn func(r *binrep)) {

Callers 3

StringMethod · 0.95
DisasmMethod · 0.95
OpenMethod · 0.95

Calls 1

initToolsFunction · 0.85

Tested by

no test coverage detected