MCPcopy Create free account
hub / github.com/erans/pgsqlite / stats

Method stats

src/alloc_tracker.rs:53–59  ·  view source on GitHub ↗

Get the current allocation statistics

()

Source from the content-addressed store, hash-verified

51
52 /// Get the current allocation statistics
53 pub fn stats() -> AllocationStats {
54 AllocationStats {
55 allocations: ALLOCATIONS.load(Ordering::Relaxed),
56 deallocations: DEALLOCATIONS.load(Ordering::Relaxed),
57 bytes_allocated: BYTES_ALLOCATED.load(Ordering::Relaxed),
58 }
59 }
60}
61
62#[derive(Debug, Clone)]

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected