Skip to content

Commit

Permalink
update to net
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Mar 9, 2022
1 parent 74c1b97 commit 4c8b208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider/core/src/datagen/heap_measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct HeapStats {
// Total bytes allocated during deserialization
pub total_bytes_allocated: u64,
// Total bytes allocated during deserialization that have not yet been freed
pub final_bytes_needed: usize,
pub net_bytes_allocated: usize,
}

/// The [`DataMarker`] marker type for [`HeapStats`].
Expand Down Expand Up @@ -46,7 +46,7 @@ impl DataPayload<BufferMarker> {

HeapStats {
total_bytes_allocated: stats_after.total_bytes - stats_before.total_bytes,
final_bytes_needed: stats_after.curr_bytes - stats_before.curr_bytes,
net_bytes_allocated: stats_after.curr_bytes - stats_before.curr_bytes,
}
}
}

0 comments on commit 4c8b208

Please sign in to comment.