add data point for ledger processing (#17210)

This commit is contained in:
Jeff Washington (jwash) 2021-05-14 15:58:31 -05:00 committed by GitHub
parent 3745e0babc
commit 0c07f1ffe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -522,6 +522,14 @@ fn do_process_blockstore_from_root(
}
let bank_forks = BankForks::new_from_banks(&initial_forks, root);
datapoint_info!(
"process_blockstore_from_root",
("total_time_us", now.elapsed().as_micros(), i64),
("frozen_banks", bank_forks.frozen_banks().len(), i64),
("slot", bank_forks.root(), i64),
("forks", initial_forks.len(), i64)
);
info!("ledger processing timing: {:?}", timing);
info!(
"ledger processed in {}. root slot is {}, {} fork{} at {}, with {} frozen bank{}",