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

Unified Diff: sdk/lib/developer/timeline.dart

Issue 2984603002: Special-case Timeline.{start,finish}Sync for Fuchsia (Closed)
Patch Set: . Created 3 years, 5 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
« runtime/lib/timeline.cc ('K') | « runtime/vm/bootstrap_natives.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/developer/timeline.dart
diff --git a/sdk/lib/developer/timeline.dart b/sdk/lib/developer/timeline.dart
index 0b7cd41e6b8852544795335419037410933c3da5..4b4af546d1501a44b46d731be0ab39d6a5d7d644 100644
--- a/sdk/lib/developer/timeline.dart
+++ b/sdk/lib/developer/timeline.dart
@@ -225,7 +225,9 @@ class _SyncBlock {
// The start time stamp of the thread cpu clock.
final int _startCpu;
- _SyncBlock._(this.name, this._start, this._startCpu);
+ _SyncBlock._(this.name, this._start, this._startCpu) {
+ _reportBeginEvent(name);
+ }
/// Finish this block of time. At this point, this block can no longer be
/// used.
@@ -279,6 +281,9 @@ external int _getIsolateNum();
external void _reportTaskEvent(int start, int taskId, String phase,
String category, String name, String argumentsAsJson);
+/// Reports a begin event for a synchronous event.
+external void _reportBeginEvent(String name);
+
/// Reports a complete synchronous event.
external void _reportCompleteEvent(int start, int startCpu, String category,
String name, String argumentsAsJson);
« runtime/lib/timeline.cc ('K') | « runtime/vm/bootstrap_natives.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698