OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
9 | 9 |
10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
(...skipping 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2888 * | 2888 * |
2889 * NOTE: If multiple callbacks with the same name are registered, only | 2889 * NOTE: If multiple callbacks with the same name are registered, only |
2890 * the last callback registered will be remembered. | 2890 * the last callback registered will be remembered. |
2891 */ | 2891 */ |
2892 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 2892 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
2893 const char* method, | 2893 const char* method, |
2894 Dart_ServiceRequestCallback callback, | 2894 Dart_ServiceRequestCallback callback, |
2895 void* user_data); | 2895 void* user_data); |
2896 | 2896 |
2897 | 2897 |
2898 /** | |
2899 * Add a duration timeline event to the embedder stream for the current isolate. | |
2900 * | |
2901 * \param label The name of the event. | |
2902 * \param start_micros The start of the duration (in microseconds) | |
2903 * \param end_micros The end of the duration (in microseconds) | |
2904 * | |
2905 * NOTE: On Posix platforms you should use gettimeofday and on Windows platforms | |
2906 * you should use GetSystemTimeAsFileTime to get the time values. | |
2907 */ | |
2908 DART_EXPORT void Dart_TimelineDuration(const char* label, | |
2909 int64_t start_micros, | |
2910 int64_t end_micros); | |
2911 | |
2912 /** | |
2913 * Add an instant timeline event to the embedder stream for the current isolate. | |
2914 * | |
2915 * \param label The name of event. | |
2916 * | |
2917 * NOTE: On Posix platforms this call uses gettimeofday and on Windows platforms | |
2918 * this call uses GetSystemTimeAsFileTime to get the current time. | |
2919 */ | |
2920 DART_EXPORT void Dart_TimelineInstant(const char* label); | |
2921 | |
2922 /** | |
2923 * Adds an asynchronous begin timeline event to the embedder stream for the | |
2924 * current isolate. | |
2925 * | |
2926 * \param label The name of event. | |
2927 * | |
2928 * \return Returns an asynchronous id that must be passed to | |
2929 * Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd. If the asynchronous | |
2930 * id is less than 0 the event was not added to the timeline and subsequent | |
2931 * calls to Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd will become | |
2932 * no-ops. | |
2933 * | |
2934 * NOTE: On Posix platforms this call uses gettimeofday and on Windows platforms | |
2935 * this call uses GetSystemTimeAsFileTime to get the current time. | |
2936 */ | |
2937 DART_EXPORT int64_t Dart_TimelineAsyncBegin(const char* label); | |
2938 | |
2939 | |
2940 /** | |
2941 * Adds an asynchronous begin timeline event to the embedder stream for the | |
2942 * current isolate. | |
2943 * | |
2944 * \param label The name of event. | |
2945 * | |
2946 * \return Returns an asynchronous id that must be passed to | |
2947 * Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd. | |
2948 * | |
2949 * NOTE: On Posix platforms this call uses gettimeofday and on Windows platforms | |
2950 * this call uses GetSystemTimeAsFileTime to get the current time. | |
2951 */ | |
2952 DART_EXPORT void Dart_TimelineAsyncInstant(const char* label, | |
2953 int64_t async_id); | |
2954 | |
2955 | |
2956 /** | |
2957 * Adds an asynchronous begin timeline event to the embedder stream for the | |
2958 * current isolate. | |
2959 * | |
2960 * \param label The name of event. | |
2961 * | |
2962 * \return Returns an asynchronous id that must be passed to | |
2963 * Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd. | |
2964 * | |
2965 * NOTE: On Posix platforms this call uses gettimeofday andww on Windows platfor ms | |
rmacnak
2015/06/10 20:25:14
andww -> and
Cutch
2015/06/10 21:20:57
Done.
| |
2966 * this call uses GetSystemTimeAsFileTime to get the current time. | |
2967 */ | |
2968 DART_EXPORT void Dart_TimelineAsyncEnd(const char* label, int64_t async_id); | |
2969 | |
2898 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2970 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
OLD | NEW |