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

Unified Diff: runtime/vm/json_stream.h

Issue 1398823002: We can now name the current VM using the service protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more Created 5 years, 2 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/observatory/tests/service/set_vm_name_rpc_test.dart ('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 78f6fdd0e09ed4b39499f950e26336472f7c3a2e..cd8fe62d3f200f53d33f63c8c21e9e8164d437c4 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -138,6 +138,7 @@ class JSONStream : ValueObject {
void PrintValue(Isolate* isolate, bool ref = true);
bool PrintValueStr(const String& s, intptr_t limit);
void PrintValue(TimelineEvent* timeline_event);
+ void PrintValueVM(bool ref = true);
void PrintServiceId(const Object& o);
void PrintPropertyBool(const char* name, bool b);
@@ -162,6 +163,7 @@ class JSONStream : ValueObject {
void PrintProperty(const char* name, MessageQueue* queue);
void PrintProperty(const char* name, Isolate* isolate);
void PrintProperty(const char* name, TimelineEvent* timeline_event);
+ void PrintPropertyVM(const char* name, bool ref = true);
void PrintPropertyName(const char* name);
void PrintCommaIfNeeded();
bool NeedComma();
@@ -276,6 +278,9 @@ class JSONObject : public ValueObject {
void AddProperty(const char* name, TimelineEvent* timeline_event) const {
stream_->PrintProperty(name, timeline_event);
}
+ void AddPropertyVM(const char* name, bool ref = true) const {
+ stream_->PrintPropertyVM(name, ref);
+ }
void AddPropertyF(const char* name, const char* format, ...) const
PRINTF_ATTRIBUTE(3, 4);
@@ -336,6 +341,9 @@ class JSONArray : public ValueObject {
void AddValue(TimelineEvent* timeline_event) const {
stream_->PrintValue(timeline_event);
}
+ void AddValueVM(bool ref = true) const {
+ stream_->PrintValueVM(ref);
+ }
void AddValueF(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
private:
« no previous file with comments | « runtime/observatory/tests/service/set_vm_name_rpc_test.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698