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

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

Issue 2360433002: Memory-monitor for Mac. (Closed)
Patch Set: rebased 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
Index: content/browser/memory/memory_coordinator_impl.cc
diff --git a/content/browser/memory/memory_coordinator_impl.cc b/content/browser/memory/memory_coordinator_impl.cc
index 2340b237efcc9d08cae6a8caa311b3d5cc402e0a..e4c704ee3c70ebdffd9f81d34de48b6674af4f1d 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -112,6 +112,10 @@ void MemoryCoordinatorImpl::OnChildAdded(int render_process_id) {
SetChildMemoryState(render_process_id, ToMojomMemoryState(current_state_));
}
+base::TimeDelta MemoryCoordinatorImpl::GetMonitoringInterval() const {
+ return monitoring_interval_;
+}
+
base::MemoryState MemoryCoordinatorImpl::GetCurrentMemoryState() const {
// SUSPENDED state may not make sense to the browser process. Use THROTTLED
// instead when the global state is SUSPENDED.

Powered by Google App Engine
This is Rietveld 408576698