flat assembler
Message board for the users of flat assembler.

Index > Windows > Application memory question

Author
Thread Post new topic Reply to topic
IronFelix



Joined: 09 Dec 2004
Posts: 141
Location: Russia, Murmansk region
IronFelix 14 Feb 2006, 12:43
Hi all!
Please tell me how can i get the amount of physical memory used by application at some moment?
With GetProcessWorkingSetSize i can only get min and max values, but it is more interesting for me to now the current size of physical memory allocated.
Thanks and regards.

_________________
Flat Assembler is the best!
Post 14 Feb 2006, 12:43
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 14 Feb 2006, 14:47
well, some libraries (DLLs) are shared, do you want to count these? if yes, don't forget to count always-included user32, gdi32, etc... if no, what about application private DLLs?

You see it's not so simple even to tell what is "memory used by application". Also if you say physical, you mean you don't want to count memory pages that are swapped on the disk. And I believe that would be problem...
Post 14 Feb 2006, 14:47
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
r22



Joined: 27 Dec 2004
Posts: 805
r22 14 Feb 2006, 20:29
do you mean the "Mem Usage" that say the task manager shows you for each program?
Post 14 Feb 2006, 20:29
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
IronFelix



Joined: 09 Dec 2004
Posts: 141
Location: Russia, Murmansk region
IronFelix 15 Feb 2006, 08:06
Yes, i mean this memory. There are also some other interesting parameters in task manager, such as virtual memory, pools and son on.
Post 15 Feb 2006, 08:06
View user's profile Send private message Reply with quote
IronFelix



Joined: 09 Dec 2004
Posts: 141
Location: Russia, Murmansk region
IronFelix 15 Feb 2006, 08:15
I think i have found an answer - GetProcessMemoryInfo...
Post 15 Feb 2006, 08:15
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.