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: src/cpu-profiler.cc

Issue 16035027: DevTools: CPUProfiler: provide url for scripts that have sourceURL property. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: debugger context Created 7 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 | « src/compiler.cc ('k') | src/handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cpu-profiler.cc
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc
index 42722191bd5a0cce0c9bdb7d8a909cbd3d30fb2a..b68e833c91450d7a372ef2d31c79c8ee4cf49113 100644
--- a/src/cpu-profiler.cc
+++ b/src/cpu-profiler.cc
@@ -30,6 +30,7 @@
#include "cpu-profiler-inl.h"
#include "compiler.h"
+#include "debug.h"
#include "frames-inl.h"
#include "hashmap.h"
#include "log-inl.h"
@@ -437,6 +438,9 @@ void CpuProfiler::ResetProfiles() {
}
void CpuProfiler::StartProfiling(const char* title, bool record_samples) {
+ i::HandleScope scope(isolate_);
+ v8::Local<v8::Context> context = v8::Debug::GetDebugContext();
+ v8::Context::Scope contextScope(context);
if (profiles_->StartProfiling(title, next_profile_uid_++, record_samples)) {
StartProcessorIfNotStarted();
}
« no previous file with comments | « src/compiler.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698