OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef RUNTIME_INCLUDE_DART_TOOLS_API_H_ | 5 #ifndef RUNTIME_INCLUDE_DART_TOOLS_API_H_ |
6 #define RUNTIME_INCLUDE_DART_TOOLS_API_H_ | 6 #define RUNTIME_INCLUDE_DART_TOOLS_API_H_ |
7 | 7 |
8 #include "dart_api.h" | 8 #include "dart_api.h" |
9 | 9 |
10 /** \mainpage Dart Tools Embedding API Reference | 10 /** \mainpage Dart Tools Embedding API Reference |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 | 1017 |
1018 typedef enum { | 1018 typedef enum { |
1019 Dart_Timeline_Event_Begin, // Phase = 'B'. | 1019 Dart_Timeline_Event_Begin, // Phase = 'B'. |
1020 Dart_Timeline_Event_End, // Phase = 'E'. | 1020 Dart_Timeline_Event_End, // Phase = 'E'. |
1021 Dart_Timeline_Event_Instant, // Phase = 'i'. | 1021 Dart_Timeline_Event_Instant, // Phase = 'i'. |
1022 Dart_Timeline_Event_Duration, // Phase = 'X'. | 1022 Dart_Timeline_Event_Duration, // Phase = 'X'. |
1023 Dart_Timeline_Event_Async_Begin, // Phase = 'b'. | 1023 Dart_Timeline_Event_Async_Begin, // Phase = 'b'. |
1024 Dart_Timeline_Event_Async_End, // Phase = 'e'. | 1024 Dart_Timeline_Event_Async_End, // Phase = 'e'. |
1025 Dart_Timeline_Event_Async_Instant, // Phase = 'n'. | 1025 Dart_Timeline_Event_Async_Instant, // Phase = 'n'. |
1026 Dart_Timeline_Event_Counter, // Phase = 'C'. | 1026 Dart_Timeline_Event_Counter, // Phase = 'C'. |
| 1027 Dart_Timeline_Event_Flow_Begin, // Phase = 's'. |
| 1028 Dart_Timeline_Event_Flow_Step, // Phase = 't'. |
| 1029 Dart_Timeline_Event_Flow_End, // Phase = 'f'. |
1027 } Dart_Timeline_Event_Type; | 1030 } Dart_Timeline_Event_Type; |
1028 | 1031 |
1029 /** | 1032 /** |
1030 * Add a timeline event to the embedder stream. | 1033 * Add a timeline event to the embedder stream. |
1031 * | 1034 * |
1032 * \param label The name of the evnet. | 1035 * \param label The name of the evnet. |
1033 * \param timestamp0 The first timestamp of the event. | 1036 * \param timestamp0 The first timestamp of the event. |
1034 * \param timestamp1_or_async_id The second timestamp of the event or | 1037 * \param timestamp1_or_async_id The second timestamp of the event or |
1035 * the async id. | 1038 * the async id. |
1036 * \param argument_count The number of argument names and values. | 1039 * \param argument_count The number of argument names and values. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 * \param start_recording See Dart_EmbedderTimelineStartRecording. | 1075 * \param start_recording See Dart_EmbedderTimelineStartRecording. |
1073 * \param stop_recording See Dart_EmbedderTimelineStopRecording. | 1076 * \param stop_recording See Dart_EmbedderTimelineStopRecording. |
1074 * | 1077 * |
1075 * NOTE: To avoid races, this should be called before Dart_Initialize. | 1078 * NOTE: To avoid races, this should be called before Dart_Initialize. |
1076 */ | 1079 */ |
1077 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks( | 1080 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks( |
1078 Dart_EmbedderTimelineStartRecording start_recording, | 1081 Dart_EmbedderTimelineStartRecording start_recording, |
1079 Dart_EmbedderTimelineStopRecording stop_recording); | 1082 Dart_EmbedderTimelineStopRecording stop_recording); |
1080 | 1083 |
1081 #endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_ | 1084 #endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_ |
OLD | NEW |