Bug 913953 - Part n: Remove unused GetWorkingSetSize function; r=ehsan

This commit is contained in:
Ms2ger 2013-09-10 09:03:35 +02:00
Родитель 3d093a9b97
Коммит 533f1f6f83
2 изменённых файлов: 0 добавлений и 11 удалений

Просмотреть файл

@ -284,8 +284,6 @@ class ProcessMetrics {
size_t GetPagefileUsage() const;
// Returns the peak space allocated for the pagefile, in bytes.
size_t GetPeakPagefileUsage() const;
// Returns the current working set size, in bytes.
size_t GetWorkingSetSize() 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

Просмотреть файл

@ -485,15 +485,6 @@ size_t ProcessMetrics::GetPeakPagefileUsage() const {
return 0;
}
// Returns the current working set size, in bytes.
size_t ProcessMetrics::GetWorkingSetSize() const {
PROCESS_MEMORY_COUNTERS pmc;
if (GetProcessMemoryInfo(process_, &pmc, sizeof(pmc))) {
return pmc.WorkingSetSize;
}
return 0;
}
static uint64_t FileTimeToUTC(const FILETIME& ftime) {
LARGE_INTEGER li;
li.LowPart = ftime.dwLowDateTime;