Skip to content

Commit

Permalink
verbose timer metrics to see what idx takes time
Browse files Browse the repository at this point in the history
  • Loading branch information
bchocho committed Sep 30, 2024
1 parent 3dd5be3 commit b3d33c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion aptos-move/block-executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,16 @@ where
let _timer = TASK_EXECUTE_SECONDS.start_timer();
let txn_get_timer = TXN_GET_SECONDS.start_timer();
let txn = &signature_verified_block.get_txn(idx_to_execute);
txn_get_timer.observe_duration();
let elapsed = txn_get_timer.stop_and_record();
if idx_to_execute < 10
|| (idx_to_execute < 1000 && idx_to_execute % 10 == 0)
|| idx_to_execute % 1000 == 0
{
info!(
"[Execution] At txn {}, get_txn took: {:.2e} s",
idx_to_execute, elapsed
)
}

// VM execution.
let sync_view = LatestView::new(base_view, ViewState::Sync(parallel_state), idx_to_execute);
Expand Down

0 comments on commit b3d33c6

Please sign in to comment.