add cpu and mem pprof

This commit is contained in:
Chris Lu
2017-06-22 01:33:58 -07:00
parent 2c7dad589d
commit 1fbb8723dc
7 changed files with 46 additions and 17 deletions

View File

@@ -290,7 +290,7 @@ func runServer(cmd *Command, args []string) bool {
}()
}
OnInterrupt(func() {
util.OnInterrupt(func() {
volumeServer.Shutdown()
pprof.StopCPUProfile()
})