pub fn get_mem_stats() -> Result<MemStats>
Query system heap statistics.
Returns an error if the RTOS does not support heap statistics.