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

Method mark_gc_allocated

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

Source from the content-addressed store, hash-verified

233
234 #[inline]
235 pub(crate) fn mark_gc_allocated(&self, bytes: usize) {
236 cell_update(&self.0.total_gcs, |c| c + 1);
237 cell_update(&self.0.total_gc_bytes, |b| b + bytes);
238 cell_update(&self.0.allocated_gc_bytes, |b| b.saturating_add(bytes));
239 }
240
241 #[inline]
242 pub(crate) fn mark_gc_traced(&self, bytes: usize) {

Callers 1

allocateMethod · 0.80

Calls 1

cell_updateFunction · 0.85

Tested by

no test coverage detected