forked from mirrors/gecko-dev
Bug 1779138 - Don't query resident unique memory on MacOS r=mccr8
This patch disables calculating resident unique memory for telemetry, but retains it for about:memory. Telemetry has other memory measurements including a different fast-path. Differential Revision: https://phabricator.services.mozilla.com/D155455
This commit is contained in:
parent
c3bf7b11e3
commit
2f5df3fc3c
1 changed files with 4 additions and 0 deletions
|
|
@ -276,7 +276,11 @@ nsresult MemoryTelemetry::GatherReports(
|
|||
#endif
|
||||
RECORD(MEMORY_RESIDENT_FAST, ResidentFast, UNITS_BYTES);
|
||||
RECORD(MEMORY_RESIDENT_PEAK, ResidentPeak, UNITS_BYTES);
|
||||
// Although we can measure unique memory on MacOS we choose not to, because
|
||||
// doing so is too slow for telemetry.
|
||||
#ifndef XP_MACOSX
|
||||
RECORD(MEMORY_UNIQUE, ResidentUnique, UNITS_BYTES);
|
||||
#endif
|
||||
RECORD(MEMORY_HEAP_ALLOCATED, HeapAllocated, UNITS_BYTES);
|
||||
RECORD(MEMORY_HEAP_OVERHEAD_FRACTION, HeapOverheadFraction,
|
||||
UNITS_PERCENTAGE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue