pub fn lgalloc_stats() -> LgAllocStats
Expand description
Determine global statistics per size class.
This function is supposed to be relatively fast. It causes some syscalls, but they should be cheap (stat on a file descriptor).
Note that this function take a read lock on various structures. It calls fstat
while
holding a read lock on portions of the global state, which can block refills until the
function returns.
ยงPanics
Panics if the internal state of lgalloc is corrupted.