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

Unified Diff: src/profile-generator.cc

Issue 422593003: Initial GetSample implementation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed Address from public API. Removed the function to copy TickSample to Sample. Created 6 years, 3 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/profile-generator.cc
diff --git a/src/profile-generator.cc b/src/profile-generator.cc
index 945bdd6cc12f5ea883ea6a30a12c24f938b81de2..abcccbdc176d3b1b19fb27b179a84ba364de94c7 100644
--- a/src/profile-generator.cc
+++ b/src/profile-generator.cc
@@ -628,7 +628,7 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) {
}
}
- for (const Address* stack_pos = sample.stack,
+ for (const Address* stack_pos = reinterpret_cast<const Address*>(sample.stack),
Sven Panne 2014/09/02 08:15:02 static_cast again, the const seems to be unnecessa
gholap 2014/09/02 08:56:08 Hmm... that should work for individual pointers, r
Sven Panne 2014/09/02 11:15:36 Done correctly, it *would* work, but actually ther
gholap 2014/09/02 14:43:11 Done. I know where I went wrong! I took my working
*stack_end = stack_pos + sample.frames_count;
stack_pos != stack_end;
++stack_pos) {

Powered by Google App Engine
This is Rietveld 408576698