add net http pprof

This commit is contained in:
siddontang 2014-08-05 08:43:04 +08:00
parent c058a17b2c
commit 47413340e1
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,9 @@ package main
import (
"flag"
"github.com/siddontang/ledisdb/server"
"log"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
"runtime"
@ -52,5 +55,9 @@ func main() {
app.Close()
}()
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
app.Run()
}