mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-02 04:55:35 +08:00
* fhandler_process.cc (format_process_stat): use PagefileUsage
instead of VirtualSize. (get_mem_values): Ditto.
This commit is contained in:
parent
a82fd8b94e
commit
c295ce6f6e
@ -1,3 +1,9 @@
|
|||||||
|
2003-05-24 Joe Buehler <jhpb@draco.hekimian.com>
|
||||||
|
|
||||||
|
* fhandler_process.cc (format_process_stat): use PagefileUsage
|
||||||
|
instead of VirtualSize.
|
||||||
|
(get_mem_values): Ditto.
|
||||||
|
|
||||||
2003-05-21 Corinna Vinschen <corinna@vinschen.de>
|
2003-05-21 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* shared_info.h: Match shared_name declaration with below change.
|
* shared_info.h: Match shared_name declaration with below change.
|
||||||
|
@ -475,7 +475,7 @@ format_process_stat (_pinfo *p, char *destbuf, size_t maxsize)
|
|||||||
start_time = (spt.KernelTime.QuadPart + spt.UserTime.QuadPart) * HZ / 10000000ULL;
|
start_time = (spt.KernelTime.QuadPart + spt.UserTime.QuadPart) * HZ / 10000000ULL;
|
||||||
priority = pbi.BasePriority;
|
priority = pbi.BasePriority;
|
||||||
unsigned page_size = getpagesize ();
|
unsigned page_size = getpagesize ();
|
||||||
vmsize = vmc.VirtualSize;
|
vmsize = vmc.PagefileUsage;
|
||||||
vmrss = vmc.WorkingSetSize / page_size;
|
vmrss = vmc.WorkingSetSize / page_size;
|
||||||
vmmaxrss = ql.MaximumWorkingSetSize / page_size;
|
vmmaxrss = ql.MaximumWorkingSetSize / page_size;
|
||||||
}
|
}
|
||||||
@ -740,7 +740,7 @@ get_mem_values (DWORD dwProcessId, unsigned long *vmsize, unsigned long *vmrss,
|
|||||||
res = false;
|
res = false;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
*vmsize = vmc.VirtualSize / page_size;
|
*vmsize = vmc.PagefileUsage / page_size;
|
||||||
out:
|
out:
|
||||||
delete [] p;
|
delete [] p;
|
||||||
CloseHandle (hProcess);
|
CloseHandle (hProcess);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user