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

Side by Side Diff: runtime/lib/timeline.dart

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 4 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
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 import 'dart:_internal'; 5 import 'dart:_internal';
6 6
7 patch bool _isDartStreamEnabled() native "Timeline_isDartStreamEnabled"; 7 @patch bool _isDartStreamEnabled() native "Timeline_isDartStreamEnabled";
8 8
9 patch int _getTraceClock() native "Timeline_getTraceClock"; 9 @patch int _getTraceClock() native "Timeline_getTraceClock";
10 10
11 patch int _getThreadCpuClock() native "Timeline_getThreadCpuClock"; 11 @patch int _getThreadCpuClock() native "Timeline_getThreadCpuClock";
12 12
13 patch int _getNextAsyncId() native "Timeline_getNextAsyncId"; 13 @patch int _getNextAsyncId() native "Timeline_getNextAsyncId";
14 14
15 patch int _getIsolateNum() native "Timeline_getIsolateNum"; 15 @patch int _getIsolateNum() native "Timeline_getIsolateNum";
16 16
17 patch void _reportTaskEvent( 17 @patch void _reportTaskEvent(
18 int start, 18 int start,
19 int taskId, 19 int taskId,
20 String phase, 20 String phase,
21 String category, 21 String category,
22 String name, 22 String name,
23 String argumentsAsJson) native "Timeline_reportTaskEvent"; 23 String argumentsAsJson) native "Timeline_reportTaskEvent";
24 24
25 patch void _reportCompleteEvent( 25 @patch void _reportCompleteEvent(
26 int start, 26 int start,
27 int end, 27 int end,
28 String category, 28 String category,
29 String name, 29 String name,
30 String argumentsAsJson) native "Timeline_reportCompleteEvent"; 30 String argumentsAsJson) native "Timeline_reportCompleteEvent";
31 31
32 patch void _reportInstantEvent( 32 @patch void _reportInstantEvent(
33 int start, 33 int start,
34 String category, 34 String category,
35 String name, 35 String name,
36 String argumentsAsJson) native "Timeline_reportInstantEvent"; 36 String argumentsAsJson) native "Timeline_reportInstantEvent";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698