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

Method SetTools

internal/binutils/binutils.go:130–132  ·  view source on GitHub ↗

SetTools processes the contents of the tools option. It expects a set of entries separated by commas; each entry is a pair of the form t:path, where cmd will be used to look only for the tool named t. If t is not specified, the path is searched for all tools.

(config string)

Source from the content-addressed store, hash-verified

128// tool named t. If t is not specified, the path is searched for all
129// tools.
130func (bu *Binutils) SetTools(config string) {
131 bu.update(func(r *binrep) { initTools(r, config) })
132}
133
134func initTools(b *binrep, config string) {
135 // paths collect paths per tool; Key "" contains the default.

Callers 2

TestSetToolsFunction · 0.95
parseFlagsFunction · 0.80

Calls 2

updateMethod · 0.95
initToolsFunction · 0.85

Tested by 1

TestSetToolsFunction · 0.76