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

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
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.h ('k') | content/browser/memory/memory_monitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c5bf7f1e8afb655fbc89da76a044745565a69ae9..4b99aafe61b32cdc36063e926867b65cfb867f83 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -169,6 +169,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.
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.h ('k') | content/browser/memory/memory_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698