File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -289,5 +289,9 @@ panic = "abort"
289289codegen-units = 1
290290overflow-checks = true
291291
292+ [profile .release-debug ]
293+ inherits = " release"
294+ debug = true
295+
292296[patch .crates-io ]
293297quick-protobuf = { git = " https://github.com/sigp/quick-protobuf.git" , rev = " 681f413312404ab6e51f0b46f39b0075c6f4ebfd" }
Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ beacon-node-leveldb = ["store/leveldb"]
3535beacon-node-redb = [" store/redb" ]
3636# Supports console subscriber for debugging
3737console-subscriber = [" console-subscriber/default" ]
38+ # Turns off jemalloc so that heaptrack may be used to analyse memory usage.
39+ heaptrack = []
3840
39- # Deprecated. This is now enabled by default on non windows targets.
41+ # Deprecated. This is now enabled by default on non windows targets (unless heaptrack is enabled) .
4042jemalloc = []
4143
4244[dependencies ]
@@ -71,12 +73,12 @@ unused_port = { workspace = true }
7173validator_client = { workspace = true }
7274validator_manager = { path = " ../validator_manager" }
7375
74- [target .'cfg(not(target_os = "windows"))' .dependencies ]
75- malloc_utils = { workspace = true , features = [" jemalloc" ] }
76-
77- [target .'cfg(target_os = "windows")' .dependencies ]
76+ [target .'cfg(any(target_os = "windows", features = "heaptrack"))' .dependencies ]
7877malloc_utils = { workspace = true }
7978
79+ [target .'cfg(not(any(target_os = "windows", features = "heaptrack")))' .dependencies ]
80+ malloc_utils = { workspace = true , features = [" jemalloc" ] }
81+
8082[dev-dependencies ]
8183beacon_node_fallback = { workspace = true }
8284beacon_processor = { workspace = true }
Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ fn bls_hardware_acceleration() -> bool {
7474}
7575
7676fn allocator_name ( ) -> String {
77- #[ cfg( target_os = "windows" ) ]
77+ #[ cfg( any ( feature = "heaptrack" , target_os = "windows" ) ) ]
7878 {
7979 "system" . to_string ( )
8080 }
81- #[ cfg( not( target_os = "windows" ) ) ]
81+ #[ cfg( not( any ( feature = "heaptrack" , target_os = "windows" ) ) ) ]
8282 match malloc_utils:: jemalloc:: page_size ( ) {
8383 Ok ( page_size) => format ! ( "jemalloc ({}K)" , page_size / 1024 ) ,
8484 Err ( e) => format ! ( "jemalloc (error: {e:?})" ) ,
You can’t perform that action at this time.
0 commit comments