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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2824133002: Record swap metrics (Closed)
Patch Set: comments Created 3 years, 8 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: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index b024d9fc7fee9e5b5d2526a2c8c5017db6a3d118..529af4953bcc9841af8d9330159a6f3f0da9b9d2 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -68,6 +68,7 @@
#include "content/browser/loader_delegate_impl.h"
#include "content/browser/media/media_internals.h"
#include "content/browser/memory/memory_coordinator_impl.h"
+#include "content/browser/memory/swap_metrics_observer.h"
#include "content/browser/net/browser_online_state_observer.h"
#include "content/browser/renderer_host/media/media_stream_manager.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
@@ -1594,6 +1595,10 @@ void BrowserMainLoop::InitializeMemoryManagementComponent() {
base::Unretained(coordinator)));
}
}
+
+ auto* swap_metrics_observer = SwapMetricsObserver::GetInstance();
+ if (swap_metrics_observer)
+ swap_metrics_observer->Start();
}
bool BrowserMainLoop::InitializeToolkit() {

Powered by Google App Engine
This is Rietveld 408576698