Documentation ¶
Index ¶
- type Option
- type SampleProfiler
- func (s *SampleProfiler) EventHandler(e *nettrace.Blob) error
- func (s *SampleProfiler) MetadataHandler(md *nettrace.Metadata) error
- func (s *SampleProfiler) Samples() map[string]time.Duration
- func (s *SampleProfiler) SequencePointBlockHandler(*nettrace.SequencePointBlock) error
- func (s *SampleProfiler) StackBlockHandler(sb *nettrace.StackBlock) error
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
Click to show internal directories.
Click to hide internal directories.