profile

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package profile exposes the Go net/http/pprof profiling endpoints over a dedicated HTTP server.

Index

Constants

View Source
const (
	ErrCodeProfileHttpError = "PRF-001"
)

Variables

View Source
var (
	ErrProfileHttpError = func(cause error) error {
		return jet.NewAppErrBuilder(ErrCodeProfileHttpError, "").Wrap(cause).Err()
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool
	Port    string
}

type Server

type Server interface {
	// Init initializes server with given opts
	Init(config *Config) error
	// Listen starts async listening
	Listen()
	// Close closes connection
	Close()
}

Server exposes profile dumps

func New

func New(logger jet.CLoggerFunc) Server

Jump to

Keyboard shortcuts

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