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

Unified Diff: third_party/WebKit/public/platform/Platform.h

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 | « third_party/WebKit/Source/web/WebKit.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index e4f773096b4f515732b721a62d9b2c633a751b9f..cdc1a5b7c146ce2cfd8ca6c6ba00eb5e8f31e747 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -574,9 +574,10 @@ public:
// Registers a memory dump provider. The WebMemoryDumpProvider::onMemoryDump
// method will be called on the same thread that called the
- // registerMemoryDumpProvider() method.
+ // registerMemoryDumpProvider() method. |name| is used for debugging
+ // (duplicates are allowed) and must be a long-lived C string.
// See crbug.com/458295 for design docs.
- virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
+ virtual void registerMemoryDumpProvider(blink::WebMemoryDumpProvider*, const char* name) { }
// Must be called on the thread that called registerMemoryDumpProvider().
virtual void unregisterMemoryDumpProvider(blink::WebMemoryDumpProvider*) { }
« no previous file with comments | « third_party/WebKit/Source/web/WebKit.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698