profile

package
v0.0.0-...-5654eb1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllProfiles = []Profile{
	&CPUProfile{},
	&MemProfile{},
}

Functions

This section is empty.

Types

type BlockProfile

type BlockProfile struct {
	ProfileDuration time.Duration
}

func (*BlockProfile) Name

func (p *BlockProfile) Name() string

func (*BlockProfile) Start

func (p *BlockProfile) Start(ctx context.Context, f io.Writer) error

func (*BlockProfile) Stop

func (p *BlockProfile) Stop() error

type CPUProfile

type CPUProfile struct {
	ProfileDuration time.Duration
}

func (*CPUProfile) Name

func (p *CPUProfile) Name() string

func (*CPUProfile) Start

func (p *CPUProfile) Start(ctx context.Context, f io.Writer) error

func (*CPUProfile) Stop

func (p *CPUProfile) Stop() error

type GoroutineProfile

type GoroutineProfile struct{}

func (*GoroutineProfile) Name

func (p *GoroutineProfile) Name() string

func (*GoroutineProfile) Start

func (p *GoroutineProfile) Start(ctx context.Context, f io.Writer) error

func (*GoroutineProfile) Stop

func (p *GoroutineProfile) Stop() error

type MemProfile

type MemProfile struct{}

func (*MemProfile) Name

func (p *MemProfile) Name() string

func (*MemProfile) Start

func (p *MemProfile) Start(ctx context.Context, f io.Writer) error

func (*MemProfile) Stop

func (p *MemProfile) Stop() error

type Profile

type Profile interface {
	Name() string
	Start(ctx context.Context, f io.Writer) error
	Stop() error
}

Jump to

Keyboard shortcuts

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