Skip to content

Commit

Permalink
chore: Add name string for bank_serialize measure! (#31926)
Browse files Browse the repository at this point in the history
The measurement is later logged, so include a name to more clearly
identify what the measurement was.
  • Loading branch information
steviez authored Jun 2, 2023
1 parent 29d7a57 commit 858ea5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/src/snapshot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 858ea5a

Please sign in to comment.