etcdserver/api/v2http, Documentation: fix debug pprof index miss / in end

This commit is contained in:
smallfish
2016-07-07 17:35:07 +08:00
parent c4a280e511
commit e6d15b966c
5 changed files with 5 additions and 5 deletions

View File

@ -113,7 +113,7 @@ func NewClientHandler(server *etcdserver.EtcdServer, timeout time.Duration) http
if server.IsPprofEnabled() {
plog.Infof("pprof is enabled under %s", pprofPrefix)
mux.HandleFunc(pprofPrefix, pprof.Index)
mux.HandleFunc(pprofPrefix+"/", pprof.Index)
mux.HandleFunc(pprofPrefix+"/profile", pprof.Profile)
mux.HandleFunc(pprofPrefix+"/symbol", pprof.Symbol)
mux.HandleFunc(pprofPrefix+"/cmdline", pprof.Cmdline)