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

Unified Diff: src/cpu-profiler.cc

Issue 17141005: DevTools: CPUProfiler: provide url for scripts that have sourceURL property. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« src/api.cc ('K') | « 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..b95b7d85968d10afe453830c790975a4c46eeffd 100644
--- a/src/cpu-profiler.cc
+++ b/src/cpu-profiler.cc
@@ -437,6 +437,10 @@ void CpuProfiler::ResetProfiles() {
}
void CpuProfiler::StartProfiling(const char* title, bool record_samples) {
+ i::HandleScope scope(isolate_);
+ v8::Local<v8::Context> context = v8::Context::New(
+ reinterpret_cast<v8::Isolate*>(isolate_));
+ v8::Context::Scope contextScope(context);
if (profiles_->StartProfiling(title, next_profile_uid_++, record_samples)) {
StartProcessorIfNotStarted();
}
« src/api.cc ('K') | « src/compiler.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698