MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / heap_usage

Method heap_usage

crates/data-structures/src/object_pool.rs:74–77  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

72#[cfg(feature = "memory-usage")]
73impl<T: PooledObject> spacetimedb_memory_usage::MemoryUsage for Pool<T> {
74 fn heap_usage(&self) -> usize {
75 let Self { inner } = self;
76 inner.heap_usage()
77 }
78}
79
80impl<T: PooledObject> Pool<T> {

Callers 2

putMethod · 0.45
takeMethod · 0.45

Calls 2

capacityMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected