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

Unified Diff: runtime/vm/json_stream.cc

Issue 1411783004: More timeline cleanups (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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/vm/json_stream.h ('k') | runtime/vm/timeline.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 0477bb48b78124206191ece696510a897d14ec91..dd2a04c8b42852697353034de0a2ed2299c29752 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -263,6 +263,13 @@ void JSONStream::ComputeOffsetAndCount(intptr_t length,
}
}
+
+void JSONStream::AppendSerializedObject(const char* serialized_object) {
+ PrintCommaIfNeeded();
+ buffer_.AddString(serialized_object);
+}
+
+
void JSONStream::Clear() {
buffer_.Clear();
open_objects_ = 0;
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/timeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698