Documentation
¶
Index ¶
- type ManagerError
- type ProfilerManager
- func (pm *ProfilerManager) AddProfiler(profiler core.Profiler) error
- func (pm *ProfilerManager) AppName() string
- func (pm *ProfilerManager) Backend() core.BackendType
- func (pm *ProfilerManager) Init() error
- func (pm *ProfilerManager) IsRunning() bool
- func (pm *ProfilerManager) ServerAddress() string
- func (pm *ProfilerManager) Start() error
- func (pm *ProfilerManager) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagerError ¶
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
Click to show internal directories.
Click to hide internal directories.