| 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 RUNTIME_VM_SERVICE_H_ | 5 #ifndef RUNTIME_VM_SERVICE_H_ |
| 6 #define RUNTIME_VM_SERVICE_H_ | 6 #define RUNTIME_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" |
| 11 #include "vm/object_graph.h" |
| 11 #include "vm/object_id_ring.h" | 12 #include "vm/object_id_ring.h" |
| 12 #include "vm/os_thread.h" | 13 #include "vm/os_thread.h" |
| 13 | 14 |
| 14 namespace dart { | 15 namespace dart { |
| 15 | 16 |
| 16 #define SERVICE_PROTOCOL_MAJOR_VERSION 3 | 17 #define SERVICE_PROTOCOL_MAJOR_VERSION 3 |
| 17 #define SERVICE_PROTOCOL_MINOR_VERSION 5 | 18 #define SERVICE_PROTOCOL_MINOR_VERSION 5 |
| 18 | 19 |
| 19 class Array; | 20 class Array; |
| 20 class EmbedderServiceHandler; | 21 class EmbedderServiceHandler; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void* user_data); | 101 void* user_data); |
| 101 | 102 |
| 102 static void SetEmbedderStreamCallbacks( | 103 static void SetEmbedderStreamCallbacks( |
| 103 Dart_ServiceStreamListenCallback listen_callback, | 104 Dart_ServiceStreamListenCallback listen_callback, |
| 104 Dart_ServiceStreamCancelCallback cancel_callback); | 105 Dart_ServiceStreamCancelCallback cancel_callback); |
| 105 | 106 |
| 106 static void SetGetServiceAssetsCallback( | 107 static void SetGetServiceAssetsCallback( |
| 107 Dart_GetVMServiceAssetsArchive get_service_assets); | 108 Dart_GetVMServiceAssetsArchive get_service_assets); |
| 108 | 109 |
| 109 static void SendEchoEvent(Isolate* isolate, const char* text); | 110 static void SendEchoEvent(Isolate* isolate, const char* text); |
| 110 static void SendGraphEvent(Thread* thread, bool collect_garbage); | 111 static void SendGraphEvent(Thread* thread, |
| 112 ObjectGraph::SnapshotRoots roots, |
| 113 bool collect_garbage); |
| 111 static void SendInspectEvent(Isolate* isolate, const Object& inspectee); | 114 static void SendInspectEvent(Isolate* isolate, const Object& inspectee); |
| 112 | 115 |
| 113 static void SendEmbedderEvent(Isolate* isolate, | 116 static void SendEmbedderEvent(Isolate* isolate, |
| 114 const char* stream_id, | 117 const char* stream_id, |
| 115 const char* event_kind, | 118 const char* event_kind, |
| 116 const uint8_t* bytes, | 119 const uint8_t* bytes, |
| 117 intptr_t bytes_len); | 120 intptr_t bytes_len); |
| 118 | 121 |
| 119 static void SendLogEvent(Isolate* isolate, | 122 static void SendLogEvent(Isolate* isolate, |
| 120 int64_t sequence_number, | 123 int64_t sequence_number, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 static bool needs_isolate_events_; | 213 static bool needs_isolate_events_; |
| 211 static bool needs_debug_events_; | 214 static bool needs_debug_events_; |
| 212 static bool needs_gc_events_; | 215 static bool needs_gc_events_; |
| 213 static bool needs_echo_events_; | 216 static bool needs_echo_events_; |
| 214 static bool needs_graph_events_; | 217 static bool needs_graph_events_; |
| 215 }; | 218 }; |
| 216 | 219 |
| 217 } // namespace dart | 220 } // namespace dart |
| 218 | 221 |
| 219 #endif // RUNTIME_VM_SERVICE_H_ | 222 #endif // RUNTIME_VM_SERVICE_H_ |
| OLD | NEW |