BeefLang will report leaks as they occur, not when the program shuts down. There's a tracing "GC" in debug mode for detecting unreachable memory in realtime. It's also used for reliably detecting use-after-free since memory is held when there are references and released when the last reference goes away -- again, a debug-only feature.
Re:The Odin Programming Language
by gingerBill on Friday January 31, 2020 @06:57PM
(#22207260)
This is totally possible with custom allocators in Odin too. You'll be surprised by how much custom allocators can do, but so many people know little about them.
And coupled with the implicit `context` system, it can very easily profile third party Odin code's allocations too!