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

Unified Diff: components/memory_coordinator/browser/memory_monitor.cc

Issue 2310193002: Added MemoryMonitor for Linux (with test) (Closed)
Patch Set: removed 5% overhead and moved delegate to common code Created 4 years, 3 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: components/memory_coordinator/browser/memory_monitor.cc
diff --git a/components/memory_coordinator/browser/memory_monitor.cc b/components/memory_coordinator/browser/memory_monitor.cc
new file mode 100644
index 0000000000000000000000000000000000000000..175e251e68ad79b5d20ac92654f19479e5ebbb32
--- /dev/null
+++ b/components/memory_coordinator/browser/memory_monitor.cc
@@ -0,0 +1,18 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/memory_coordinator/browser/memory_monitor.h"
+
+#include "base/process/process_metrics.h"
+
+namespace memory_coordinator {
+
+MemoryMonitorDelegate::~MemoryMonitorDelegate() {}
+
+void MemoryMonitorDelegate::GetSystemMemoryInfo(
+ base::SystemMemoryInfoKB* mem_info) {
+ base::GetSystemMemoryInfo(mem_info);
+}
+
+} // namespace memory_coordinator

Powered by Google App Engine
This is Rietveld 408576698