feat(profiling): support cross-platform memory profiling with mimalloc and pprof (#1674)

This commit is contained in:
houseme
2026-01-30 22:23:49 +08:00
committed by GitHub
parent 1aba8c10b9
commit 38b779b924
7 changed files with 693 additions and 47 deletions
+3 -1
View File
@@ -178,7 +178,7 @@ export RUSTFS_ENABLE_HEAL=false
export RUSTFS_OBJECT_CACHE_ENABLE=true
# Profiling configuration
export RUSTFS_ENABLE_PROFILING=false
export RUSTFS_ENABLE_PROFILING=true
# Heal configuration queue size
export RUSTFS_HEAL_QUEUE_SIZE=10000
@@ -202,6 +202,8 @@ if [ -n "$1" ]; then
export RUSTFS_VOLUMES="$1"
fi
export RUSTFS_PROF_MEM_PERIODIC=true
# Enable jemalloc for memory profiling
# MALLOC_CONF parameters:
# prof:true - Enable heap profiling