profiler

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 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 Option added in v1.1.0

type Option func(*SampleProfiler)

func WithManagedCodeOnly added in v1.1.0

func WithManagedCodeOnly() Option

WithManagedCodeOnly prescribes SampleProfiler to ignore the time that was spent in native (unmanaged) code.

type SampleProfiler

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

SampleProfiler processes event stream from Microsoft-DotNETCore-SampleProfiler provider and calculates time for every call stack.

func NewSampleProfiler

func NewSampleProfiler(trace *nettrace.Trace, options ...Option) *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) Samples added in v1.0.1

func (s *SampleProfiler) Samples() map[string]time.Duration

func (*SampleProfiler) SequencePointBlockHandler

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

func (*SampleProfiler) StackBlockHandler

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

Jump to

Keyboard shortcuts

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