diff options
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/command/filer_copy.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index c5baff5e4..18b641ae5 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -114,6 +114,10 @@ func runCopy(cmd *Command, args []string) bool { go copy.masterClient.KeepConnectedToMaster() copy.masterClient.WaitUntilConnected() + if *cmdCopy.IsDebug { + util.SetupProfiling("filer.copy.cpu.pprof", "filer.copy.mem.pprof") + } + fileCopyTaskChan := make(chan FileCopyTask, *copy.concurrency) ctx := context.Background() |
