pprof

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

pprof Routes

This package adds pprof profiling routes to go-restful apps.

Usage

Importing
import "github.com/AccelByte/go-restful-plugins/pkg/profiling/pprof"
Add pprof routes
pprof.Route("/basepath")

Now the pprof paths can be accessed from http://host:port/basepath/debug/pprof.

Reference: https://golang.org/pkg/net/http/pprof/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(basePath string)

Route registers pprof routes based on the basepath

Types

This section is empty.

Jump to

Keyboard shortcuts

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