зеркало из https://github.com/mozilla/gecko-dev.git
Bug 913953 - Part n: Remove unused GetWorkingSetSize function; r=ehsan
This commit is contained in:
Родитель
3d093a9b97
Коммит
533f1f6f83
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче