mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
weed filer.copy: add option to profile the execution
This commit is contained in:
parent
174bf1e8b2
commit
c731d9be6d
|
@ -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…
Reference in a new issue