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" |
(...skipping 23 matching lines...) Expand all Loading... |
34 public: | 34 public: |
35 ServiceIdZone(); | 35 ServiceIdZone(); |
36 virtual ~ServiceIdZone(); | 36 virtual ~ServiceIdZone(); |
37 | 37 |
38 // Returned string will be zone allocated. | 38 // Returned string will be zone allocated. |
39 virtual char* GetServiceId(const Object& obj) = 0; | 39 virtual char* GetServiceId(const Object& obj) = 0; |
40 | 40 |
41 private: | 41 private: |
42 }; | 42 }; |
43 | 43 |
| 44 #define ISOLATE_SERVICE_ID_FORMAT_STRING "isolates/%" Pd64 "" |
44 | 45 |
45 class RingServiceIdZone : public ServiceIdZone { | 46 class RingServiceIdZone : public ServiceIdZone { |
46 public: | 47 public: |
47 RingServiceIdZone(); | 48 RingServiceIdZone(); |
48 virtual ~RingServiceIdZone(); | 49 virtual ~RingServiceIdZone(); |
49 | 50 |
50 void Init(ObjectIdRing* ring, ObjectIdRing::IdPolicy policy); | 51 void Init(ObjectIdRing* ring, ObjectIdRing::IdPolicy policy); |
51 | 52 |
52 // Returned string will be zone allocated. | 53 // Returned string will be zone allocated. |
53 virtual char* GetServiceId(const Object& obj); | 54 virtual char* GetServiceId(const Object& obj); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 static bool needs_isolate_events_; | 214 static bool needs_isolate_events_; |
214 static bool needs_debug_events_; | 215 static bool needs_debug_events_; |
215 static bool needs_gc_events_; | 216 static bool needs_gc_events_; |
216 static bool needs_echo_events_; | 217 static bool needs_echo_events_; |
217 static bool needs_graph_events_; | 218 static bool needs_graph_events_; |
218 }; | 219 }; |
219 | 220 |
220 } // namespace dart | 221 } // namespace dart |
221 | 222 |
222 #endif // RUNTIME_VM_SERVICE_H_ | 223 #endif // RUNTIME_VM_SERVICE_H_ |
OLD | NEW |