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

Struct StackSet

internal/report/stacks.go:31–39  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
31type 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.
42type Stack struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected