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

Struct Options

internal/graph/graph.go:55–66  ·  view source on GitHub ↗

Options encodes the options for constructing a graph

Source from the content-addressed store, hash-verified

53
54// Options encodes the options for constructing a graph
55type Options struct {
56 SampleValue func(s []int64) int64 // Function to compute the value of a sample
57 SampleMeanDivisor func(s []int64) int64 // Function to compute the divisor for mean graphs, or nil
58 FormatTag func(int64, string) string // Function to format a sample tag value into a string
59 ObjNames bool // Always preserve obj filename
60 OrigFnNames bool // Preserve original (eg mangled) function names
61
62 CallTree bool // Build a tree instead of a graph
63 DropNegative bool // Drop nodes with overall negative values
64
65 KeptNodes NodeSet // If non-nil, only use nodes in this set
66}
67
68// Nodes is an ordered collection of graph nodes.
69type Nodes []*Node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected