Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Another way to trace allocations in rust is to inject some code in a global allocator. Then you can use any in-program code you like to print / track / trace allocations. For example, I wrote this code in a library Iām working on so I can track and print out how many total bytes have been allocated, and how many allocation calls have been made.
Minimizing Rust Binary Size might be worth a read, if only for its references. I know you're not necessary concerned with binary size, but some stuff overlaps. In particular I know panic handling doesn't come for free thanks to this piece.