Skip to content

Commit f69c38c

Browse files
committed
Heaptrack
1 parent 6dea695 commit f69c38c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,8 @@ lto = "fat"
286286
codegen-units = 1
287287
incremental = false
288288

289+
[profile.release]
290+
debug-info = true
291+
289292
[patch.crates-io]
290293
quick-protobuf = { git = "https://github.com/sigp/quick-protobuf.git", rev = "681f413312404ab6e51f0b46f39b0075c6f4ebfd" }

lighthouse/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ beacon-node-redb = ["store/redb"]
3333
jemalloc = []
3434

3535
[target.'cfg(not(target_os = "windows"))'.dependencies]
36-
malloc_utils = { workspace = true, features = ["jemalloc"] }
36+
malloc_utils = { workspace = true, features = [] }
3737

3838
[target.'cfg(target_os = "windows")'.dependencies]
3939
malloc_utils = { workspace = true }

lighthouse/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ fn bls_hardware_acceleration() -> bool {
7272
}
7373

7474
fn allocator_name() -> String {
75-
#[cfg(target_os = "windows")]
75+
#[cfg(any(not(feature = "jemalloc"), target_os = "windows"))]
7676
{
7777
"system".to_string()
7878
}
79-
#[cfg(not(target_os = "windows"))]
79+
#[cfg(all(feature = "jemalloc", not(target_os = "windows")))]
8080
match malloc_utils::jemalloc::page_size() {
8181
Ok(page_size) => format!("jemalloc ({}K)", page_size / 1024),
8282
Err(e) => format!("jemalloc (error: {e:?})"),

0 commit comments

Comments
 (0)