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

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

Issue 1985813002: Add an intrinsified early out path for Dart timeline calls (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
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";
8
7 patch int _getTraceClock() native "Timeline_getTraceClock"; 9 patch int _getTraceClock() native "Timeline_getTraceClock";
8 10
9 patch int _getThreadCpuClock() native "Timeline_getThreadCpuClock"; 11 patch int _getThreadCpuClock() native "Timeline_getThreadCpuClock";
10 12
11 patch int _getNextAsyncId() native "Timeline_getNextAsyncId"; 13 patch int _getNextAsyncId() native "Timeline_getNextAsyncId";
12 14
13 patch int _getIsolateNum() native "Timeline_getIsolateNum"; 15 patch int _getIsolateNum() native "Timeline_getIsolateNum";
14 16
15 patch void _reportTaskEvent( 17 patch void _reportTaskEvent(
16 int start, 18 int start,
17 int taskId, 19 int taskId,
18 String phase, 20 String phase,
19 String category, 21 String category,
20 String name, 22 String name,
21 String argumentsAsJson) native "Timeline_reportTaskEvent"; 23 String argumentsAsJson) native "Timeline_reportTaskEvent";
22 24
23 patch void _reportCompleteEvent( 25 patch void _reportCompleteEvent(
24 int start, 26 int start,
25 int end, 27 int end,
26 String category, 28 String category,
27 String name, 29 String name,
28 String argumentsAsJson) native "Timeline_reportCompleteEvent"; 30 String argumentsAsJson) native "Timeline_reportCompleteEvent";
29 31
30 patch void _reportInstantEvent( 32 patch void _reportInstantEvent(
31 int start, 33 int start,
32 String category, 34 String category,
33 String name, 35 String name,
34 String argumentsAsJson) native "Timeline_reportInstantEvent"; 36 String argumentsAsJson) native "Timeline_reportInstantEvent";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698