Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

weed filer.copy: add option to profile the execution

Chris Luc731d9be6d28
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index c5baff5e4d..18b641ae57 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()