-
August 19th, 2010, 06:34 AM
#1
RAM memory consumption
I'm implementing an application that should decide whether to move computations
to external memory, depending on RAM memory consumption. Is there a C++ function that computes my maximal RAM memory capacity, and the amount of currently consumed portion (in MB, perhaps). Any other suggestions on how to obtain these values are welcome.
Thanks
-
August 19th, 2010, 08:06 AM
#2
Re: RAM memory consumption
This would be certainly be platform specific, so no. I'm sure gtk, win32, and cocoa all have functions for it, but they're all going to be different.
-
August 20th, 2010, 02:43 AM
#3
Re: RAM memory consumption
If you´re targetting Windows there are two API functions GlobalMemory/GlobalMemoryEx that return the system´s memory statistics.
- Guido
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|