blob: c332dbea7db78e4b85e277f3857526e7f27db5ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// +build pprof
package debug
import (
"net/http/pprof"
"github.com/go-martini/martini"
)
func RegisterRoutes(r martini.Router) {
r.Get("/debug/pprof/cmdline", pprof.Cmdline)
r.Get("/debug/pprof/profile", pprof.Profile)
r.Get("/debug/pprof/symbol", pprof.Symbol)
r.Get("/debug/pprof/**", pprof.Index)
}
|