From 71a78edfec871009a8f1cd45865bb3deabb62997 Mon Sep 17 00:00:00 2001 From: HaoranYi Date: Thu, 29 Feb 2024 17:09:07 +0000 Subject: [PATCH] add timing --- runtime/src/bank.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index e1352a02f9c432..6b878bca38f722 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -6346,6 +6346,7 @@ impl Bank { // }) // } + let mut lt_hash_timer = Measure::start("lt_hash_compute"); let mut accumulated = self .parent() .map(|bank| { @@ -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());