Commit 23c65280 by feidy

upodate pprof func Lanuch to LaunchPprof

parent 9f993d0d
......@@ -7,7 +7,7 @@ import (
)
// init disables default handlers registered by importing net/http/pprof.
func Init() {
func InitPprof() {
http.DefaultServeMux = http.NewServeMux()
}
......@@ -41,7 +41,8 @@ func ListenAndServe(addr string) error {
}
// Launch a standard pprof server at addr.
func Launch(addr string) {
func LaunchPprof(addr string) {
InitPprof()
go func() {
log.Fatal(ListenAndServe(addr))
}()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment