| 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 part of "developer.dart"; | 5 part of "dart:developer"; |
| 6 | 6 |
| 7 const bool _isProduct = const bool.fromEnvironment("dart.vm.product"); | 7 const bool _isProduct = const bool.fromEnvironment("dart.vm.product"); |
| 8 | 8 |
| 9 typedef dynamic TimelineSyncFunction(); | 9 typedef dynamic TimelineSyncFunction(); |
| 10 typedef Future TimelineAsyncFunction(); | 10 typedef Future TimelineAsyncFunction(); |
| 11 | 11 |
| 12 /// Add to the timeline. | 12 /// Add to the timeline. |
| 13 class Timeline { | 13 class Timeline { |
| 14 /// Start a synchronous operation labeled [name]. Optionally takes | 14 /// Start a synchronous operation labeled [name]. Optionally takes |
| 15 /// a [Map] of [arguments]. This operation must be finished before | 15 /// a [Map] of [arguments]. This operation must be finished before |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 external void _reportTaskEvent(int start, int taskId, String phase, | 279 external void _reportTaskEvent(int start, int taskId, String phase, |
| 280 String category, String name, String argumentsAsJson); | 280 String category, String name, String argumentsAsJson); |
| 281 | 281 |
| 282 /// Reports a complete synchronous event. | 282 /// Reports a complete synchronous event. |
| 283 external void _reportCompleteEvent(int start, int startCpu, String category, | 283 external void _reportCompleteEvent(int start, int startCpu, String category, |
| 284 String name, String argumentsAsJson); | 284 String name, String argumentsAsJson); |
| 285 | 285 |
| 286 /// Reports an instant event. | 286 /// Reports an instant event. |
| 287 external void _reportInstantEvent( | 287 external void _reportInstantEvent( |
| 288 int start, String category, String name, String argumentsAsJson); | 288 int start, String category, String name, String argumentsAsJson); |
| OLD | NEW |