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

Side by Side Diff: runtime/include/dart_tools_api.h

Issue 1360813002: Add API to get the VM global timeline (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 * \param consumer A Dart_StreamConsumer. 969 * \param consumer A Dart_StreamConsumer.
970 * \param user_data User data passed into consumer. 970 * \param user_data User data passed into consumer.
971 * 971 *
972 * NOTE: The trace-event format is documented here: https://goo.gl/hDZw5M 972 * NOTE: The trace-event format is documented here: https://goo.gl/hDZw5M
973 * 973 *
974 * \return True if a stream was output. 974 * \return True if a stream was output.
975 */ 975 */
976 DART_EXPORT bool Dart_TimelineGetTrace(Dart_StreamConsumer consumer, 976 DART_EXPORT bool Dart_TimelineGetTrace(Dart_StreamConsumer consumer,
977 void* user_data); 977 void* user_data);
978 978
979
980 /**
981 * Get the timeline for entire VM (including all isolates).
982 *
983 * NOTE: The timeline retrieved from this API call may not include the most
984 * recent events.
985 *
986 * \param consumer A Dart_StreamConsumer.
987 * \param user_data User data passed into consumer.
988 *
989 * NOTE: The trace-event format is documented here: https://goo.gl/hDZw5M
990 *
991 * \return True if a stream was output.
992 */
993 DART_EXPORT bool Dart_GlobalTimelineGetTrace(Dart_StreamConsumer consumer,
994 void* user_data);
995
979 /** 996 /**
980 * Add a duration timeline event to the embedder stream for the current isolate. 997 * Add a duration timeline event to the embedder stream for the current isolate.
981 * 998 *
982 * \param label The name of the event. 999 * \param label The name of the event.
983 * \param start_micros The start of the duration (in microseconds) 1000 * \param start_micros The start of the duration (in microseconds)
984 * \param end_micros The end of the duration (in microseconds) 1001 * \param end_micros The end of the duration (in microseconds)
985 * 1002 *
986 * NOTE: On Posix platforms you should use gettimeofday and on Windows platforms 1003 * NOTE: On Posix platforms you should use gettimeofday and on Windows platforms
987 * you should use GetSystemTimeAsFileTime to get the time values. 1004 * you should use GetSystemTimeAsFileTime to get the time values.
988 */ 1005 */
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 * \return Returns an asynchronous id that must be passed to 1063 * \return Returns an asynchronous id that must be passed to
1047 * Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd. 1064 * Dart_TimelineAsyncInstant and Dart_TimelineAsyncEnd.
1048 * 1065 *
1049 * NOTE: On Posix platforms this call uses gettimeofday and on Windows platforms 1066 * NOTE: On Posix platforms this call uses gettimeofday and on Windows platforms
1050 * this call uses GetSystemTimeAsFileTime to get the current time. 1067 * this call uses GetSystemTimeAsFileTime to get the current time.
1051 */ 1068 */
1052 DART_EXPORT Dart_Handle Dart_TimelineAsyncEnd(const char* label, 1069 DART_EXPORT Dart_Handle Dart_TimelineAsyncEnd(const char* label,
1053 int64_t async_id); 1070 int64_t async_id);
1054 1071
1055 #endif // INCLUDE_DART_TOOLS_API_H_ 1072 #endif // INCLUDE_DART_TOOLS_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698