mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-19 02:56:18 +00:00
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:
@@ -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),
|
||||
]
|
||||
);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user