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

Unified Diff: runtime/vm/json_stream.h

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/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.h
diff --git a/runtime/vm/json_stream.h b/runtime/vm/json_stream.h
index 60d40258566651b22f0ca6224bbf8ab53fa8dddb..1e40f6625088f5a92ee1f87a9fa2b4407f117c0d 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -11,6 +11,7 @@
namespace dart {
+class DebuggerEvent;
class Field;
class GrowableObjectArray;
class Instance;
@@ -84,6 +85,7 @@ class JSONStream : ValueObject {
void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
void PrintValue(const Object& o, bool ref = true);
void PrintValue(SourceBreakpoint* bpt);
+ void PrintValue(const DebuggerEvent* event);
void PrintValue(Isolate* isolate, bool ref = true);
void PrintPropertyBool(const char* name, bool b);
@@ -95,6 +97,8 @@ class JSONStream : ValueObject {
PRINTF_ATTRIBUTE(3, 4);
void PrintProperty(const char* name, const Object& o, bool ref = true);
+ void PrintProperty(const char* name, const DebuggerEvent* event);
+ void PrintProperty(const char* name, Isolate* isolate);
void PrintPropertyName(const char* name);
void PrintCommaIfNeeded();
bool NeedComma();
@@ -151,6 +155,12 @@ class JSONObject : public ValueObject {
void AddProperty(const char* name, const Object& obj, bool ref = true) const {
stream_->PrintProperty(name, obj, ref);
}
+ void AddProperty(const char* name, const DebuggerEvent* event) const {
+ stream_->PrintProperty(name, event);
+ }
+ void AddProperty(const char* name, Isolate* isolate) const {
+ stream_->PrintProperty(name, isolate);
+ }
void AddPropertyF(const char* name, const char* format, ...) const
PRINTF_ATTRIBUTE(3, 4);
@@ -193,6 +203,9 @@ class JSONArray : public ValueObject {
void AddValue(SourceBreakpoint* bpt) const {
stream_->PrintValue(bpt);
}
+ void AddValue(const DebuggerEvent* event) const {
+ stream_->PrintValue(event);
+ }
void AddValueF(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
private:
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698