manager

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerError

type ManagerError struct {
	Operation string
	Message   string
}

ManagerError represents an error in the profiler manager

func (*ManagerError) Error

func (e *ManagerError) Error() string

type ProfilerManager

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

ProfilerManager handles lifecycle and coordination of multiple profilers

func NewProfilerManager

func NewProfilerManager(cfg config.Config) *ProfilerManager

NewProfilerManager creates a new profiler manager

func (*ProfilerManager) AddProfiler

func (pm *ProfilerManager) AddProfiler(profiler core.Profiler) error

AddProfiler adds an additional profiler to the manager

func (*ProfilerManager) AppName added in v1.3.0

func (pm *ProfilerManager) AppName() string

AppName returns the application name from config

func (*ProfilerManager) Backend added in v1.3.0

func (pm *ProfilerManager) Backend() core.BackendType

Backend returns the backend type from config

func (*ProfilerManager) Init

func (pm *ProfilerManager) Init() error

Init initializes and starts the configured profiler(s)

func (*ProfilerManager) IsRunning

func (pm *ProfilerManager) IsRunning() bool

IsRunning returns whether the profiler manager is running

func (*ProfilerManager) ServerAddress added in v1.3.0

func (pm *ProfilerManager) ServerAddress() string

ServerAddress returns the server address from config

func (*ProfilerManager) Start

func (pm *ProfilerManager) Start() error

Start starts all managed profilers

func (*ProfilerManager) Stop

func (pm *ProfilerManager) Stop() error

Stop stops all managed profilers

Jump to

Keyboard shortcuts

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