Chromium Code Reviews| Index: runtime/include/dart_tools_api.h |
| diff --git a/runtime/include/dart_tools_api.h b/runtime/include/dart_tools_api.h |
| index 2ba982c699cc746719fe5179ec5340fe5b5601aa..0e4b4fd1cfad88856ce6095332d363dd377da1d6 100644 |
| --- a/runtime/include/dart_tools_api.h |
| +++ b/runtime/include/dart_tools_api.h |
| @@ -890,7 +890,10 @@ DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id, |
| /** Timeline stream for isolate events */ |
| #define DART_TIMELINE_STREAM_ISOLATE (1 << 4) |
| -/** Enable all timeline stream recording */ |
| +/** Timeline stream for VM events */ |
| +#define DART_TIMELINE_STREAM_VM (1 << 5) |
| + |
| +/** Enable all timeline stream recording for an isolate */ |
| #define DART_TIMELINE_STREAM_ALL (DART_TIMELINE_STREAM_API | \ |
| DART_TIMELINE_STREAM_COMPILER | \ |
| DART_TIMELINE_STREAM_EMBEDDER | \ |
| @@ -909,6 +912,17 @@ DART_EXPORT Dart_Handle Dart_ServiceSendDataEvent(const char* stream_id, |
| */ |
| DART_EXPORT void Dart_TimelineSetRecordedStreams(int64_t stream_mask); |
| + |
| +/** |
| + * Start recording timeline events for the entire VM (including all isolates). |
| + * |
| + * \param stream_mask A bitmask of streams that should be recorded. |
| + * |
| + * NOTE: Calling with 0 disables recording of all streams. |
| + */ |
| +DART_EXPORT void Dart_GlobalTimelineSetRecordedStreams(int64_t stream_mask); |
|
rmacnak
2015/09/21 21:12:35
mention that a global enable beats a local disable
Cutch
2015/09/21 21:19:54
Done.
|
| + |
| + |
| typedef enum { |
| /** Indicates a new stream is being output */ |
| Dart_StreamConsumer_kStart = 0, |