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

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

Issue 1294023009: Switch to a VM wide timeline recorder (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months 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
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 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 21 matching lines...) Expand all
32 32
33 // Returned string will be zone allocated. 33 // Returned string will be zone allocated.
34 virtual char* GetServiceId(const Object& obj) = 0; 34 virtual char* GetServiceId(const Object& obj) = 0;
35 35
36 private: 36 private:
37 }; 37 };
38 38
39 39
40 class RingServiceIdZone : public ServiceIdZone { 40 class RingServiceIdZone : public ServiceIdZone {
41 public: 41 public:
42 explicit RingServiceIdZone(ObjectIdRing* ring, ObjectIdRing::IdPolicy policy); 42 RingServiceIdZone();
43 virtual ~RingServiceIdZone(); 43 virtual ~RingServiceIdZone();
44 44
45 void Init(ObjectIdRing* ring, ObjectIdRing::IdPolicy policy);
46
45 // Returned string will be zone allocated. 47 // Returned string will be zone allocated.
46 virtual char* GetServiceId(const Object& obj); 48 virtual char* GetServiceId(const Object& obj);
47 49
48 void set_policy(ObjectIdRing::IdPolicy policy) { 50 void set_policy(ObjectIdRing::IdPolicy policy) {
49 policy_ = policy; 51 policy_ = policy;
50 } 52 }
51 53
52 ObjectIdRing::IdPolicy policy() const { 54 ObjectIdRing::IdPolicy policy() const {
53 return policy_; 55 return policy_;
54 } 56 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 static bool needs_isolate_events_; 174 static bool needs_isolate_events_;
173 static bool needs_debug_events_; 175 static bool needs_debug_events_;
174 static bool needs_gc_events_; 176 static bool needs_gc_events_;
175 static bool needs_echo_events_; 177 static bool needs_echo_events_;
176 static bool needs_graph_events_; 178 static bool needs_graph_events_;
177 }; 179 };
178 180
179 } // namespace dart 181 } // namespace dart
180 182
181 #endif // VM_SERVICE_H_ 183 #endif // VM_SERVICE_H_
OLDNEW
« runtime/vm/dart.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698