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

Unified Diff: runtime/vm/profiler_test.cc

Issue 100103011: Changes to support dprof and Observatory profiler UIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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 | « runtime/vm/profiler.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler_test.cc
diff --git a/runtime/vm/profiler_test.cc b/runtime/vm/profiler_test.cc
index 610fa419be40059a39538bc83b0eb5df68feb305..b0c580e70eec33eef1e0d3c2df6cd821027966be 100644
--- a/runtime/vm/profiler_test.cc
+++ b/runtime/vm/profiler_test.cc
@@ -18,8 +18,8 @@ class ProfileSampleBufferTestHelper {
const SampleBuffer& sample_buffer) {
intptr_t c = 0;
for (intptr_t i = 0; i < sample_buffer.capacity(); i++) {
- Sample* sample = sample_buffer.GetSample(i);
- if (sample->isolate != isolate) {
+ Sample sample = sample_buffer.GetSample(i);
+ if (sample.isolate != isolate) {
continue;
}
c++;
@@ -32,11 +32,11 @@ class ProfileSampleBufferTestHelper {
const SampleBuffer& sample_buffer) {
intptr_t c = 0;
for (intptr_t i = 0; i < sample_buffer.capacity(); i++) {
- Sample* sample = sample_buffer.GetSample(i);
- if (sample->isolate != isolate) {
+ Sample sample = sample_buffer.GetSample(i);
+ if (sample.isolate != isolate) {
continue;
}
- c += sample->pcs[0];
+ c += sample.pcs[0];
}
return c;
}
« no previous file with comments | « runtime/vm/profiler.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698