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

Method mark_gc_deallocated

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

Source from the content-addressed store, hash-verified

246
247 #[inline]
248 pub(crate) fn mark_gc_deallocated(&self, bytes: usize) {
249 cell_update(&self.0.total_gcs, |c| c - 1);
250 cell_update(&self.0.total_gc_bytes, |b| b - bytes);
251 cell_update(&self.0.freed_gc_bytes, |b| b.saturating_add(bytes));
252 }
253
254 #[inline]
255 pub(crate) fn mark_gc_remembered(&self, bytes: usize) {

Callers 2

dropMethod · 0.80
do_collection_innerMethod · 0.80

Calls 1

cell_updateFunction · 0.85

Tested by

no test coverage detected