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

Unified Diff: base/memory/memory_pressure_monitor.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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
« no previous file with comments | « base/memory/memory_coordinator_client.h ('k') | base/memory/memory_pressure_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..033379cdb8d51e08151d8ab36bf610264eac909e 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. A tick is 5 seconds.
+ static void RecordMemoryPressure(MemoryPressureLevel level, int ticks);
+
// Returns the currently observed memory pressure.
virtual MemoryPressureLevel GetCurrentPressureLevel() const = 0;
« no previous file with comments | « base/memory/memory_coordinator_client.h ('k') | base/memory/memory_pressure_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698