add execute detail timings (#15638)

This commit is contained in:
Jeff Washington (jwash)
2021-03-03 17:07:45 -06:00
committed by GitHub
parent 9bbe015a05
commit be35c1c1b7
10 changed files with 169 additions and 18 deletions

View File

@ -214,15 +214,19 @@ pub fn process_entries(
transaction_status_sender: Option<TransactionStatusSender>,
replay_vote_sender: Option<&ReplayVoteSender>,
) -> Result<()> {
process_entries_with_callback(
let mut timings = ExecuteTimings::default();
let result = process_entries_with_callback(
bank,
entries,
randomize,
None,
transaction_status_sender,
replay_vote_sender,
&mut ExecuteTimings::default(),
)
&mut timings,
);
debug!("process_entries: {:?}", timings);
result
}
fn process_entries_with_callback(
@ -602,6 +606,8 @@ fn confirm_full_slot(
opts.allow_dead_slots,
)?;
debug!("confirm_full_slot: {:?}", timing.execute_timings);
if !bank.is_complete() {
Err(BlockstoreProcessorError::InvalidBlock(
BlockError::Incomplete,