Documentation ¶
Index ¶
- func InitPProfRouter(parentRouter *web.Router)
- type Context
- func (c *Context) Block(rw web.ResponseWriter, req *web.Request)
- func (c *Context) Goroutine(rw web.ResponseWriter, req *web.Request)
- func (c *Context) Heap(rw web.ResponseWriter, req *web.Request)
- func (c *Context) Index(rw web.ResponseWriter, req *web.Request)
- func (c *Context) Profile(rw web.ResponseWriter, req *web.Request)
- func (c *Context) Symbol(rw web.ResponseWriter, req *web.Request)
- func (c *Context) Threadcreate(rw web.ResponseWriter, req *web.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPProfRouter ¶
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)