Getting the actual memory consumption
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Getting the actual memory consumption

  1. #1
    Join Date
    Jun 2006
    Posts
    143

    Smile Getting the actual memory consumption

    I dont know if this question has been asked in this forum before. I am taking the memory comsumption of a process using the GetProcessMemoryInfo() API. I have obtained the memory consumption like WorkingSetSize, QuoatPagePoolUsage etc. and these are correct as shown in Windows Task Manager. But how can I obtain the actual memeory consumption of the process in KB as shown in Task Manager under the Mem Usage column? I need to get that value. I searched the net and found some links but there was no mention about how one can get the actual memory consumption. Thanks in advance...

  2. #2
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,019

    Re: Getting the actual memory consumption

    Making some tests, the value displayed by task manager under "Mem Usage" column seems to be PROCESS_MEMORY_COUNTERS::WorkingSetSize.

    [ Moved thread ]
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

  3. #3
    Join Date
    Jun 2006
    Posts
    143

    Re: Getting the actual memory consumption

    Yes..thats it..Thank u..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center