Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

matt_j

Win32- How can I retrieve my app's memory consumption?

This topic is 5859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Yes, there is. GetProcessMemoryInfo is the call you are looking for. An example of how to use it is here.

You will notice both of these links lead to msdn.microsoft.com. Learn it, use it. Then use it some more . Seriously though, I found that information by searching on "process memory". First hit was that information. You will save yourself and others time by checking it first.

Notice however that these calls are unsupported on win9x systems. A lot of the advanced memory management calls are unavailable on win9x. An alternate method of detecting how much memory you are using is by overriding the new and delete operators to track it manually if you are using c++.

To be honest I''m not sure how else to find out a processes memory usage under win9x, although I believe there is a way. Good luck.

Share this post


Link to post
Share on other sites
quote:
An alternate method of detecting how much memory you are using is by overriding the new and delete operators to track it manually if you are using c++.


There is a good memory manager on flipcode that might help Windows 9x users.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!