CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  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
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    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
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  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
  •  





Click Here to Expand Forum to Full Width

Featured