profiler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameInfo

type FrameInfo struct {
	ThreadID    int64
	Level       int
	SampledTime time.Duration
	Addr        uint64
	Name        string
}

type SampleProfiler

type SampleProfiler struct {
	// contains filtered or unexported fields
}

func NewSampleProfiler

func NewSampleProfiler(trace *nettrace.Trace) *SampleProfiler

func (*SampleProfiler) EventHandler

func (s *SampleProfiler) EventHandler(e *nettrace.Blob) error

func (*SampleProfiler) MetadataHandler

func (s *SampleProfiler) MetadataHandler(md *nettrace.Metadata) error

func (*SampleProfiler) SequencePointBlockHandler

func (s *SampleProfiler) SequencePointBlockHandler(*nettrace.SequencePointBlock) error

func (*SampleProfiler) StackBlockHandler

func (s *SampleProfiler) StackBlockHandler(sb *nettrace.StackBlock) error

func (*SampleProfiler) Walk

func (s *SampleProfiler) Walk(fn func(FrameInfo))

func (*SampleProfiler) WalkThread

func (s *SampleProfiler) WalkThread(threadID int64, fn func(FrameInfo))

Jump to

Keyboard shortcuts

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