mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 913953 - Part o: Remove unused GetPeakPagefileUsage function; r=ehsan
This commit is contained in:
parent
533f1f6f83
commit
aeb5c961a6
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user