MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / mark_external_deallocation

Method mark_external_deallocation

aiscript-arena/src/metrics.rs:198–201  ·  view source on GitHub ↗
(&self, bytes: usize)

Source from the content-addressed store, hash-verified

196 /// marked for allocation.
197 #[inline]
198 pub fn mark_external_deallocation(&self, bytes: usize) {
199 cell_update(&self.0.total_external_bytes, |b| b.saturating_sub(bytes));
200 cell_update(&self.0.freed_external_bytes, |b| b.saturating_add(bytes));
201 }
202
203 pub(crate) fn start_cycle(&self) {
204 let pacing = self.0.pacing.get();

Callers 4

dropMethod · 0.80
deallocateMethod · 0.80
shrinkMethod · 0.80
dropMethod · 0.80

Calls 1

cell_updateFunction · 0.85

Tested by

no test coverage detected