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

Unified Diff: content/browser/memory/memory_coordinator_impl.h

Issue 2476223002: Add metrics for memory coordinator global state change (Closed)
Patch Set: comments addressed 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 | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_coordinator_impl.h
diff --git a/content/browser/memory/memory_coordinator_impl.h b/content/browser/memory/memory_coordinator_impl.h
index f9792a8c67a7acca64f85fd57f6e6942d2f44f00..b86cc61be7a0a6aff3e6a712a68279e5168851b2 100644
--- a/content/browser/memory/memory_coordinator_impl.h
+++ b/content/browser/memory/memory_coordinator_impl.h
@@ -81,6 +81,11 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public MemoryCoordinator,
// Notifies a state change to child processes.
void NotifyStateToChildren();
+ // Records metrics. This is called when the global state is changed.
+ void RecordStateChange(MemoryState prev_state,
+ MemoryState next_state,
+ base::TimeDelta duration);
+
// Schedules a task to update the global state. The task will be executed
// after |delay| has passed.
void ScheduleUpdateState(base::TimeDelta delay);
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698