Is there a possibility to determine rust program memory usage?


#1

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?


#2

I asked a similar question last year, and was pointed to heapsize.


#3

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