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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1406213005: [tracing] Add names to memory-infra dumpers for debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memory-infra-runtime
Patch Set: Rebase + fix android 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 | « content/child/blink_platform_impl.h ('k') | content/child/child_discardable_shared_memory_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 135cc72342717fd22fb58c3a7dab3538991a069f..c885851418ffe27144337e4cc6beb8e925b8ebc8 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -710,7 +710,7 @@ void BlinkPlatformImpl::updateTraceEventDuration(
}
void BlinkPlatformImpl::registerMemoryDumpProvider(
- blink::WebMemoryDumpProvider* wmdp) {
+ blink::WebMemoryDumpProvider* wmdp, const char* name) {
WebMemoryDumpProviderAdapter* wmdp_adapter =
new WebMemoryDumpProviderAdapter(wmdp);
bool did_insert =
@@ -719,7 +719,7 @@ void BlinkPlatformImpl::registerMemoryDumpProvider(
return;
wmdp_adapter->set_is_registered(true);
base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
- wmdp_adapter, base::ThreadTaskRunnerHandle::Get());
+ wmdp_adapter, name, base::ThreadTaskRunnerHandle::Get());
}
void BlinkPlatformImpl::unregisterMemoryDumpProvider(
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/child_discardable_shared_memory_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698