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

Unified Diff: gin/isolate_holder.cc

Issue 1088683003: Adding v8_isolate_memory_dump_provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nits. Created 5 years, 8 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: gin/isolate_holder.cc
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc
index 9ef41d374a0625296ab82a5e02b995ffc9383274..e2b436b9f23b641ec1d8a377ee0cf80692a4292a 100644
--- a/gin/isolate_holder.cc
+++ b/gin/isolate_holder.cc
@@ -15,6 +15,7 @@
#include "gin/per_isolate_data.h"
#include "gin/run_microtasks_observer.h"
#include "gin/v8_initializer.h"
+#include "gin/v8_isolate_memory_dump_provider.h"
namespace gin {
@@ -32,6 +33,7 @@ IsolateHolder::IsolateHolder() {
base::SysInfo::AmountOfVirtualMemory());
isolate_ = v8::Isolate::New(params);
isolate_data_.reset(new PerIsolateData(isolate_, allocator));
+ isolate_memory_dump_provider_.reset(new V8IsolateMemoryDumpProvider(this));
#if defined(OS_WIN)
{
void* code_range;
@@ -59,6 +61,7 @@ IsolateHolder::~IsolateHolder() {
callback(code_range);
}
#endif
+ isolate_memory_dump_provider_.reset();
isolate_data_.reset();
isolate_->Dispose();
isolate_ = NULL;
« no previous file with comments | « gin/gin.gyp ('k') | gin/public/isolate_holder.h » ('j') | gin/v8_isolate_memory_dump_provider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698