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

Struct config

internal/driver/config.go:16–59  ·  view source on GitHub ↗

config holds settings for a single named config. The JSON tag name for a field is used both for JSON encoding and as a named variable.

Source from the content-addressed store, hash-verified

14// The JSON tag name for a field is used both for JSON encoding and as
15// a named variable.
16type config struct {
17 // Filename for file-based output formats, stdout by default.
18 Output string `json:"-"`
19
20 // Display options.
21 CallTree bool `json:"call_tree,omitempty"`
22 RelativePercentages bool `json:"relative_percentages,omitempty"`
23 Unit string `json:"unit,omitempty"`
24 CompactLabels bool `json:"compact_labels,omitempty"`
25 SourcePath string `json:"-"`
26 TrimPath string `json:"-"`
27 IntelSyntax bool `json:"intel_syntax,omitempty"`
28 Mean bool `json:"mean,omitempty"`
29 SampleIndex string `json:"-"`
30 DivideBy float64 `json:"-"`
31 Normalize bool `json:"normalize,omitempty"`
32 Sort string `json:"sort,omitempty"`
33
34 // Label pseudo stack frame generation options
35 TagRoot string `json:"tagroot,omitempty"`
36 TagLeaf string `json:"tagleaf,omitempty"`
37
38 // Filtering options
39 DropNegative bool `json:"drop_negative,omitempty"`
40 NodeCount int `json:"nodecount,omitempty"`
41 NodeFraction float64 `json:"nodefraction,omitempty"`
42 EdgeFraction float64 `json:"edgefraction,omitempty"`
43 Trim bool `json:"trim,omitempty"`
44 Focus string `json:"focus,omitempty"`
45 Ignore string `json:"ignore,omitempty"`
46 PruneFrom string `json:"prune_from,omitempty"`
47 Hide string `json:"hide,omitempty"`
48 Show string `json:"show,omitempty"`
49 ShowFrom string `json:"show_from,omitempty"`
50 TagFocus string `json:"tagfocus,omitempty"`
51 TagIgnore string `json:"tagignore,omitempty"`
52 TagShow string `json:"tagshow,omitempty"`
53 TagHide string `json:"taghide,omitempty"`
54 NoInlines bool `json:"noinlines,omitempty"`
55 ShowColumns bool `json:"showcolumns,omitempty"`
56
57 // Output granularity
58 Granularity string `json:"granularity,omitempty"`
59}
60
61// defaultConfig returns the default configuration values; it is unaffected by
62// flags and interactive assignments.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected