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

Unified Diff: chrome/browser/oom_priority_manager.h

Issue 10151005: cros: Log per-process memory use on low memory events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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: chrome/browser/oom_priority_manager.h
diff --git a/chrome/browser/oom_priority_manager.h b/chrome/browser/oom_priority_manager.h
index 866ec4de572f64dd4d53e6822dc5c5bfd89bec7f..7c91d043301e5bf6408aca9e5cba7f01eee82c93 100644
--- a/chrome/browser/oom_priority_manager.h
+++ b/chrome/browser/oom_priority_manager.h
@@ -50,6 +50,11 @@ class OomPriorityManager : public content::NotificationObserver {
// Returns true if it successfully found a tab and discarded it.
bool DiscardTab();
+ // Log memory statistics for the running processes, then discards a tab.
+ // Tab discard happens sometime later, as collecting the statistics touches
+ // multiple threads and takes time.
+ void LogMemoryAndDiscardTab();
+
private:
FRIEND_TEST_ALL_PREFIXES(OomPriorityManagerTest, Comparator);

Powered by Google App Engine
This is Rietveld 408576698