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

Unified Diff: src/profiler/profile-generator.cc

Issue 1709873002: Do not record CPU profile samples when stack collection is failed. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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: src/profiler/profile-generator.cc
diff --git a/src/profiler/profile-generator.cc b/src/profiler/profile-generator.cc
index 4c4205290fd0f677a4b8b876637fcc0f4fbffad0..2bb47f199db7c65729ec9e846d6fce7bb84726a3 100644
--- a/src/profiler/profile-generator.cc
+++ b/src/profiler/profile-generator.cc
@@ -636,10 +636,9 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) {
}
}
- for (const Address* stack_pos = sample.stack,
- *stack_end = stack_pos + sample.frames_count;
- stack_pos != stack_end;
- ++stack_pos) {
+ for (const Address *stack_pos = sample.stack,
titzer 2016/02/19 09:28:37 Formatting artifact? git cl format should have fix
alph 2016/02/19 16:24:29 So it did. I hope you don't think I reformatted th
titzer 2016/02/19 16:36:33 I just asked because it looks backwards to our nor
+ *stack_end = stack_pos + sample.frames_count;
+ stack_pos != stack_end; ++stack_pos) {
*entry = code_map_.FindEntry(*stack_pos);
// Skip unresolved frames (e.g. internal frame) and get source line of

Powered by Google App Engine
This is Rietveld 408576698