Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + var LegacyHeapAllocated bool + type Demangler func(name []string) (map[string]string, error) + type Function struct + Filename string + ID uint64 + Name string + StartLine int64 + SystemName string + type Label struct + type Line struct + Function *Function + Line int64 + type Location struct + Address uint64 + ID uint64 + IsFolded bool + Line []Line + Mapping *Mapping + type Mapping struct + BuildID string + File string + HasFilenames bool + HasFunctions bool + HasInlineFrames bool + HasLineNumbers bool + ID uint64 + Limit uint64 + Offset uint64 + Start uint64 + type Profile struct + Comments []string + DefaultSampleType string + DropFrames string + DurationNanos int64 + Function []*Function + KeepFrames string + Location []*Location + Mapping []*Mapping + Period int64 + PeriodType *ValueType + Sample []*Sample + SampleType []*ValueType + TimeNanos int64 + func Merge(srcs []*Profile) (*Profile, error) + func Parse(r io.Reader) (*Profile, error) + func ParseTracebacks(b []byte) (*Profile, error) + func (p *Profile) Aggregate(inlineFrame, function, filename, linenumber, address bool) error + func (p *Profile) CheckValid() error + func (p *Profile) Compatible(pb *Profile) error + func (p *Profile) Copy() *Profile + func (p *Profile) Demangle(d Demangler) error + func (p *Profile) Empty() bool + func (p *Profile) FilterSamplesByName(focus, ignore, hide *regexp.Regexp) (fm, im, hm bool) + func (p *Profile) FilterSamplesByTag(focus, ignore TagMatch) (fm, im bool) + func (p *Profile) HasFileLines() bool + func (p *Profile) HasFunctions() bool + func (p *Profile) Merge(pb *Profile, r float64) error + func (p *Profile) Normalize(pb *Profile) error + func (p *Profile) ParseMemoryMap(rd io.Reader) error + func (p *Profile) Prune(dropRx, keepRx *regexp.Regexp) + func (p *Profile) RemoveUninteresting() error + func (p *Profile) Scale(ratio float64) + func (p *Profile) ScaleN(ratios []float64) error + func (p *Profile) String() string + func (p *Profile) Write(w io.Writer) error + type Sample struct + Label map[string][]string + Location []*Location + NumLabel map[string][]int64 + NumUnit map[string][]string + Value []int64 + type TagMatch func(key, val string, nval int64) bool + type ValueType struct + Type string + Unit string