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

Unified Diff: runtime/vm/json_stream.cc

Issue 1276903004: Add timeline stream control and trace retrieval to the dart embedder api. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index 0b5a41fba3e0e6cfb0fa3ed0f2a71fcb0ec63968..a4e5ad21815bf2758d3cccf77de3b017e5e3bd34 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -534,6 +534,14 @@ void JSONStream::PrintfProperty(const char* name, const char* format, ...) {
}
+void JSONStream::Steal(const char** buffer, intptr_t* buffer_length) {
+ ASSERT(buffer != NULL);
+ ASSERT(buffer_length != NULL);
+ *buffer_length = buffer_.length();
+ *buffer = buffer_.Steal();
+}
+
+
void JSONStream::set_reply_port(Dart_Port port) {
reply_port_ = port;
}

Powered by Google App Engine
This is Rietveld 408576698