Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WalkSamples ¶
WalkSamples is a convenience function for looping over time samples. For instance, it can be used to loop over time/ns data.
It calls a given function for every non-empty location with all "lines" combined into a stack.
Types ¶
type Sample ¶
type Sample struct { Value int64 // Stack contains line entries for this sample. // Stack[0] is a current function. // Stack[1:] is a slice of the callers. // // The stack is never empty if this Sample object is provided // by the WalkSamples function. Stack []profile.Line }
Sample holds data of the current sample in a convenient way.
See WalkSamples.
Click to show internal directories.
Click to hide internal directories.