Options encodes the options for constructing a graph
| 53 | |
| 54 | // Options encodes the options for constructing a graph |
| 55 | type 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. |
| 69 | type Nodes []*Node |
nothing calls this directly
no outgoing calls
no test coverage detected