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

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

Issue 2360433002: Memory-monitor for Mac. (Closed)
Patch Set: calculate adjustment based on poll interval; limit calculations to avoid overflow 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 5fa4ea4b3b0ed221efb56ecd509975750888fd47..a1354918d5e582bdb807df89e7370acf26d4140e 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -110,6 +110,10 @@ void MemoryCoordinatorImpl::OnChildAdded(int render_process_id) {
SetMemoryState(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