PDA

View Full Version : A way to know the memory use ?



tonnot
23rd February 2011, 06:58
How can I know the memory resources of my system ?
Total, used, etc.
Thanks

e8johan
23rd February 2011, 07:22
There is no Qt API to determine that, so you need to implement platform specific calls for that.

tonnot
23rd February 2011, 08:24
And .... for windows systems ?
Thanks

stampede
23rd February 2011, 08:31
For both physical and virtual memory: GlobalMemoryStatusEx (http://msdn.microsoft.com/en-us/library/aa366589(v=vs.85).aspx)

tonnot
23rd February 2011, 09:30
Thanks Stampede.
And... Is it possible to know the memory use of my application (made with QT, of course).
Thanks again