Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeltaComputer ¶
type DeltaComputer struct {
// contains filtered or unexported fields
}
DeltaComputer calculates the difference between pprof-encoded profiles
func NewDeltaComputer ¶
func NewDeltaComputer(fields ...string) *DeltaComputer
NewDeltaComputer initializes a DeltaComputer which will calculate the difference between the values for profile samples whose fields have the given names (e.g. "alloc_space", "contention", ...)
func (*DeltaComputer) Delta ¶
func (dc *DeltaComputer) Delta(p []byte, out io.Writer) error
Delta calculates the difference between the pprof-encoded profile p and the profile passed in to the previous call to Delta. The encoded delta profile will be written to out.
The first time Delta is called, the internal state of the DeltaComputer will be updated and the profile will be written unchanged.
type FunctionRecordNumber ¶
type FunctionRecordNumber int32
FunctionRecordNumber type for Function message records
type LabelRecordNumber ¶
type LabelRecordNumber int32
LabelRecordNumber type for Label message records
type LocationRecordNumber ¶
type LocationRecordNumber int32
LocationRecordNumber type for Location message records
type MappingRecordNumber ¶
type MappingRecordNumber int32
MappingRecordNumber type for Mapping message records
type ProfileRecordNumber ¶
type ProfileRecordNumber int32
ProfileRecordNumber type for Profile message records
type SampleRecordNumber ¶
type SampleRecordNumber int32
SampleRecordNumber type for Sample message records
type StringTable ¶
type StringTable struct {
// contains filtered or unexported fields
}
type ValueTypeRecordNumber ¶
type ValueTypeRecordNumber int32
ValueTypeRecordNumber type for ValueType message records