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

Unified Diff: runtime/vm/json_stream.h

Issue 164503002: Trace VM service requests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/bin/vmservice/client/HACKING.txt ('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 7ed98f0d96407aacd25fc3a698ea8bbfc8728bae..548e5538ad05c42187a14399dc9732dcea2bc27e 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -12,17 +12,26 @@
namespace dart {
class Field;
+class GrowableObjectArray;
class Instance;
class JSONArray;
class JSONObject;
class Object;
class SourceBreakpoint;
+class Zone;
class JSONStream : ValueObject {
public:
explicit JSONStream(intptr_t buf_size = 256);
~JSONStream();
+ void Setup(Zone* zone,
+ const Instance& reply_port,
+ const GrowableObjectArray& path,
+ const GrowableObjectArray& option_keys,
+ const GrowableObjectArray& option_values);
+ void PostReply();
+
TextBuffer* buffer() { return &buffer_; }
const char* ToCString() { return buffer_.buf(); }
@@ -81,11 +90,13 @@ class JSONStream : ValueObject {
intptr_t open_objects_;
TextBuffer buffer_;
Dart_Port reply_port_;
+ const char* command_;
const char** arguments_;
intptr_t num_arguments_;
const char** option_keys_;
const char** option_values_;
intptr_t num_options_;
+ int64_t setup_time_micros_;
friend class JSONObject;
friend class JSONArray;
« no previous file with comments | « runtime/bin/vmservice/client/HACKING.txt ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698