I have looked through GDB documentation, but haven't found anything that works or shows what I need: the maximum amount of memory that is used by my application.
I'm using MinGW-w64 (GCC for Windows) if that's relevant. I'd like something programmatically, not "look in your task manager". Also: my application executes in one go, it doesn't stop or halt anywhere, and I'd like to keep it that way.
Thanks!