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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp

Issue 2625093002: [wrapper-tracing] Add heap snapshot generator infrastructure (Closed)
Patch Set: Move the scope to V8PerIsolateData Created 3 years, 11 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
Index: third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
index b49db8f4544d9fcc501eebe93b9c73c89e957656..5608ebd9190e031836b6ceb40dcc22e5c968c4cf 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp
@@ -417,9 +417,11 @@ void V8Initializer::initializeMainThread() {
isolate->SetPromiseRejectCallback(promiseRejectHandlerInMainThread);
- if (v8::HeapProfiler* profiler = isolate->GetHeapProfiler())
+ if (v8::HeapProfiler* profiler = isolate->GetHeapProfiler()) {
profiler->SetWrapperClassInfoProvider(
WrapperTypeInfo::NodeClassId, &RetainedDOMInfo::createRetainedDOMInfo);
+ profiler->SetGetRetainerInfosCallback(&V8GCController::getRetainerInfos);
+ }
ASSERT(ThreadState::mainThreadState());
ThreadState::mainThreadState()->addInterruptor(

Powered by Google App Engine
This is Rietveld 408576698