Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Jan 20, 2025
1 parent 3bb0e00 commit 4377a47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ where

let prewarming_thread_pool = rayon::ThreadPoolBuilder::new()
.num_threads(num_threads)
.thread_name(|i| format!("prewarm-worker-{}", i))
.thread_name(|i| format!("prewarm-{}", i))
.build()
.expect("Failed to create prewarming worker thread pool");

Expand Down Expand Up @@ -2278,6 +2278,8 @@ where
cache_metrics.clone(),
);

info!(target: "engine::tree", "Spawning prewarm threads");

// TODO: isolate prewarm logic into method, making moves explicit
for (tx, sender) in block.body().transactions().iter().zip(block.senders()) {
let Some(state_provider) = self.state_provider(block.parent_hash())? else {
Expand Down Expand Up @@ -2314,6 +2316,7 @@ where
});
}

info!(target: "engine::tree", "Done spawning prewarm threads");
trace!(target: "engine::tree", block=?block.num_hash(), "Executing block");
let executor = self.executor_provider.executor(StateProviderDatabase::new(&state_provider));

Expand Down

0 comments on commit 4377a47

Please sign in to comment.