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

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

Issue 1122503003: Display isolate message queue in Observatory debugger (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/message.h » ('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 "platform/assert.h" 5 #include "platform/assert.h"
6 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/json_stream.h" 9 #include "vm/json_stream.h"
10 #include "vm/message.h" 10 #include "vm/message.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 event->PrintJSON(this); 266 event->PrintJSON(this);
267 } 267 }
268 268
269 269
270 void JSONStream::PrintValue(Metric* metric) { 270 void JSONStream::PrintValue(Metric* metric) {
271 PrintCommaIfNeeded(); 271 PrintCommaIfNeeded();
272 metric->PrintJSON(this); 272 metric->PrintJSON(this);
273 } 273 }
274 274
275 275
276 void JSONStream::PrintValue(MessageQueue* queue) {
277 PrintCommaIfNeeded();
278 queue->PrintJSON(this);
279 }
280
281
276 void JSONStream::PrintValue(Isolate* isolate, bool ref) { 282 void JSONStream::PrintValue(Isolate* isolate, bool ref) {
277 PrintCommaIfNeeded(); 283 PrintCommaIfNeeded();
278 isolate->PrintJSON(this, ref); 284 isolate->PrintJSON(this, ref);
279 } 285 }
280 286
281 287
282 void JSONStream::PrintPropertyBool(const char* name, bool b) { 288 void JSONStream::PrintPropertyBool(const char* name, bool b) {
283 PrintPropertyName(name); 289 PrintPropertyName(name);
284 PrintValueBool(b); 290 PrintValueBool(b);
285 } 291 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 PrintPropertyName(name); 341 PrintPropertyName(name);
336 PrintValue(bpt); 342 PrintValue(bpt);
337 } 343 }
338 344
339 345
340 void JSONStream::PrintProperty(const char* name, Metric* metric) { 346 void JSONStream::PrintProperty(const char* name, Metric* metric) {
341 PrintPropertyName(name); 347 PrintPropertyName(name);
342 PrintValue(metric); 348 PrintValue(metric);
343 } 349 }
344 350
351
352 void JSONStream::PrintProperty(const char* name, MessageQueue* queue) {
353 PrintPropertyName(name);
354 PrintValue(queue);
355 }
356
357
345 void JSONStream::PrintProperty(const char* name, Isolate* isolate) { 358 void JSONStream::PrintProperty(const char* name, Isolate* isolate) {
346 PrintPropertyName(name); 359 PrintPropertyName(name);
347 PrintValue(isolate); 360 PrintValue(isolate);
348 } 361 }
349 362
350 363
351 void JSONStream::PrintfProperty(const char* name, const char* format, ...) { 364 void JSONStream::PrintfProperty(const char* name, const char* format, ...) {
352 PrintPropertyName(name); 365 PrintPropertyName(name);
353 va_list args; 366 va_list args;
354 va_start(args, format); 367 va_start(args, format);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 intptr_t len2 = OS::VSNPrint(p, len+1, format, args); 510 intptr_t len2 = OS::VSNPrint(p, len+1, format, args);
498 va_end(args); 511 va_end(args);
499 ASSERT(len == len2); 512 ASSERT(len == len2);
500 stream_->buffer_.AddChar('"'); 513 stream_->buffer_.AddChar('"');
501 stream_->AddEscapedUTF8String(p); 514 stream_->AddEscapedUTF8String(p);
502 stream_->buffer_.AddChar('"'); 515 stream_->buffer_.AddChar('"');
503 free(p); 516 free(p);
504 } 517 }
505 518
506 } // namespace dart 519 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698