01-18-2006, 04:24 PM
is there a way to get "mem usage" from a process?
thanks.
thanks.
Process information
|
01-18-2006, 04:24 PM
is there a way to get "mem usage" from a process?
thanks.
01-18-2006, 05:12 PM
for Win2000/XP an later
type PROCESS_MEMORY_COUNTERS cb PageFaultCount PeakWorkingSetSize WorkingSetSize QuotaPeakPagedPoolUsage QuotaPagedPoolUsage QuotaPeakNonPagedPoolUsage QuotaNonPagedPoolUsage PagefileUsage PeakPagefileUsage
01-18-2006, 06:11 PM
NICE!!
i made a quick function out of it for quick use. make this code a function and call it "process_info" Function process_info ;/ Very nice work Gintaras!
10-25-2011, 08:03 PM
I am running this on a Win7 machine now and I don't think that it works with it.
I get vastly different numbers compared to what is showing in the Win Task Manager. Can you confirm?
11-01-2011, 06:43 PM
This gets working set size. It is the same as in Task Manager, 'Working Set (Memory)' column. Tested on Windows 7 32-bit.
I replaced code of your function because it did not close process handle. Macro Macro1569
11-01-2011, 06:54 PM
DOH! yep, my task manager is showing Private Working Set.
thanks. and thanks for the fix.
01-02-2014, 01:11 PM
Dear Gintaras,
Let me first wish a Happy and Prosperous New Year 2014. Could you please advise me whether there exists a way similar to GetProcessMemoryInfo to get the number of GDI Objects of a running task. Many thanks, Best regards, Simos
01-02-2014, 01:40 PM
Macro Macro2190
int pid Macro Macro2191
01-02-2014, 02:06 PM
Thanks again, Perfect ! Kind regards.
|
« Next Oldest | Next Newest »
|