Skip to main content
gamedev.net
🔒 Locked

Tracking program memory usage

Started by Stompy9999 Sep 14, 2005 at 4:57 PM 4 replies 1.2k views
Original Post
Stompy9999
Stompy9999
I've recently grown concerned about the amount of memory my game is using. My current game uses alot of dynamic memory to handle the game objects, and I want to make sure I'm allocating and deallocating everything correctly. I was wondering if there is any program or any way to track the amount of memory being used by my game during runtime? I'm not really that familiar with the concept of memory debugging, but I hope to find a way to track the memory usage of my program. Thanks in advance.
IndyJones
IndyJones
You could take a look at Paul Nettle's MMGR
davedx
davedx
Detecting and Isolating Memory Leaks (MSDN)

MSVC has pretty decent support for tracking memory leaks at least, though not so much actual usage... you'd want some kind of profiler for that, though you can always just use the task manager to see total usage.
dave
dave
I believe the task manager actually shows the allocation that windows gives the process, not the usage.

ace
Evil Steve
Evil Steve
Quote:
Original post by ace_lovegrove
I believe the task manager actually shows the allocation that windows gives the process, not the usage.
Yeah, if you just want to check that you're not leaking memory, you can use the task manager. Your apps memory usage will steadily climb if you're leaking memory, and then you can use some other tool to track the leaks down.

I'd also like to recommend MMGR, it's awesome.

Stompy9999
Stompy9999
Ok, so apparently I'm leaking memory. I'll try the things you guys suggested for finding the leak.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.