StackSet holds a set of stacks corresponding to a profile. Slices in StackSet and the types it contains are always non-nil, which makes Javascript code that uses the JSON encoding less error-prone.
| 29 | // Slices in StackSet and the types it contains are always non-nil, |
| 30 | // which makes Javascript code that uses the JSON encoding less error-prone. |
| 31 | type StackSet struct { |
| 32 | Total int64 // Total value of the profile. |
| 33 | Scale float64 // Multiplier to generate displayed value |
| 34 | Type string // Profile type. E.g., "cpu". |
| 35 | Unit string // One of "B", "s", "GCU", or "" (if unknown) |
| 36 | Stacks []Stack // List of stored stacks |
| 37 | Sources []StackSource // Mapping from source index to info |
| 38 | report *Report |
| 39 | } |
| 40 | |
| 41 | // Stack holds a single stack instance. |
| 42 | type Stack struct { |
nothing calls this directly
no outgoing calls
no test coverage detected