pprofui

package
v0.0.0-...-355f5ee Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

A Server serves up the pprof web ui. A request to /<profiletype> generates a profile of the desired type and redirects to the UI for it at /<profiletype>/<id>. Valid profile types at the time of writing include `profile` (cpu), `goroutine`, `threadcreate`, `heap`, `block`, and `mutex`.

func NewServer

func NewServer(storage storage.Storage) *Server

NewServer creates a new Server backed by the supplied Storage.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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