OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include <cstdlib> | 5 #include <cstdlib> |
6 | 6 |
7 #include "vm/atomic.h" | 7 #include "vm/atomic.h" |
8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
9 #include "vm/json_stream.h" | 9 #include "vm/json_stream.h" |
10 #include "vm/lockers.h" | 10 #include "vm/lockers.h" |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 } | 1169 } |
1170 | 1170 |
1171 | 1171 |
1172 void TimelineEventFixedBufferRecorder::PrintTraceEvent( | 1172 void TimelineEventFixedBufferRecorder::PrintTraceEvent( |
1173 JSONStream* js, | 1173 JSONStream* js, |
1174 TimelineEventFilter* filter) { | 1174 TimelineEventFilter* filter) { |
1175 if (!FLAG_support_service) { | 1175 if (!FLAG_support_service) { |
1176 return; | 1176 return; |
1177 } | 1177 } |
1178 JSONArray events(js); | 1178 JSONArray events(js); |
| 1179 PrintJSONMeta(&events); |
1179 PrintJSONEvents(&events, filter); | 1180 PrintJSONEvents(&events, filter); |
1180 } | 1181 } |
1181 | 1182 |
1182 | 1183 |
1183 TimelineEventBlock* TimelineEventFixedBufferRecorder::GetHeadBlockLocked() { | 1184 TimelineEventBlock* TimelineEventFixedBufferRecorder::GetHeadBlockLocked() { |
1184 return blocks_[0]; | 1185 return blocks_[0]; |
1185 } | 1186 } |
1186 | 1187 |
1187 | 1188 |
1188 void TimelineEventFixedBufferRecorder::Clear() { | 1189 void TimelineEventFixedBufferRecorder::Clear() { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 } | 1315 } |
1315 | 1316 |
1316 | 1317 |
1317 void TimelineEventEndlessRecorder::PrintTraceEvent( | 1318 void TimelineEventEndlessRecorder::PrintTraceEvent( |
1318 JSONStream* js, | 1319 JSONStream* js, |
1319 TimelineEventFilter* filter) { | 1320 TimelineEventFilter* filter) { |
1320 if (!FLAG_support_service) { | 1321 if (!FLAG_support_service) { |
1321 return; | 1322 return; |
1322 } | 1323 } |
1323 JSONArray events(js); | 1324 JSONArray events(js); |
| 1325 PrintJSONMeta(&events); |
1324 PrintJSONEvents(&events, filter); | 1326 PrintJSONEvents(&events, filter); |
1325 } | 1327 } |
1326 | 1328 |
1327 | 1329 |
1328 TimelineEventBlock* TimelineEventEndlessRecorder::GetHeadBlockLocked() { | 1330 TimelineEventBlock* TimelineEventEndlessRecorder::GetHeadBlockLocked() { |
1329 return head_; | 1331 return head_; |
1330 } | 1332 } |
1331 | 1333 |
1332 | 1334 |
1333 TimelineEvent* TimelineEventEndlessRecorder::StartEvent() { | 1335 TimelineEvent* TimelineEventEndlessRecorder::StartEvent() { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 TimelineEventBlock* TimelineEventBlockIterator::Next() { | 1555 TimelineEventBlock* TimelineEventBlockIterator::Next() { |
1554 ASSERT(current_ != NULL); | 1556 ASSERT(current_ != NULL); |
1555 TimelineEventBlock* r = current_; | 1557 TimelineEventBlock* r = current_; |
1556 current_ = current_->next(); | 1558 current_ = current_->next(); |
1557 return r; | 1559 return r; |
1558 } | 1560 } |
1559 | 1561 |
1560 #endif // !PRODUCT | 1562 #endif // !PRODUCT |
1561 | 1563 |
1562 } // namespace dart | 1564 } // namespace dart |
OLD | NEW |