mirror of https://github.com/ledisdb/ledisdb.git
add net http pprof
This commit is contained in:
parent
c058a17b2c
commit
47413340e1
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue