Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 140 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cmd/ethrex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ ethrex-metrics = { path = "../../crates/blockchain/metrics" }
url.workspace = true
ethrex-prover = { workspace = true, features = ["l2"] }

hotpath = { version = "0.4", optional = true }

[target.'cfg(linux)'.dependencies]
tikv-jemallocator = { version = "0.6.0", optional = true, features = ["stats", "unprefixed_malloc_on_supported_platforms", "background_threads"] }

Expand Down Expand Up @@ -85,6 +87,10 @@ sync-test = ["ethrex-p2p/sync-test"]
sp1 = ["ethrex-prover/sp1"]
gpu = ["ethrex-prover/gpu"]
risc0 = ["ethrex-prover/risc0"]
hotpath = ["dep:hotpath", "hotpath/hotpath", "ethrex-blockchain/hotpath", "ethrex-rlp/hotpath", "ethrex-p2p/hotpath"]
hotpath-alloc-bytes-total = ["hotpath/hotpath-alloc-bytes-total", "ethrex-blockchain/hotpath-alloc-bytes-total"]
hotpath-alloc-count-total= ["hotpath/hotpath-alloc-count-total", "ethrex-blockchain/hotpath-alloc-count-total"]
hotpath-off = ["hotpath/hotpath-off", "ethrex-blockchain/hotpath-off"]

[dev-dependencies]
criterion = { version = "0.5.1", features = [
Expand Down
1 change: 1 addition & 0 deletions cmd/ethrex/ethrex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ async fn server_shutdown(
}

#[tokio::main]
#[cfg_attr(feature = "hotpath", hotpath::main(percentiles = [99]))]
async fn main() -> eyre::Result<()> {
let CLI { opts, command } = CLI::parse();

Expand Down
7 changes: 7 additions & 0 deletions crates/blockchain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ tokio-util.workspace = true

ethrex-metrics = { path = "./metrics", default-features = false }

hotpath = { version = "0.4", optional = true }


[dev-dependencies]
serde_json.workspace = true
hex = "0.4.3"
Expand All @@ -35,6 +38,10 @@ path = "./blockchain.rs"
default = []
c-kzg = ["ethrex-common/c-kzg", "ethrex-vm/c-kzg"]
metrics = ["ethrex-metrics/transactions"]
hotpath = ["dep:hotpath", "hotpath/hotpath"]
hotpath-alloc-bytes-total = ["hotpath/hotpath-alloc-bytes-total"]
hotpath-alloc-count-total= ["hotpath/hotpath-alloc-count-total"]
hotpath-off = ["hotpath/hotpath-off"]

[lints.clippy]
unwrap_used = "deny"
Loading
Loading