mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 07:07:24 +08:00
weed filer.copy: add option to profile the execution
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user