DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How much memory is my app using?

  1. #1
    Join Date
    Apr 2004
    Posts
    1

    How much memory is my app using?

    I'm looking for a quick way to figure out how much memory my C++ application is using from within the application itself (Win2000, NT & XP). I've looked at the MSDN help pages, but didn't find any functions that directly seemed to do what i wanted. I'd be content with just heap memory stats, although the more accurate, the better.

    On Linux we're using mallinfo or sbrk which do the job pretty well.

    Anyone have any ideas? I've heard of using GetProcessMemoryInfo(...), how does that compare speed-wise?

    Thanks,
    Sev

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    Have you investigated performance monitor (perfmon.exe i think) its left over from NT 4 but its still accessable thru help and maybe a couple of other links.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center