Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: base/memory/memory_pressure_monitor.h

Issue 2434103003: Add Mac memory pressure statistic reporting and consolidate platform code (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/memory/memory_pressure_monitor.h
diff --git a/base/memory/memory_pressure_monitor.h b/base/memory/memory_pressure_monitor.h
index a4adba4f3ad8d79913e1d2030568eead002d18b4..0e1a9ffb14a78a2086f354ef8cdba794780bc5b4 100644
--- a/base/memory/memory_pressure_monitor.h
+++ b/base/memory/memory_pressure_monitor.h
@@ -31,6 +31,9 @@ class BASE_EXPORT MemoryPressureMonitor {
// Return the singleton MemoryPressureMonitor.
static MemoryPressureMonitor* Get();
+ // Record memory pressure UMA statistic.
+ static void RecordMemoryPressure(MemoryPressureLevel level);
+
// Returns the currently observed memory pressure.
virtual MemoryPressureLevel GetCurrentPressureLevel() const = 0;

Powered by Google App Engine
This is Rietveld 408576698