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

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

Issue 1765563002: Stream blocks of timeline events over the service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « runtime/vm/service.h ('k') | runtime/vm/service/service.md » ('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 #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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/service.h ('k') | runtime/vm/service/service.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698