blob: f61e7d2eeb809b459b2582b4a2521ec0570387be (
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.Any("/debug/pprof/cmdline", pprof.Cmdline)
r.Any("/debug/pprof/profile", pprof.Profile)
r.Any("/debug/pprof/symbol", pprof.Symbol)
r.Any("/debug/pprof/**", pprof.Index)
}
|