profile

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.8.4

type Config struct {
	OutputDir      string
	FilePrefix     string
	SampleInterval time.Duration
}

Config holds the configuration for profiling.

func DefaultConfig added in v1.8.4

func DefaultConfig() *Config

DefaultConfig returns a default profile configuration.

type Profiler added in v1.8.4

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

func StartProfiling added in v1.8.4

func StartProfiling(ctx context.Context, config *Config) (*Profiler, error)

StartProfiling beings profiling CPU, goroutines, and memory.

func (*Profiler) Stop added in v1.8.4

func (p *Profiler) Stop()

Jump to

Keyboard shortcuts

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