Versions in this module Expand all Collapse all v1 v1.1.21 Sep 5, 2024 Changes in this version + const AsyncProfiler + const DDtrace + const LabelExceptionType + const LabelLocalRootSpanID + const LabelSpanID + const LabelThreadID + const LabelThreadName + const LabelThreadNativeID + const PySpy + const Pyroscope + const Unknown + const UnknownInfo + var Assembly = &Aggregator + var Class = &Aggregator + var DDTraceDotnetAggregatorList = []*Aggregator + var DDTracePHPAggregatorList = []*Aggregator + var Directory = &Aggregator + var File = &Aggregator + var Function = &Aggregator + var FunctionLine = &Aggregator + var GZIPMagic = []byte + var GoAggregatorList = []*Aggregator + var LZ4Magic = []byte + var Method = &Aggregator + var Namespace = &Aggregator + var PHPFunction = &Aggregator + var Package = &Aggregator + var PyroNodeFile = &Aggregator + var PyroNodeFunction = &Aggregator + var PyroscopeNodeJSAggregatorList = []*Aggregator + var PythonAggregatorList = []*Aggregator + var SpyAggregatorList = []*Aggregator + var ThreadID = &Aggregator + var ThreadName = &Aggregator + var ZIPMagic = []byte + func GetFuncAndLineDisplay(lang languages.Lang, smp *profile.Sample, reverse bool) string + func GetPrintStrByLine(lang languages.Lang, line profile.Line) string + func GetSpyPrintStr(funcName, fileName string) string + func GetSummary(param parameter.SummaryParam, filterBySpan bool, spanIDSet *tracing.SpanIDSet) (map[events.Type]*EventSummary, int64, error) + func IsCollapseProfile(profiles []*parameter.Profile, workspaceUUID string) (bool, error) + func NewDecompressor(r io.Reader) io.ReadCloser + type Aggregator struct + GetDisplayStr GetPropertyFunc + GetIdentifier GetPropertyFunc + GetMappingFuncs []GetPropertyFunc + Mapping []string + Name string + ShowLanguages languages.LangID + type AggregatorOption struct + MappingValues []string + Percent string + Quantity *quantity.Quantity + Title string + Unit *quantity.Unit + Value int64 + func (ao *AggregatorOption) CalcPercentAndQuantity(total int64) + type AggregatorSelect struct + Aggregator *Aggregator + Mapping []string + Options OptionMap + type AggregatorSelectForJSON struct + Dimension string + Mapping []string + Options OptionSlice + type AggregatorSelectSlice []*AggregatorSelect + func ParseRawFlameGraph(filename string) (*pprof.Frame, AggregatorSelectSlice, error) + func (asm AggregatorSelectSlice) CalcPercentAndQuantity(total int64) + func (asm AggregatorSelectSlice) MarshalJSON() ([]byte, error) + type Collapse struct + func NewCollapse(workspaceUUID string, profiles []*parameter.Profile, filterBySpan bool, ...) *Collapse + func (p *Collapse) ResolveFlameGraph(_ events.Type) (*pprof.Frame, AggregatorSelectSlice, error) + func (p *Collapse) Summary() (map[events.Type]*EventSummary, int64, error) + type DDFieldTag string + const AssemblyTag + const ClassTag + const MethodTag + const NamespaceTag + type DDTrace struct + func (D DDTrace) ShowInProfile(e events.Type) bool + func (D DDTrace) ShowInTrace(e events.Type) bool + type Decompressor struct + func (d *Decompressor) Close() error + type DisplayCtl interface + ShowInProfile func(e events.Type) bool + ShowInTrace func(e events.Type) bool + type EventSummary = pprof.EventSummary + type Format string + const Collapsed + const FlameGraph + const JFR + const PPROF + const RawFlameGraph + const SpeedScope + type GetPropertyByLine func(lang languages.Lang, line profile.Line) string + type GetPropertyFunc func(lang languages.Lang, smp *profile.Sample, reverse bool) string + type MetaData struct + Attachments []string + Format Format + Profiler Profiler + func ReadMetaData(prof *parameter.Profile, workspaceUUID string) (*MetaData, error) + func ReadMetaDataFile(f string) (*MetaData, error) + type OptionMap map[string]*AggregatorOption + type OptionSlice []*AggregatorOption + func (os OptionSlice) Len() int + func (os OptionSlice) Less(i, j int) bool + func (os OptionSlice) Swap(i, j int) + type PProf struct + func NewPProfParser(from string, workspaceUUID string, profiles []*parameter.Profile, ...) *PProf + func (p *PProf) ResolveFlameGraph(eventType events.Type) (*pprof.Frame, AggregatorSelectSlice, error) + func (p *PProf) Summary() (map[events.Type]*EventSummary, int64, error) + type Parser interface + ResolveFlameGraph func(eventType events.Type) (*pprof.Frame, AggregatorSelectSlice, error) + Summary func() (map[events.Type]*EventSummary, int64, error) + type Profiler string + type PyroscopeNodejs struct + func (p *PyroscopeNodejs) ShowInProfile(_ events.Type) bool + func (p *PyroscopeNodejs) ShowInTrace(_ events.Type) bool + type SampleFile struct + Filename string + SampleType string + func GetFileByEvent(lang languages.Lang, typ events.Type) (*SampleFile, error) + type SummaryCollection = pprof.SummaryCollection + type SummaryValueType = pprof.SummaryValueType