Browse Source

Merge pull request #275 from nuss-justin/dev

Fix wrong method for profiling routes.
tags/v1.2.0-rc1
无闻 11 years ago
parent
commit
21088a40f5
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      routers/debug/debug.go

+ 4
- 4
routers/debug/debug.go View File

@@ -9,8 +9,8 @@ import (
) )
func RegisterRoutes(r martini.Router) { 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)
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)
} }

Loading…
Cancel
Save