Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Side by Side Diff: runtime/vm/service.h

Issue 2542003002: Add getIsolateID to Service class in dart:developer (Closed)
Patch Set: fix test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.cc ('k') | sdk/lib/_internal/js_runtime/lib/developer_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | sdk/lib/_internal/js_runtime/lib/developer_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698