pub fn lgalloc_stats_with_mapping() -> Result<LgAllocStats>
Expand description
Determine global statistics per size class, and include mapping information.
This function can be very slow as it needs to read the numa_maps
file. Depending
on the heap size of the program, this can take seconds to minutes, so call this
function with care.
Note that this function take a read lock on various structures. In addition to the locks
described on lgalloc_stats
, this function reads the /proc/self/numa_maps
file without
holding any locks, but the kernel might block other memory operations while reading this file.
ยงPanics
Panics if the internal state of lgalloc is corrupted.