pprof

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pprof provides an HTTP resource for exposing pprof debugging endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Logger zerolog.Logger
}

Resource implements the Resource interface for pprof endpoints.

func NewResource

func NewResource(logger zerolog.Logger) *Resource

NewResource creates a new pprof resource.

func (*Resource) RegisterRoutes

func (dr *Resource) RegisterRoutes(parentRouter *mux.Router)

RegisterRoutes registers the pprof endpoints on the provided router.

func (*Resource) Status

func (dr *Resource) Status() (interface{}, error)

Status returns the status of the pprof resource.

type Status

type Status struct {
	Status string
}

Status represents the status of the pprof resource.

Jump to

Keyboard shortcuts

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