Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ allocated
Method
allocated
nodedb-mem/src/budget.rs:160–162 ·
view source on GitHub ↗
Current allocated bytes.
(&self)
Source
from the content-addressed store, hash-verified
158
159
/// Current allocated bytes.
160
pub fn allocated(&self) -> usize {
161
self.allocated.load(Ordering::Relaxed)
162
}
163
164
/// Hard limit in bytes.
165
pub fn limit(&self) -> usize {
Callers
6
total_allocated
Method · 0.80
snapshot
Method · 0.80
concurrent_reserves_never_exceed_cap
Function · 0.80
available
Method · 0.80
utilization_percent
Method · 0.80
set_limit
Method · 0.80
Calls
1
load
Method · 0.45
Tested by
1
concurrent_reserves_never_exceed_cap
Function · 0.64