Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips for Rust Optimization and Profiling
-
std::mem::size_of returns the stack size of a type.
-
memuse contains traits for measuring the dynamic memory usage of Rust types.