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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1327063002: [tracing] Add sqlite memory statistics to tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 2 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
« no previous file with comments | « no previous file | sql/BUILD.gn » ('j') | sql/connection.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index a4e2c8a189e0285ecba96dc35c8c4874aef7e0e4..397038882076ef529fe23ca26a61710c9a6c048b 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -71,6 +71,7 @@
#include "net/ssl/ssl_config_service.h"
#include "ipc/mojo/scoped_ipc_support.h"
#include "skia/ext/skia_memory_dump_provider.h"
+#include "sql/sql_memory_dump_provider.h"
#include "ui/base/clipboard/clipboard.h"
#if defined(USE_AURA) || (defined(OS_MACOSX) && !defined(OS_IOS))
@@ -661,6 +662,8 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
HostSharedBitmapManager::current());
base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
skia::SkiaMemoryDumpProvider::GetInstance());
+ base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
+ sql::SqlMemoryDumpProvider::GetInstance());
Primiano Tucci (use gerrit) 2015/10/08 17:18:20 Don't we need this also in child processes?
ssid 2015/10/08 17:20:17 No, there are no connections opened in child proce
#if defined(TCMALLOC_TRACE_MEMORY_SUPPORTED)
trace_memory_controller_.reset(new base::trace_event::TraceMemoryController(
« no previous file with comments | « no previous file | sql/BUILD.gn » ('j') | sql/connection.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698