From b9a68ad2c65f2a81e66afeadcaee9d4f9bbae4c2 Mon Sep 17 00:00:00 2001 From: Mac L Date: Mon, 25 May 2026 05:21:26 +0400 Subject: [PATCH] Add support for jemalloc memory profiling (#9326) Add a new feature flag to `lighthouse` which adds jemalloc profiling support. We could manually add this during memory profiling but it is a nice QoL to have this built-in imo Co-Authored-By: Mac L --- lighthouse/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lighthouse/Cargo.toml b/lighthouse/Cargo.toml index 3595cf04e7..09fd6d4afe 100644 --- a/lighthouse/Cargo.toml +++ b/lighthouse/Cargo.toml @@ -37,6 +37,8 @@ beacon-node-redb = ["store/redb"] console-subscriber = ["console-subscriber/default"] # Force the use of the system memory allocator rather than jemalloc. sysmalloc = ["malloc_utils/sysmalloc"] +# Enable jemalloc heap profiling support. +jemalloc-profiling = ["malloc_utils/jemalloc-profiling"] [dependencies] account_manager = { "path" = "../account_manager" }