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

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

Issue 1241683005: Support piping log data over the service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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_EVENT_H_ 5 #ifndef VM_SERVICE_EVENT_H_
6 #define VM_SERVICE_EVENT_H_ 6 #define VM_SERVICE_EVENT_H_
7 7
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 9
10 class DebuggerEvent; 10 class DebuggerEvent;
(...skipping 16 matching lines...) Expand all
27 kBreakpointAdded, 27 kBreakpointAdded,
28 kBreakpointResolved, 28 kBreakpointResolved,
29 kBreakpointRemoved, 29 kBreakpointRemoved,
30 kInspect, 30 kInspect,
31 kDebuggerSettingsUpdate, 31 kDebuggerSettingsUpdate,
32 32
33 kGC, 33 kGC,
34 34
35 kEmbedder, 35 kEmbedder,
36 36
37 kLogging,
38
37 kIllegal, 39 kIllegal,
38 }; 40 };
39 41
40 ServiceEvent(Isolate* isolate, EventKind event_kind) 42 ServiceEvent(Isolate* isolate, EventKind event_kind)
41 : isolate_(isolate), 43 : isolate_(isolate),
42 kind_(event_kind), 44 kind_(event_kind),
43 embedder_kind_(NULL), 45 embedder_kind_(NULL),
44 embedder_stream_id_(NULL), 46 embedder_stream_id_(NULL),
45 breakpoint_(NULL), 47 breakpoint_(NULL),
46 top_frame_(NULL), 48 top_frame_(NULL),
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return bytes_length_; 135 return bytes_length_;
134 } 136 }
135 137
136 void set_bytes(const uint8_t* bytes, intptr_t bytes_length) { 138 void set_bytes(const uint8_t* bytes, intptr_t bytes_length) {
137 bytes_ = bytes; 139 bytes_ = bytes;
138 bytes_length_ = bytes_length; 140 bytes_length_ = bytes_length;
139 } 141 }
140 142
141 void PrintJSON(JSONStream* js) const; 143 void PrintJSON(JSONStream* js) const;
142 144
145 void PrintJSONHeader(JSONObject* jsobj) const;
146
143 private: 147 private:
144 Isolate* isolate_; 148 Isolate* isolate_;
145 EventKind kind_; 149 EventKind kind_;
146 const char* embedder_kind_; 150 const char* embedder_kind_;
147 const char* embedder_stream_id_; 151 const char* embedder_stream_id_;
148 Breakpoint* breakpoint_; 152 Breakpoint* breakpoint_;
149 ActivationFrame* top_frame_; 153 ActivationFrame* top_frame_;
150 const Object* exception_; 154 const Object* exception_;
151 const Object* async_continuation_; 155 const Object* async_continuation_;
152 const Object* inspectee_; 156 const Object* inspectee_;
153 const Heap::GCStats* gc_stats_; 157 const Heap::GCStats* gc_stats_;
154 const uint8_t* bytes_; 158 const uint8_t* bytes_;
155 intptr_t bytes_length_; 159 intptr_t bytes_length_;
156 }; 160 };
157 161
158 } // namespace dart 162 } // namespace dart
159 163
160 #endif // VM_SERVICE_EVENT_H_ 164 #endif // VM_SERVICE_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698