Hello! I’m trying to measure the memory consumption of one of my Rust programs to figure out what consumes the most memory (and maybe find out why).
For software written in other programming languages, my understanding is that I could usually build a “profiling executable” that produces memory profiles when it runs so that I can later examine these profiles with something like
qcachegrind. I did not find a way to do this for Rust programs yet, though.
For time profiling, the native OSX app
Instruments (part of XCode) proved quite helpful, but I was not able to get any useful information on detailed memory consumption for my program with
Could you please give me some hints on how to do memory profiling of Rust applications in general, and on an OSX (10.13 and later, no
valgrind :/) host in particular?