From 858ea5a1430a0cd0fdc1569c760c5340399387b4 Mon Sep 17 00:00:00 2001 From: steviez Date: Fri, 2 Jun 2023 06:54:04 -0500 Subject: [PATCH] chore: Add name string for bank_serialize measure! (#31926) The measurement is later logged, so include a name to more clearly identify what the measurement was. --- runtime/src/snapshot_utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index ffd7fb534dfda3..bf96158334a6c5 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -1303,10 +1303,10 @@ pub fn add_bank_snapshot( )?; Ok(()) }; - let (bank_snapshot_consumed_size, bank_serialize) = measure!(serialize_snapshot_data_file( - &bank_snapshot_path, - bank_snapshot_serializer - )?); + let (bank_snapshot_consumed_size, bank_serialize) = measure!( + serialize_snapshot_data_file(&bank_snapshot_path, bank_snapshot_serializer)?, + "bank serialize" + ); add_snapshot_time.stop(); let status_cache_path = bank_snapshot_dir.join(SNAPSHOT_STATUS_CACHE_FILENAME);