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

Unified Diff: content/browser/tracing/trace_message_filter.cc

Issue 1417003003: [tracing] Dump child processes' memory metrics in browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache2_base
Patch Set: Nits. Created 5 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/tracing/trace_message_filter.cc
diff --git a/content/browser/tracing/trace_message_filter.cc b/content/browser/tracing/trace_message_filter.cc
index a8a3caf3badee2825b7b80c3afd11306621e88e6..3bc6db19e3526bca565918de7f2114490228763c 100644
--- a/content/browser/tracing/trace_message_filter.cc
+++ b/content/browser/tracing/trace_message_filter.cc
@@ -36,6 +36,8 @@ void TraceMessageFilter::OnChannelClosing() {
OnTraceLogStatusReply(base::trace_event::TraceLogStatus());
TracingControllerImpl::GetInstance()->RemoveTraceMessageFilter(this);
+ base::trace_event::MemoryDumpManager::GetInstance()
+ ->UnregisterProcessMetricsProvidersFor(peer_pid());
}
}
@@ -140,6 +142,8 @@ void TraceMessageFilter::SendGlobalMemoryDumpResponse(uint64 dump_guid,
void TraceMessageFilter::OnChildSupportsTracing() {
has_child_ = true;
TracingControllerImpl::GetInstance()->AddTraceMessageFilter(this);
+ base::trace_event::MemoryDumpManager::GetInstance()
+ ->RegisterProcessMetricsProvidersFor(peer_pid());
}
void TraceMessageFilter::OnEndTracingAck(
« base/trace_event/process_memory_maps_dump_provider.h ('K') | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698