add cpu and mem pprof

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

No files matched your search

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