Getting heap and stable size

You can also get the size of the heap memory specifically using memory_size from the Rust standard library. Note that the return value is the size in Wasm pages.

2 Likes