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

Unified Diff: src/compiler.cc

Issue 1013143003: CpuProfiler: push the collected information about deopts to cpu profiler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: another try Created 5 years, 9 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.h ('k') | src/cpu-profiler.cc » ('j') | src/profile-generator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index b622d9ce8574932f79225fcef40f9ec7b6997da4..8f732240ee310f5ee908e2b61e782faef452ff6b 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -116,7 +116,8 @@ void CompilationInfo::Initialize(Isolate* isolate,
opt_count_ = has_shared_info() ? shared_info()->opt_count() : 0;
no_frame_ranges_ = isolate->cpu_profiler()->is_profiling()
? new List<OffsetRange>(2) : NULL;
- if (FLAG_hydrogen_track_positions) {
+ if (FLAG_hydrogen_track_positions ||
+ isolate_->cpu_profiler()->is_profiling()) {
inlined_function_infos_ = new std::vector<InlinedFunctionInfo>();
track_positions_ = true;
} else {
@@ -303,7 +304,6 @@ int CompilationInfo::TraceInlinedFunction(Handle<SharedFunctionInfo> shared,
os << AsReversiblyEscapedUC16(c);
}
}
-
os << "\n--- END ---\n";
}
}
« no previous file with comments | « src/compiler.h ('k') | src/cpu-profiler.cc » ('j') | src/profile-generator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698