I’m looking for a real time memory tracker library (or considering writing one) that is built on the CRT Debug Heap functions. This would primarily be for performance/memory usage analysis, although it should also detect leaks.
I’m looking to get similar data to what Memory Validator provides except integrated into a program (not an external tool).
If there is a library that already suits my needs that would be great. If not, could you point me towards some resources for writing one and possibly list some pros and cons of building it on top of the CRT debug heap functions as opposed to overloading new and delete and writing a memory tracker singleton (or suggest a different better route to take).
You can’t get the details MemoryValidator provides from just the CRT debug heap. It doesn’t supply a callstack or even file/line without #defining new (evil! and breaks placement new).