profiler

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetProfilerEnabled

func SetProfilerEnabled(enabled bool)

SetProfilerEnabled enable or disable generating profiler data

Types

type AutoProfiler

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

func New

func New(log zerolog.Logger, dir string, interval time.Duration, duration time.Duration, enabled bool) (*AutoProfiler, error)

New creates a new AutoProfiler instance performing profiling every interval for duration.

func (*AutoProfiler) Done

func (p *AutoProfiler) Done() <-chan struct{}

func (*AutoProfiler) Ready

func (p *AutoProfiler) Ready() <-chan struct{}

Jump to

Keyboard shortcuts

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