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

Function settingsFileName

internal/driver/settings.go:24–31  ·  view source on GitHub ↗

settingsFileName returns the name of the file where settings should be saved.

()

Source from the content-addressed store, hash-verified

22
23// settingsFileName returns the name of the file where settings should be saved.
24func settingsFileName() (string, error) {
25 // Return "pprof/settings.json" under os.UserConfigDir().
26 dir, err := os.UserConfigDir()
27 if err != nil {
28 return "", err
29 }
30 return filepath.Join(dir, "pprof", "settings.json"), nil
31}
32
33// readSettings reads settings from fname.
34func readSettings(fname string) (*settings, error) {

Callers 1

makeWebInterfaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…