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

Function defaultConfig

internal/driver/config.go:63–74  ·  view source on GitHub ↗

defaultConfig returns the default configuration values; it is unaffected by flags and interactive assignments.

()

Source from the content-addressed store, hash-verified

61// defaultConfig returns the default configuration values; it is unaffected by
62// flags and interactive assignments.
63func defaultConfig() config {
64 return config{
65 Unit: "minimum",
66 NodeCount: -1,
67 NodeFraction: 0.005,
68 EdgeFraction: 0.001,
69 Trim: true,
70 DivideBy: 1.0,
71 Sort: "flat",
72 Granularity: "", // Default depends on the display format
73 }
74}
75
76// currentConfig holds the current configuration values; it is affected by
77// flags and interactive assignments.

Callers 6

TestParseConfigFunction · 0.85
TestDefaultConfigFunction · 0.85
TestConfigMenuFunction · 0.85
configMenuFunction · 0.85
config.goFile · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestParseConfigFunction · 0.68
TestDefaultConfigFunction · 0.68
TestConfigMenuFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…