pprof

package
v1.13.4-0...-6675bf8 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPProfRouter

func InitPProfRouter(parentRouter *web.Router)

InitPProfRouter adds the routes for PProf.

Types

type Context

type Context struct {
	*controllers.Context // Required.
}

Context is a debug context to profile information about the backend.

func (*Context) Block

func (c *Context) Block(rw web.ResponseWriter, req *web.Request)

Block responds with the the block pprof-formatted profile. (Based off Index)

func (*Context) Goroutine

func (c *Context) Goroutine(rw web.ResponseWriter, req *web.Request)

Goroutine responds with the goroutine pprof-formatted profile. (Based off Index)

func (*Context) Heap

func (c *Context) Heap(rw web.ResponseWriter, req *web.Request)

Heap responds with the heap pprof-formatted profile. (Based off Index)

func (*Context) Index

func (c *Context) Index(rw web.ResponseWriter, req *web.Request)

Index responds with the pprof-formatted profile named by the request.

func (*Context) Profile

func (c *Context) Profile(rw web.ResponseWriter, req *web.Request)

Profile responds with the cpu pprof-formatted profile.

func (*Context) Symbol

func (c *Context) Symbol(rw web.ResponseWriter, req *web.Request)

Symbol looks up the program counters listed in the request, responding with a table mapping program counters to function names.

func (*Context) Threadcreate

func (c *Context) Threadcreate(rw web.ResponseWriter, req *web.Request)

Threadcreate responds with the threadcreate pprof-formatted profile. (Based off Index)

Jump to

Keyboard shortcuts

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