In the end of rust-book I read told about user allocators support and that it uses some performance allocators when and where possible. I am curious, maybe rust also gathers some information about memory usage? Or in order to do this I need to implement my own allocators?
Maybe it is also possible to call
malloc_print_stats if the the Rust programm uses jemalloc: https://github.com/jemalloc/jemalloc/wiki/Use-Case:-Basic-Allocator-Statistics