profiler

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profiler

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

Profiler provides HTTP endpoints for memory profiling.

func NewProfiler

func NewProfiler() *Profiler

NewProfiler creates a new profiler.

func (*Profiler) RegisterRoutes

func (*Profiler) RegisterRoutes(e *echo.Echo)

RegisterRoutes adds profiling endpoints to the Echo server.

func (*Profiler) StartMemoryMonitor

func (p *Profiler) StartMemoryMonitor(ctx context.Context)

StartMemoryMonitor starts a goroutine that periodically logs memory stats.

Jump to

Keyboard shortcuts

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