Commit 44d730bd authored by Randell Jesup's avatar Randell Jesup
Browse files

Bug 1835172: Don't clear performance user entries on MemoryPressure events r=smaug

parent f79fdd39
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -954,7 +954,10 @@ void Performance::QueueEntry(PerformanceEntry* aEntry) {
  }
}

void Performance::MemoryPressure() { mUserEntries.Clear(); }
// We could clear User entries here, but doing so could break sites that call
// performance.measure() if the marks disappeared without warning.   Chrome
// allows "infinite" entries.
void Performance::MemoryPressure() {}

size_t Performance::SizeOfUserEntries(
    mozilla::MallocSizeOf aMallocSizeOf) const {