| 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 INCLUDE_DART_TOOLS_API_H_ | 5 #ifndef INCLUDE_DART_TOOLS_API_H_ |
| 6 #define INCLUDE_DART_TOOLS_API_H_ | 6 #define INCLUDE_DART_TOOLS_API_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 /** \mainpage Dart Tools Embedding API Reference | 10 /** \mainpage Dart Tools Embedding API Reference |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 * \return A timestamp that can be passed to the timeline system. | 887 * \return A timestamp that can be passed to the timeline system. |
| 888 */ | 888 */ |
| 889 DART_EXPORT int64_t Dart_TimelineGetMicros(); | 889 DART_EXPORT int64_t Dart_TimelineGetMicros(); |
| 890 | 890 |
| 891 /** Timeline stream for Dart API calls */ | 891 /** Timeline stream for Dart API calls */ |
| 892 #define DART_TIMELINE_STREAM_API (1 << 0) | 892 #define DART_TIMELINE_STREAM_API (1 << 0) |
| 893 /** Timeline stream for compiler events */ | 893 /** Timeline stream for compiler events */ |
| 894 #define DART_TIMELINE_STREAM_COMPILER (1 << 1) | 894 #define DART_TIMELINE_STREAM_COMPILER (1 << 1) |
| 895 /** Timeline stream for Dart provided events */ | 895 /** Timeline stream for Dart provided events */ |
| 896 #define DART_TIMELINE_STREAM_DART (1 << 2) | 896 #define DART_TIMELINE_STREAM_DART (1 << 2) |
| 897 /** Timeline stream for debugger provided events */ |
| 898 #define DART_TIMELINE_STREAM_DEBUGGER (1 << 3) |
| 897 /** Timeline stream for embedder provided events */ | 899 /** Timeline stream for embedder provided events */ |
| 898 #define DART_TIMELINE_STREAM_EMBEDDER (1 << 3) | 900 #define DART_TIMELINE_STREAM_EMBEDDER (1 << 4) |
| 899 /** Timeline stream for GC events */ | 901 /** Timeline stream for GC events */ |
| 900 #define DART_TIMELINE_STREAM_GC (1 << 4) | 902 #define DART_TIMELINE_STREAM_GC (1 << 5) |
| 901 /** Timeline stream for isolate events */ | 903 /** Timeline stream for isolate events */ |
| 902 #define DART_TIMELINE_STREAM_ISOLATE (1 << 5) | 904 #define DART_TIMELINE_STREAM_ISOLATE (1 << 6) |
| 903 | 905 |
| 904 /** Timeline stream for VM events */ | 906 /** Timeline stream for VM events */ |
| 905 #define DART_TIMELINE_STREAM_VM (1 << 6) | 907 #define DART_TIMELINE_STREAM_VM (1 << 7) |
| 906 | 908 |
| 907 /** Enable all timeline stream recording for an isolate */ | 909 /** Enable all timeline stream recording for an isolate */ |
| 908 #define DART_TIMELINE_STREAM_ALL (DART_TIMELINE_STREAM_API | \ | 910 #define DART_TIMELINE_STREAM_ALL (DART_TIMELINE_STREAM_API | \ |
| 909 DART_TIMELINE_STREAM_COMPILER | \ | 911 DART_TIMELINE_STREAM_COMPILER | \ |
| 910 DART_TIMELINE_STREAM_DART | \ | 912 DART_TIMELINE_STREAM_DART | \ |
| 913 DART_TIMELINE_STREAM_DEBUGGER | \ |
| 911 DART_TIMELINE_STREAM_EMBEDDER | \ | 914 DART_TIMELINE_STREAM_EMBEDDER | \ |
| 912 DART_TIMELINE_STREAM_GC | \ | 915 DART_TIMELINE_STREAM_GC | \ |
| 913 DART_TIMELINE_STREAM_ISOLATE) | 916 DART_TIMELINE_STREAM_ISOLATE) |
| 914 | 917 |
| 915 /** Disable all timeline stream recording */ | 918 /** Disable all timeline stream recording */ |
| 916 #define DART_TIMELINE_STREAM_DISABLE 0 | 919 #define DART_TIMELINE_STREAM_DISABLE 0 |
| 917 | 920 |
| 918 /** | 921 /** |
| 919 * Start recording timeline events for the current isolate. | 922 * Start recording timeline events for the current isolate. |
| 920 * | 923 * |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 * | 1072 * |
| 1070 * \return Returns an asynchronous id that must be passed to | 1073 * \return Returns an asynchronous id that must be passed to |
| 1071 * Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd. | 1074 * Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd. |
| 1072 * | 1075 * |
| 1073 * NOTE: All timestamps should be acquired from Dart_TimelineGetMicros. | 1076 * NOTE: All timestamps should be acquired from Dart_TimelineGetMicros. |
| 1074 */ | 1077 */ |
| 1075 DART_EXPORT Dart_Handle Dart_TimelineAsyncEnd(const char* label, | 1078 DART_EXPORT Dart_Handle Dart_TimelineAsyncEnd(const char* label, |
| 1076 int64_t async_id); | 1079 int64_t async_id); |
| 1077 | 1080 |
| 1078 #endif // INCLUDE_DART_TOOLS_API_H_ | 1081 #endif // INCLUDE_DART_TOOLS_API_H_ |
| OLD | NEW |