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

Side by Side Diff: runtime/vm/timeline.cc

Issue 1972523003: Improve Observatory Timeline UI (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/timeline.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 return; 1286 return;
1287 } 1287 }
1288 JSONObject topLevel(js); 1288 JSONObject topLevel(js);
1289 topLevel.AddProperty("type", "_Timeline"); 1289 topLevel.AddProperty("type", "_Timeline");
1290 { 1290 {
1291 JSONArray events(&topLevel, "traceEvents"); 1291 JSONArray events(&topLevel, "traceEvents");
1292 PrintJSONMeta(&events); 1292 PrintJSONMeta(&events);
1293 PrintJSONEvents(&events, filter); 1293 PrintJSONEvents(&events, filter);
1294 } 1294 }
1295 topLevel.AddPropertyTimeMicros("timeOriginMicros", TimeOriginMicros()); 1295 topLevel.AddPropertyTimeMicros("timeOriginMicros", TimeOriginMicros());
1296 topLevel.AddPropertyTimeMicros("TimeExtentMicros", TimeExtentMicros()); 1296 topLevel.AddPropertyTimeMicros("timeExtentMicros", TimeExtentMicros());
1297 } 1297 }
1298 1298
1299 1299
1300 void TimelineEventFixedBufferRecorder::PrintTraceEvent( 1300 void TimelineEventFixedBufferRecorder::PrintTraceEvent(
1301 JSONStream* js, 1301 JSONStream* js,
1302 TimelineEventFilter* filter) { 1302 TimelineEventFilter* filter) {
1303 if (!FLAG_support_service) { 1303 if (!FLAG_support_service) {
1304 return; 1304 return;
1305 } 1305 }
1306 JSONArray events(js); 1306 JSONArray events(js);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 return; 1434 return;
1435 } 1435 }
1436 JSONObject topLevel(js); 1436 JSONObject topLevel(js);
1437 topLevel.AddProperty("type", "_Timeline"); 1437 topLevel.AddProperty("type", "_Timeline");
1438 { 1438 {
1439 JSONArray events(&topLevel, "traceEvents"); 1439 JSONArray events(&topLevel, "traceEvents");
1440 PrintJSONMeta(&events); 1440 PrintJSONMeta(&events);
1441 PrintJSONEvents(&events, filter); 1441 PrintJSONEvents(&events, filter);
1442 } 1442 }
1443 topLevel.AddPropertyTimeMicros("timeOriginMicros", TimeOriginMicros()); 1443 topLevel.AddPropertyTimeMicros("timeOriginMicros", TimeOriginMicros());
1444 topLevel.AddPropertyTimeMicros("TimeExtentMicros", TimeExtentMicros()); 1444 topLevel.AddPropertyTimeMicros("timeExtentMicros", TimeExtentMicros());
1445 } 1445 }
1446 1446
1447 1447
1448 void TimelineEventEndlessRecorder::PrintTraceEvent( 1448 void TimelineEventEndlessRecorder::PrintTraceEvent(
1449 JSONStream* js, 1449 JSONStream* js,
1450 TimelineEventFilter* filter) { 1450 TimelineEventFilter* filter) {
1451 if (!FLAG_support_service) { 1451 if (!FLAG_support_service) {
1452 return; 1452 return;
1453 } 1453 }
1454 JSONArray events(js); 1454 JSONArray events(js);
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 TimelineEventBlock* TimelineEventBlockIterator::Next() { 1688 TimelineEventBlock* TimelineEventBlockIterator::Next() {
1689 ASSERT(current_ != NULL); 1689 ASSERT(current_ != NULL);
1690 TimelineEventBlock* r = current_; 1690 TimelineEventBlock* r = current_;
1691 current_ = current_->next(); 1691 current_ = current_->next();
1692 return r; 1692 return r;
1693 } 1693 }
1694 1694
1695 #endif // !PRODUCT 1695 #endif // !PRODUCT
1696 1696
1697 } // namespace dart 1697 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/timeline.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698