Index: runtime/include/dart_tools_api.h |
diff --git a/runtime/include/dart_tools_api.h b/runtime/include/dart_tools_api.h |
index 0e279e0daded57c2e9de5299ed0997edd9a18f85..6d1567c7231e300561db55ba0d68272d9190d7c1 100644 |
--- a/runtime/include/dart_tools_api.h |
+++ b/runtime/include/dart_tools_api.h |
@@ -891,19 +891,22 @@ DART_EXPORT int64_t Dart_TimelineGetMicros(); |
#define DART_TIMELINE_STREAM_API (1 << 0) |
/** Timeline stream for compiler events */ |
#define DART_TIMELINE_STREAM_COMPILER (1 << 1) |
+/** Timeline stream for Dart provided events */ |
+#define DART_TIMELINE_STREAM_DART (1 << 2) |
/** Timeline stream for embedder provided events */ |
-#define DART_TIMELINE_STREAM_EMBEDDER (1 << 2) |
+#define DART_TIMELINE_STREAM_EMBEDDER (1 << 3) |
/** Timeline stream for GC events */ |
-#define DART_TIMELINE_STREAM_GC (1 << 3) |
+#define DART_TIMELINE_STREAM_GC (1 << 4) |
/** Timeline stream for isolate events */ |
-#define DART_TIMELINE_STREAM_ISOLATE (1 << 4) |
+#define DART_TIMELINE_STREAM_ISOLATE (1 << 5) |
/** Timeline stream for VM events */ |
-#define DART_TIMELINE_STREAM_VM (1 << 5) |
+#define DART_TIMELINE_STREAM_VM (1 << 6) |
/** Enable all timeline stream recording for an isolate */ |
#define DART_TIMELINE_STREAM_ALL (DART_TIMELINE_STREAM_API | \ |
DART_TIMELINE_STREAM_COMPILER | \ |
+ DART_TIMELINE_STREAM_DART | \ |
DART_TIMELINE_STREAM_EMBEDDER | \ |
DART_TIMELINE_STREAM_GC | \ |
DART_TIMELINE_STREAM_ISOLATE) |
@@ -966,7 +969,7 @@ typedef enum { |
typedef void (*Dart_StreamConsumer)( |
Dart_StreamConsumer_State state, |
const char* stream_name, |
- uint8_t* buffer, |
+ const uint8_t* buffer, |
intptr_t buffer_length, |
void* stream_callback_data); |