feat: replace jemalloc with mimalloc (#4174)

* feat: replace jemalloc with mimalloc

* docs: record allocator rounds5 retest

* fix(replication): satisfy clippy unwrap lints

* docs: keep allocator migration plan local only

* feat(profiling): rely on pyroscope cpu profiling

* refactor(profiling): centralize unsupported pprof responses

* chore(deps): update s3s revision
This commit is contained in:
houseme
2026-07-02 19:03:38 +08:00
committed by GitHub
parent 54496f2796
commit 70e1d79dfd
17 changed files with 217 additions and 1529 deletions
+4 -4
View File
@@ -123,8 +123,8 @@ pub fn builtin_ops_profiler_contract() -> OpsProfilerContract {
OpsProfilerContract {
mode: OpsProfilerContractMode::CapabilityDescription,
backends: vec![
builtin_ops_profiler_backend("cpu_pprof", OpsProfilerBackendStatus::Enabled, true),
builtin_ops_profiler_backend("memory_pprof", OpsProfilerBackendStatus::Disabled, true),
builtin_ops_profiler_backend("cpu_pprof", OpsProfilerBackendStatus::Unsupported, false),
builtin_ops_profiler_backend("memory_pprof", OpsProfilerBackendStatus::Unsupported, false),
builtin_ops_profiler_backend("ebpf", OpsProfilerBackendStatus::Unsupported, false),
],
}
@@ -391,8 +391,8 @@ mod tests {
assert_eq!(
backends,
vec![
("cpu_pprof", OpsProfilerBackendStatus::Enabled, true),
("memory_pprof", OpsProfilerBackendStatus::Disabled, true),
("cpu_pprof", OpsProfilerBackendStatus::Unsupported, false),
("memory_pprof", OpsProfilerBackendStatus::Unsupported, false),
("ebpf", OpsProfilerBackendStatus::Unsupported, false),
]
);
+2 -2
View File
@@ -172,13 +172,13 @@ mod tests {
assert_eq!(registry.registered_backend_count(), contract.backends.len());
assert_eq!(
registry.registration_for("cpu_pprof").map(|registration| registration.status),
Some(OpsProfilerBackendStatus::Enabled)
Some(OpsProfilerBackendStatus::Unsupported)
);
assert_eq!(
registry
.registration_for("memory_pprof")
.map(|registration| registration.supports_profile_export),
Some(true)
Some(false)
);
assert_eq!(
registry.authorize_read(OpsProfilerReadRequest {