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
+5 -1
View File
@@ -125,6 +125,7 @@ urlencoding = { workspace = true }
uuid = { workspace = true }
zip = { workspace = true }
libc = { workspace = true }
pprof = { workspace = true }
# Observability and Metrics
metrics = { workspace = true }
@@ -140,16 +141,19 @@ libsystemd.workspace = true
[target.'cfg(not(all(target_os = "linux", target_env = "gnu", target_arch = "x86_64")))'.dependencies]
mimalloc = { workspace = true }
starshard = { workspace = true }
backtrace = { workspace = true }
rand = { workspace = true }
[target.'cfg(all(target_os = "linux", target_env = "gnu", target_arch = "x86_64"))'.dependencies]
tikv-jemallocator = { workspace = true }
tikv-jemalloc-ctl = { workspace = true }
jemalloc_pprof = { workspace = true }
pprof = { workspace = true }
[dev-dependencies]
uuid = { workspace = true, features = ["v4"] }
serial_test = { workspace = true }
tempfile = { workspace = true }
[build-dependencies]
http.workspace = true