profiler

package
v0.2.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfilerService

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

ProfilerService is the data structure representing a profiler webserver.

func NewService

func NewService(opts ServiceOpts) (*ProfilerService, error)

NewService returns a new Profiler instance.

func (*ProfilerService) Start

func (s *ProfilerService) Start() error

Start starts the profiler.

func (*ProfilerService) Stop

func (s *ProfilerService) Stop()

Stop stops the profiler.

type ServiceOpts

type ServiceOpts struct {
	Port          int
	StatsInterval time.Duration
	Datadir       string
}

Service opts holds configuration options for the profiler service.

Jump to

Keyboard shortcuts

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