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