Node is an entry on a profiling report. It represents a unique program location.
| 71 | // Node is an entry on a profiling report. It represents a unique |
| 72 | // program location. |
| 73 | type Node struct { |
| 74 | // Info describes the source location associated to this node. |
| 75 | Info NodeInfo |
| 76 | |
| 77 | // Function represents the function that this node belongs to. On |
| 78 | // graphs with sub-function resolution (eg line number or |
| 79 | // addresses), two nodes in a NodeMap that are part of the same |
| 80 | // function have the same value of Node.Function. If the Node |
| 81 | // represents the whole function, it points back to itself. |
| 82 | Function *Node |
| 83 | |
| 84 | // Values associated to this node. Flat is exclusive to this node, |
| 85 | // Cum includes all descendents. |
| 86 | Flat, FlatDiv, Cum, CumDiv int64 |
| 87 | |
| 88 | // In and out Contains the nodes immediately reaching or reached by |
| 89 | // this node. |
| 90 | In, Out EdgeMap |
| 91 | |
| 92 | // LabelTags provide additional information about subsets of a sample. |
| 93 | LabelTags TagMap |
| 94 | |
| 95 | // NumericTags provide additional values for subsets of a sample. |
| 96 | // Numeric tags are optionally associated to a label tag. The key |
| 97 | // for NumericTags is the name of the LabelTag they are associated |
| 98 | // to, or "" for numeric tags not associated to a label tag. |
| 99 | NumericTags map[string]TagMap |
| 100 | } |
| 101 | |
| 102 | // FlatValue returns the exclusive value for this node, computing the |
| 103 | // mean if a divisor is available. |
nothing calls this directly
no outgoing calls
no test coverage detected