OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 VM_SERVICE_H_ | 5 #ifndef VM_SERVICE_H_ |
6 #define VM_SERVICE_H_ | 6 #define VM_SERVICE_H_ |
7 | 7 |
8 #include "include/dart_tools_api.h" | 8 #include "include/dart_tools_api.h" |
9 | 9 |
10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 const char* event_type, | 177 const char* event_type, |
178 const Object& eventMessage); | 178 const Object& eventMessage); |
179 | 179 |
180 // Does not take ownership of 'data'. | 180 // Does not take ownership of 'data'. |
181 static void SendEventWithData(const char* stream_id, | 181 static void SendEventWithData(const char* stream_id, |
182 const char* event_type, | 182 const char* event_type, |
183 const String& meta, | 183 const String& meta, |
184 const uint8_t* data, | 184 const uint8_t* data, |
185 intptr_t size); | 185 intptr_t size); |
186 | 186 |
187 static void PostEvent(const char* stream_id, | 187 static void PostEvent(Isolate* isolate, |
| 188 const char* stream_id, |
188 const char* kind, | 189 const char* kind, |
189 JSONStream* event); | 190 JSONStream* event); |
190 | 191 |
191 static EmbedderServiceHandler* isolate_service_handler_head_; | 192 static EmbedderServiceHandler* isolate_service_handler_head_; |
192 static EmbedderServiceHandler* root_service_handler_head_; | 193 static EmbedderServiceHandler* root_service_handler_head_; |
193 static Dart_ServiceStreamListenCallback stream_listen_callback_; | 194 static Dart_ServiceStreamListenCallback stream_listen_callback_; |
194 static Dart_ServiceStreamCancelCallback stream_cancel_callback_; | 195 static Dart_ServiceStreamCancelCallback stream_cancel_callback_; |
195 static Dart_GetVMServiceAssetsArchive get_service_assets_callback_; | 196 static Dart_GetVMServiceAssetsArchive get_service_assets_callback_; |
196 | 197 |
197 static bool needs_isolate_events_; | 198 static bool needs_isolate_events_; |
198 static bool needs_debug_events_; | 199 static bool needs_debug_events_; |
199 static bool needs_gc_events_; | 200 static bool needs_gc_events_; |
200 static bool needs_echo_events_; | 201 static bool needs_echo_events_; |
201 static bool needs_graph_events_; | 202 static bool needs_graph_events_; |
202 }; | 203 }; |
203 | 204 |
204 } // namespace dart | 205 } // namespace dart |
205 | 206 |
206 #endif // VM_SERVICE_H_ | 207 #endif // VM_SERVICE_H_ |
OLD | NEW |