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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix: close CPU profile file after stopping profiling (#9000)
easona04c9c7ddef2
diff --git a/weed/util/grace/pprof.go b/weed/util/grace/pprof.goindex ad1b1de393..ddd0b44755 100644--- a/weed/util/grace/pprof.go+++ b/weed/util/grace/pprof.go@@ -34,6 +34,7 @@ func SetupProfiling(cpuProfile, memProfile string) {pprof.StartCPUProfile(f)OnInterrupt(func() {pprof.StopCPUProfile()+ f.Close()// write block pprofblockF, err := os.Create(cpuProfile + ".block")