How can I obtain information of the memory usage with Rust?


Just like infomation below:

~$ cat /proc/meminfo
MemTotal:        6051304 kB
MemFree:          452540 kB

Is there any std modules?


Do you want to know the memory usage of a single Rust program, or the total memory usage of the system?


The whole system.


You can get this info using the sys-info crate.


Many thanks,:evergreen_tree: