debug

package
v0.0.0-...-425cee7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package debug provides a handler which adds additional debug endpoints, including profiling and expvars.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(handler http.Handler) http.Handler

Wrap returns a handler which adds the following URLs as special cases:

/debug/pprof/        -- an HTML index of pprof endpoints
/debug/pprof/cmdline -- the running process's command line
/debug/pprof/profile -- pprof profiling endpoint
/debug/pprof/symbol  -- pprof debugging symbols
/debug/vars          -- JSON-formatted expvars

Types

This section is empty.

Notes

Bugs

  • Figure out how to test /debug/pprof/profile

Jump to

Keyboard shortcuts

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