pprof

package
v0.55.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 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) Handler added in v0.55.0

func (dr *Resource) Handler() http.Handler

Handler returns the HTTP handler containing the pprof endpoints.

func (*Resource) Status

func (dr *Resource) Status() (any, 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