profiler

package
v1.126.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(ball *mud.Ball)

Module registers all the possible components for the profiler instance.

Types

type Config

type Config struct {
	Name    string `help:"provide the name of the peer to enable continuous cpu/mem profiling for"`
	Project string `help:"provide the google project id for continuous profiling (required only for non-k8s environments)"`
}

Config contains configuration for Profiler.

type Profiler

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

Profiler is a component that initializes the Google continuous profiler.

func NewProfiler

func NewProfiler(cfg Config, log *zap.Logger) *Profiler

NewProfiler creates a new Profiler.

func (*Profiler) Run

func (p *Profiler) Run() error

Run starts the profiler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳