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

Unified Diff: runtime/vm/profiler.cc

Issue 1525913002: Observatory: Include profiler samples in the timeline view. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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.h ('k') | runtime/vm/profiler_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index 9f820b0757357efc42093df13a70b50ce225ac15..ff0139352ea39069273b0c5a90167f2d4809a135 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -1193,9 +1193,9 @@ ProcessedSampleBuffer* SampleBuffer::BuildProcessedSampleBuffer(
continue;
}
if (!sample->head_sample()) {
- // An inner sample in a chain of samples.
- continue;
- }
+ // An inner sample in a chain of samples.
+ continue;
+ }
if (sample->isolate() != filter->isolate()) {
// Another isolate.
continue;
@@ -1228,6 +1228,7 @@ ProcessedSample* SampleBuffer::BuildProcessedSample(
// Copy state bits from sample.
processed_sample->set_timestamp(sample->timestamp());
+ processed_sample->set_tid(sample->tid());
processed_sample->set_vm_tag(sample->vm_tag());
processed_sample->set_user_tag(sample->user_tag());
if (sample->is_allocation_sample()) {
@@ -1287,7 +1288,8 @@ ProcessedSample::ProcessedSample()
vm_tag_(0),
user_tag_(0),
allocation_cid_(-1),
- truncated_(false) {
+ truncated_(false),
+ timeline_trie_(NULL) {
}
« no previous file with comments | « runtime/vm/profiler.h ('k') | runtime/vm/profiler_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698