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

Unified Diff: Source/platform/exported/Platform.cpp

Issue 1149673002: Adding blink gc memory dump infrastructure for thread specific dumps. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and replacing main thread with thread id. Created 5 years, 6 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 | Source/platform/heap/BlinkGCMemoryDumpProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/Platform.cpp
diff --git a/Source/platform/exported/Platform.cpp b/Source/platform/exported/Platform.cpp
index 5f22defe5cb634e309ff135b4feb0f7721094521..2b2ccb844556789f76c7a95a312bf5460fffa513 100644
--- a/Source/platform/exported/Platform.cpp
+++ b/Source/platform/exported/Platform.cpp
@@ -30,7 +30,6 @@
#include "config.h"
#include "platform/PartitionAllocMemoryDumpProvider.h"
-#include "platform/heap/BlinkGCMemoryDumpProvider.h"
#include "public/platform/Platform.h"
namespace blink {
@@ -49,18 +48,14 @@ void Platform::initialize(Platform* platform)
s_platform->m_mainThread = platform->currentThread();
// TODO(ssid): remove this check after fixing crbug.com/486782.
- if (s_platform && s_platform->m_mainThread) {
+ if (s_platform && s_platform->m_mainThread)
s_platform->registerMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance());
- s_platform->registerMemoryDumpProvider(BlinkGCMemoryDumpProvider::instance());
- }
}
void Platform::shutdown()
{
- if (s_platform->m_mainThread) {
+ if (s_platform->m_mainThread)
s_platform->unregisterMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance());
- s_platform->unregisterMemoryDumpProvider(BlinkGCMemoryDumpProvider::instance());
- }
if (s_platform)
s_platform->m_mainThread = 0;
« no previous file with comments | « no previous file | Source/platform/heap/BlinkGCMemoryDumpProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698