pprof

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 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