Browse Source

collect proof when stopping

pull/357/head
Chris Lu 9 years ago
parent
commit
d3ae3a8e14
  1. 3
      weed/command/master.go

3
weed/command/master.go

@ -60,6 +60,9 @@ func runMaster(cmd *Command, args []string) bool {
}
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
OnInterrupt(func() {
pprof.StopCPUProfile()
})
}
if err := util.TestFolderWritable(*metaFolder); err != nil {
glog.Fatalf("Check Meta Folder (-mdir) Writable %s : %s", *metaFolder, err)

Loading…
Cancel
Save