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

Unified Diff: base/chromeos/memory_pressure_observer_chromeos.h

Issue 874483008: Add UMA stats to get the quality of service of memory pressure handling scheme in ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/chromeos/memory_pressure_observer_chromeos.h
diff --git a/base/chromeos/memory_pressure_observer_chromeos.h b/base/chromeos/memory_pressure_observer_chromeos.h
index 739b795067e4e7202716760c5882b205a014a55b..53958168839f45565ad1d01675febfe33a11450d 100644
--- a/base/chromeos/memory_pressure_observer_chromeos.h
+++ b/base/chromeos/memory_pressure_observer_chromeos.h
@@ -95,6 +95,13 @@ class BASE_EXPORT MemoryPressureObserverChromeOS {
const int moderate_pressure_threshold_percent_;
const int critical_pressure_threshold_percent_;
+ // The time that the system stays in non-critical memory pressure state in a
+ // session (in Millisecond).
+ unsigned int time_non_critical_pressure_;
+ // The time that the system stays in critical memory pressure state in a
+ // session (in Millisecond).
+ unsigned int time_critical_pressure_;
+
base::WeakPtrFactory<MemoryPressureObserverChromeOS> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(MemoryPressureObserverChromeOS);
« no previous file with comments | « no previous file | base/chromeos/memory_pressure_observer_chromeos.cc » ('j') | base/chromeos/memory_pressure_observer_chromeos.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698