Bug 913953 - Part o: Remove unused GetPeakPagefileUsage function; r=ehsan

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

View File

@ -282,8 +282,6 @@ class 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 peak space allocated for the pagefile, in bytes.
size_t GetPeakPagefileUsage() 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

View File

@ -476,15 +476,6 @@ size_t ProcessMetrics::GetPagefileUsage() const {
return 0;
}
// Returns the peak space allocated for the pagefile, in bytes.
size_t ProcessMetrics::GetPeakPagefileUsage() const {
PROCESS_MEMORY_COUNTERS pmc;
if (GetProcessMemoryInfo(process_, &pmc, sizeof(pmc))) {
return pmc.PeakPagefileUsage;
}
return 0;
}
static uint64_t FileTimeToUTC(const FILETIME& ftime) {
LARGE_INTEGER li;
li.LowPart = ftime.dwLowDateTime;