fastdelta

package
v1.43.0-fastdelta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 10 Imported by: 0

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 Hash

type Hash [16]byte

type LabelRecordNumber

type LabelRecordNumber int32

LabelRecordNumber type for Label message records

type LineRecordNumber

type LineRecordNumber int32

LineRecordNumber type for Line 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
}

func (*StringTable) Add

func (s *StringTable) Add(b []byte, h hash.Hash)

func (*StringTable) Equals

func (s *StringTable) Equals(i int, b []byte, h hash.Hash) bool

Equals returns whether the value at index i equals the byte string b

type Value

type Value [4]int64

type ValueTypeRecordNumber

type ValueTypeRecordNumber int32

ValueTypeRecordNumber type for ValueType message records

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳