Index: chrome/browser/chrome_browser_main_linux.cc |
diff --git a/chrome/browser/chrome_browser_main_linux.cc b/chrome/browser/chrome_browser_main_linux.cc |
index 3a3ea520aa933af80820ae281efd38bdd00b2931..9c709c1b5cc203d8adbdb6e24590a2d73ee5a337 100644 |
--- a/chrome/browser/chrome_browser_main_linux.cc |
+++ b/chrome/browser/chrome_browser_main_linux.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/chrome_browser_main_linux.h" |
+#include "base/debug/trace_memory.h" |
+ |
#if !defined(OS_CHROMEOS) |
#include "chrome/browser/storage_monitor/storage_monitor_linux.h" |
#include "content/public/browser/browser_thread.h" |
@@ -133,6 +135,13 @@ void ChromeBrowserMainPartsLinux::PreProfileInit() { |
ChromeBrowserMainPartsPosix::PreProfileInit(); |
} |
+void ChromeBrowserMainPartsLinux::PreMainMessageLoopRun() { |
+ ChromeBrowserMainPartsPosix::PreMainMessageLoopRun(); |
+ |
+ // TODO(jamescook): Only start this when tracing is flipped on. |
+ base::TraceMemoryStart(); |
+} |
+ |
void ChromeBrowserMainPartsLinux::PostMainMessageLoopRun() { |
ChromeBrowserMainPartsPosix::PostMainMessageLoopRun(); |
@@ -142,4 +151,6 @@ void ChromeBrowserMainPartsLinux::PostMainMessageLoopRun() { |
// single browser_test. |
storage_monitor_.reset(); |
#endif |
+ |
+ base::TraceMemoryStop(); |
} |