fix(op-reth): add jemalloc feature to optimism-cli for version (#11543)

This commit is contained in:
Dan Cline
2024-10-07 12:41:22 -04:00
committed by GitHub
parent 9a732f6b78
commit a6b564e054
4 changed files with 15 additions and 1 deletions

1
Cargo.lock generated
View File

@ -7996,6 +7996,7 @@ dependencies = [
"reth-node-builder",
"reth-node-core",
"reth-node-events",
"reth-node-metrics",
"reth-optimism-chainspec",
"reth-optimism-evm",
"reth-optimism-node",

View File

@ -31,7 +31,7 @@ workspace = true
[features]
default = ["jemalloc"]
jemalloc = ["reth-cli-util/jemalloc"]
jemalloc = ["reth-cli-util/jemalloc", "reth-optimism-cli/jemalloc"]
jemalloc-prof = ["reth-cli-util/jemalloc-prof"]
tracy-allocator = ["reth-cli-util/tracy-allocator"]

View File

@ -27,6 +27,9 @@ reth-node-core.workspace = true
reth-optimism-node.workspace = true
reth-primitives.workspace = true
# so jemalloc metrics can be included
reth-node-metrics.workspace = true
## optimism
reth-optimism-primitives.workspace = true
reth-optimism-chainspec.workspace = true
@ -82,3 +85,9 @@ asm-keccak = [
"reth-optimism-node/asm-keccak",
"reth-primitives/asm-keccak",
]
# Jemalloc feature for vergen to generate correct env vars
jemalloc = [
"reth-node-core/jemalloc",
"reth-node-metrics/jemalloc"
]

View File

@ -51,6 +51,10 @@ use reth_optimism_node::OptimismNode;
use reth_tracing::FileWorkerGuard;
use tracing::info;
// This allows us to manually enable node metrics features, required for proper jemalloc metric
// reporting
use reth_node_metrics as _;
/// The main op-reth cli interface.
///
/// This is the entrypoint to the executable.