Documentation ¶
Index ¶
- Constants
- Variables
- func UnmarshalVTLabel(dAtA []byte) (uint64, error)
- type Labels
- type LabelsCache
- type ParserConfig
- type StackFormatter
- type VTStreamingParser
- func (p *VTStreamingParser) FreeArena()
- func (p *VTStreamingParser) ParsePprof(ctx context.Context, startTime, endTime time.Time, bs []byte, ...) (err error)
- func (p *VTStreamingParser) Reset(config ParserConfig)
- func (p *VTStreamingParser) ResetCache()
- func (p *VTStreamingParser) ResolveLabels(l Labels) map[string]string
- func (p *VTStreamingParser) ReturnToPool()
- func (p *VTStreamingParser) UnmarshalVTProfile(dAtA []byte, opFlag uint64) error
Constants ¶
View Source
const ( // StackFrameFormatterGo use only function name StackFrameFormatterGo = 0 // StackFrameFormatterRuby use function name, line number, function name StackFrameFormatterRuby = 1 )
Variables ¶
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") ErrUnknownField = fmt.Errorf("proto: unknown field") )
View Source
var PPROFBufPool = bytebufferpool.Pool{}
Functions ¶
func UnmarshalVTLabel ¶
revive:disable-next-line:cognitive-complexity,cyclomatic necessary complexity
Types ¶
type Labels ¶
type Labels []uint64
func CutLabel ¶
func CutLabel(a arenahelper.ArenaWrapper, labels Labels, i int) Labels
CutLabel creates a copy of labels without label i.
type LabelsCache ¶
type LabelsCache struct {
// contains filtered or unexported fields
}
func (*LabelsCache) GetOrCreateTree ¶
func (c *LabelsCache) GetOrCreateTree(sampleTypeIndex int, l Labels) *tree.Tree
func (*LabelsCache) Remove ¶
func (c *LabelsCache) Remove(sampleTypeIndex int, h uint64)
func (*LabelsCache) Reset ¶
func (c *LabelsCache) Reset()
type ParserConfig ¶
type StackFormatter ¶
type StackFormatter int
func StackFrameFormatterForSpyName ¶
func StackFrameFormatterForSpyName(spyName string) StackFormatter
type VTStreamingParser ¶
type VTStreamingParser struct { Formatter StackFormatter ArenasEnabled bool // contains filtered or unexported fields }
func NewStreamingParser ¶
func NewStreamingParser(config ParserConfig) *VTStreamingParser
func VTStreamingParserFromPool ¶
func VTStreamingParserFromPool(config ParserConfig) *VTStreamingParser
func (*VTStreamingParser) FreeArena ¶
func (p *VTStreamingParser) FreeArena()
func (*VTStreamingParser) ParsePprof ¶
func (*VTStreamingParser) Reset ¶
func (p *VTStreamingParser) Reset(config ParserConfig)
func (*VTStreamingParser) ResetCache ¶
func (p *VTStreamingParser) ResetCache()
func (*VTStreamingParser) ResolveLabels ¶
func (p *VTStreamingParser) ResolveLabels(l Labels) map[string]string
func (*VTStreamingParser) ReturnToPool ¶
func (p *VTStreamingParser) ReturnToPool()
func (*VTStreamingParser) UnmarshalVTProfile ¶
func (p *VTStreamingParser) UnmarshalVTProfile(dAtA []byte, opFlag uint64) error
revive:disable-next-line:cognitive-complexity,cyclomatic necessary complexity
Click to show internal directories.
Click to hide internal directories.