parser

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessSymbols added in v0.8.1

func ProcessSymbols(ref *types.SymbolList)

Types

type ChunkHeader

type ChunkHeader struct {
	Magic              uint32
	Version            uint32
	Size               int
	OffsetConstantPool int
	OffsetMeta         int
	StartNanos         uint64
	DurationNanos      uint64
	StartTicks         uint64
	TicksPerSecond     uint64
	Features           uint32
}

func (*ChunkHeader) String

func (c *ChunkHeader) String() string

type Options

type Options struct {
	ChunkSizeLimit  int
	SymbolProcessor SymbolProcessor
}

type Parser

type Parser struct {
	FrameTypes   types2.FrameTypeList
	ThreadStates types2.ThreadStateList
	Threads      types2.ThreadList
	Classes      types2.ClassList
	Methods      types2.MethodList
	Packages     types2.PackageList
	Symbols      types2.SymbolList
	LogLevels    types2.LogLevelList
	Stacktrace   types2.StackTraceList

	ExecutionSample             types2.ExecutionSample
	ObjectAllocationInNewTLAB   types2.ObjectAllocationInNewTLAB
	ObjectAllocationOutsideTLAB types2.ObjectAllocationOutsideTLAB
	JavaMonitorEnter            types2.JavaMonitorEnter
	ThreadPark                  types2.ThreadPark
	LiveObject                  types2.LiveObject
	ActiveSetting               types2.ActiveSetting

	TypeMap def.TypeMap
	// contains filtered or unexported fields
}

func NewParser

func NewParser(buf []byte, options Options) *Parser

func (*Parser) ChunkHeader added in v0.8.1

func (p *Parser) ChunkHeader() ChunkHeader

func (*Parser) GetClass

func (p *Parser) GetClass(cID types2.ClassRef) *types2.Class

func (*Parser) GetMethod

func (p *Parser) GetMethod(mID types2.MethodRef) *types2.Method

func (*Parser) GetStacktrace

func (p *Parser) GetStacktrace(stID types2.StackTraceRef) *types2.StackTrace

func (*Parser) GetSymbol

func (p *Parser) GetSymbol(sID types2.SymbolRef) *types2.Symbol

func (*Parser) GetSymbolString

func (p *Parser) GetSymbolString(sID types2.SymbolRef) string

func (*Parser) GetThreadState

func (p *Parser) GetThreadState(ref types2.ThreadStateRef) *types2.ThreadState

func (*Parser) ParseEvent

func (p *Parser) ParseEvent() (def.TypeID, error)

type SymbolProcessor

type SymbolProcessor func(ref *types2.SymbolList)

Directories

Path Synopsis
def

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL