File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -301,7 +301,8 @@ DART_EXPORT bool Dart_IsReloading();
301301
302302/**
303303 * Returns a timestamp in microseconds. This timestamp is suitable for
304- * passing into the timeline system.
304+ * passing into the timeline system, and uses the same monotonic clock
305+ * as dart:developer's Timeline.now.
305306 *
306307 * \return A timestamp that can be passed to the timeline system.
307308 */
Original file line number Diff line number Diff line change @@ -797,7 +797,8 @@ The _getVMTimeline_ RPC is used to retrieve an object which contains VM timeline
797797events.
798798
799799The _ timeOriginMicros_ parameter is the beginning of the time range used to filter
800- timeline events.
800+ timeline events. It uses the same monotonic clock as dart: developer 's ` Timeline.now `
801+ and the VM embedding API's ` Dart_TimelineGetMicros ` .
801802
802803The _ timeExtentMicros_ parameter specifies how large the time range used to filter
803804timeline events should be.
Original file line number Diff line number Diff line change @@ -797,7 +797,8 @@ The _getVMTimeline_ RPC is used to retrieve an object which contains VM timeline
797797events.
798798
799799The _ timeOriginMicros_ parameter is the beginning of the time range used to filter
800- timeline events.
800+ timeline events. It uses the same monotonic clock as dart: developer 's ` Timeline.now `
801+ and the VM embedding API's ` Dart_TimelineGetMicros ` .
801802
802803The _ timeExtentMicros_ parameter specifies how large the time range used to filter
803804timeline events should be.
Original file line number Diff line number Diff line change @@ -166,6 +166,9 @@ class Timeline {
166166
167167 /// The current time stamp from the clock used by the timeline. Units are
168168 /// microseconds.
169+ ///
170+ /// When run on the Dart VM, uses the same monotonic clock as the embedding
171+ /// API's `Dart_TimelineGetMicros` .
169172 static int get now => _getTraceClock ();
170173 static final List <_SyncBlock > _stack = new List <_SyncBlock >();
171174}
You can’t perform that action at this time.
0 commit comments