profiler

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package profiler implements pprof routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRoutes

func DefaultRoutes() []string

DefaultRoutes returns default routes.

Route name is "/debug/pprof/<name>".

func New

func New(opt Options) http.Handler

New returns new pprof handler.

Types

type Options

type Options struct {
	Routes       []string           // defaults to DefaultRoutes
	UnknownRoute func(route string) // defaults to ignore
}

Options for New.

Jump to

Keyboard shortcuts

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