Bug 913953 - Part p: Remove unused GetPagefileUsage function; r=ehsan

This commit is contained in:
Ms2ger 2013-09-10 09:03:35 +02:00
parent aeb5c961a6
commit 84148f8da2
2 changed files with 0 additions and 12 deletions

View File

@ -279,10 +279,6 @@ class ProcessMetrics {
~ProcessMetrics();
// Returns the current space allocated for the pagefile, in bytes (these pages
// may or may not be in memory).
size_t GetPagefileUsage() const;
// Returns the CPU usage in percent since the last time this method was
// called. The first time this method is called it returns 0 and will return
// the actual CPU info on subsequent calls.

View File

@ -468,14 +468,6 @@ ProcessMetrics* ProcessMetrics::CreateProcessMetrics(ProcessHandle process) {
ProcessMetrics::~ProcessMetrics() { }
size_t ProcessMetrics::GetPagefileUsage() const {
PROCESS_MEMORY_COUNTERS pmc;
if (GetProcessMemoryInfo(process_, &pmc, sizeof(pmc))) {
return pmc.PagefileUsage;
}
return 0;
}
static uint64_t FileTimeToUTC(const FILETIME& ftime) {
LARGE_INTEGER li;
li.LowPart = ftime.dwLowDateTime;