Browse Source

weed filer.copy: add option to profile the execution

pull/922/head
Chris Lu 6 years ago
parent
commit
c731d9be6d
  1. 4
      weed/command/filer_copy.go

4
weed/command/filer_copy.go

@ -114,6 +114,10 @@ func runCopy(cmd *Command, args []string) bool {
go copy.masterClient.KeepConnectedToMaster() go copy.masterClient.KeepConnectedToMaster()
copy.masterClient.WaitUntilConnected() copy.masterClient.WaitUntilConnected()
if *cmdCopy.IsDebug {
util.SetupProfiling("filer.copy.cpu.pprof", "filer.copy.mem.pprof")
}
fileCopyTaskChan := make(chan FileCopyTask, *copy.concurrency) fileCopyTaskChan := make(chan FileCopyTask, *copy.concurrency)
ctx := context.Background() ctx := context.Background()

Loading…
Cancel
Save