Skip to content

Commit

Permalink
add timing
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Feb 29, 2024
1 parent 1c81d58 commit 71a78ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6346,6 +6346,7 @@ impl Bank {
// })
// }

let mut lt_hash_timer = Measure::start("lt_hash_compute");
let mut accumulated = self
.parent()
.map(|bank| {
Expand All @@ -6364,6 +6365,8 @@ impl Bank {
);

*self.accumulated_accounts_hash.write().unwrap() = Some(accumulated);
lt_hash_timer.stop();
info!("lt_hash {} {}us", slot, lt_hash_timer.as_ns());

let mut signature_count_buf = [0u8; 8];
LittleEndian::write_u64(&mut signature_count_buf[..], self.signature_count());
Expand Down

0 comments on commit 71a78ed

Please sign in to comment.