Report total_transactions in replay-slot-stats (#28382)

We have transactions counted in replay-slot-end-to-end-stats, but that
metric is broken down to report things per thread.

So, report total_transactions for the entire slot (all threads) in
replay-slot-stats.
This commit is contained in:
steviez 2022-10-15 08:07:03 -05:00 committed by GitHub
parent 235da8c538
commit 39fa297bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ impl ReplaySlotStats {
pub fn report_stats(
&self,
slot: Slot,
num_txs: usize,
num_entries: usize,
num_shreds: u64,
bank_complete_time_us: u64,
@ -71,6 +72,7 @@ impl ReplaySlotStats {
i64
),
("bank_complete_time_us", bank_complete_time_us, i64),
("total_transactions", num_txs as i64, i64),
("total_entries", num_entries as i64, i64),
("total_shreds", num_shreds as i64, i64),
// Everything inside the `eager!` block will be eagerly expanded before

View File

@ -2564,6 +2564,7 @@ impl ReplayStage {
r_replay_stats.report_stats(
bank.slot(),
r_replay_progress.num_txs,
r_replay_progress.num_entries,
r_replay_progress.num_shreds,
bank_complete_time.as_us(),