stats for rewrites (#24529)

This commit is contained in:
Jeff Washington (jwash) 2022-04-20 10:43:50 -05:00 committed by GitHub
parent 05438c3cd6
commit 813d06529d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -4772,7 +4772,12 @@ impl Bank {
datapoint_info!(
"collect_rent_eagerly",
("accounts", account_count, i64),
("partitions", count, i64)
("partitions", count, i64),
(
"skipped_rewrites",
self.rewrites_skipped_this_slot.read().unwrap().len(),
i64
),
);
inc_new_counter_info!("collect_rent_eagerly-ms", measure.as_ms() as usize);
}