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

Unified Diff: runtime/vm/json_stream.cc

Issue 271153002: Add pause/resume for isolates in vmservice/observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index 57a675d77b2fdd87fc8b35d90bdebe24f5eb0f6d..afbe30e35f91b850c8fb5d3a7f9076bd7cf8bf59 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -247,6 +247,12 @@ void JSONStream::PrintValue(SourceBreakpoint* bpt) {
}
+void JSONStream::PrintValue(const DebuggerEvent* event) {
+ PrintCommaIfNeeded();
+ event->PrintJSON(this);
+}
+
+
void JSONStream::PrintValue(Isolate* isolate, bool ref) {
PrintCommaIfNeeded();
isolate->PrintJSON(this, ref);
@@ -283,6 +289,18 @@ void JSONStream::PrintProperty(const char* name, const char* s) {
}
+void JSONStream::PrintProperty(const char* name, const DebuggerEvent* event) {
+ PrintPropertyName(name);
+ PrintValue(event);
+}
+
+
+void JSONStream::PrintProperty(const char* name, Isolate* isolate) {
+ PrintPropertyName(name);
+ PrintValue(isolate);
+}
+
+
void JSONStream::PrintfProperty(const char* name, const char* format, ...) {
PrintPropertyName(name);
va_list args;
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698