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 #include "vm/service.h" | 5 #include "vm/service.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // These are the set of streams known to the core VM. | 116 // These are the set of streams known to the core VM. |
117 StreamInfo Service::vm_stream("VM"); | 117 StreamInfo Service::vm_stream("VM"); |
118 StreamInfo Service::isolate_stream("Isolate"); | 118 StreamInfo Service::isolate_stream("Isolate"); |
119 StreamInfo Service::debug_stream("Debug"); | 119 StreamInfo Service::debug_stream("Debug"); |
120 StreamInfo Service::gc_stream("GC"); | 120 StreamInfo Service::gc_stream("GC"); |
121 StreamInfo Service::echo_stream("_Echo"); | 121 StreamInfo Service::echo_stream("_Echo"); |
122 StreamInfo Service::graph_stream("_Graph"); | 122 StreamInfo Service::graph_stream("_Graph"); |
123 StreamInfo Service::logging_stream("_Logging"); | 123 StreamInfo Service::logging_stream("_Logging"); |
124 StreamInfo Service::extension_stream("Extension"); | 124 StreamInfo Service::extension_stream("Extension"); |
| 125 StreamInfo Service::timeline_stream("Timeline"); |
125 | 126 |
126 static StreamInfo* streams_[] = { | 127 static StreamInfo* streams_[] = { |
127 &Service::vm_stream, | 128 &Service::vm_stream, |
128 &Service::isolate_stream, | 129 &Service::isolate_stream, |
129 &Service::debug_stream, | 130 &Service::debug_stream, |
130 &Service::gc_stream, | 131 &Service::gc_stream, |
131 &Service::echo_stream, | 132 &Service::echo_stream, |
132 &Service::graph_stream, | 133 &Service::graph_stream, |
133 &Service::logging_stream, | 134 &Service::logging_stream, |
134 &Service::extension_stream, | 135 &Service::extension_stream, |
| 136 &Service::timeline_stream, |
135 }; | 137 }; |
136 | 138 |
137 | 139 |
138 bool Service::ListenStream(const char* stream_id) { | 140 bool Service::ListenStream(const char* stream_id) { |
139 if (FLAG_trace_service) { | 141 if (FLAG_trace_service) { |
140 OS::Print("vm-service: starting stream '%s'\n", | 142 OS::Print("vm-service: starting stream '%s'\n", |
141 stream_id); | 143 stream_id); |
142 } | 144 } |
143 intptr_t num_streams = sizeof(streams_) / | 145 intptr_t num_streams = sizeof(streams_) / |
144 sizeof(streams_[0]); | 146 sizeof(streams_[0]); |
(...skipping 3961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4106 if (strcmp(method_name, method.name) == 0) { | 4108 if (strcmp(method_name, method.name) == 0) { |
4107 return &method; | 4109 return &method; |
4108 } | 4110 } |
4109 } | 4111 } |
4110 return NULL; | 4112 return NULL; |
4111 } | 4113 } |
4112 | 4114 |
4113 #endif // !PRODUCT | 4115 #endif // !PRODUCT |
4114 | 4116 |
4115 } // namespace dart | 4117 } // namespace dart |
OLD | NEW |