Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : How can I determine the Peak Commit Charge?
| Subject: | How can I determine the Peak Commit Charge? |
| Posted by: | "Richard Speiss" (rspei..@mtxinc.com) |
| Date: | Wed, 23 May 2007 11:23:36 |
The Task manager in Windows 2000, XP, etc. has the Commit Charge section
showing the Total RAM usage and the Peak Usage.
I can determine the maximum physical RAM and the available physical RAM
through the WinAPI call GlobalMemoryStatus (Which gives me Physical, Page,
and Virtual) but I can't seem to find the Peak RAM usage. I thought it
would be related to the Virtual but that goes up and down whereas the Peak
stays until I reboot.
I just want to display some of this information in an About box so that the
user can decide whether they need to reboot their computer/upgrade their
RAM, etc. (Since once your Peak usage is larger than your Physical RAM,
Windows will slow down to a crawl until the next reboot)
Any thoughts?
Thanks
Richard Speiss