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

Function currentConfig

internal/driver/config.go:81–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79var currentMu sync.Mutex
80
81func currentConfig() config {
82 currentMu.Lock()
83 defer currentMu.Unlock()
84 return currentCfg
85}
86
87func setCurrentConfig(cfg config) {
88 currentMu.Lock()

Callers 15

TestFetchWithBaseFunction · 0.85
TestHTTPSInsecureFunction · 0.85
TestShellFunction · 0.85
TestAssignFunction · 0.85
openBrowserFunction · 0.85
makeReportMethod · 0.85
PProfFunction · 0.85
parseFlagsFunction · 0.85
greetingsFunction · 0.85
printCurrentOptionsFunction · 0.85
parseCommandLineFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestFetchWithBaseFunction · 0.68
TestHTTPSInsecureFunction · 0.68
TestShellFunction · 0.68
TestAssignFunction · 0.68
TestParseFunction · 0.68
TestSymbolzAfterMergeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…