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

Unified Diff: runtime/vm/json_stream.cc

Issue 173013004: Add accumulator to allocation profiler (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
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index 1c60d5bf4e11adce5052ece295262f1c68d0fa75..9fffcae4aa0818b587202c4e45024bd246f1ae51 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -182,6 +182,12 @@ void JSONStream::PrintValue(intptr_t i) {
}
+void JSONStream::PrintValue64(int64_t i) {
+ PrintCommaIfNeeded();
+ buffer_.Printf("%" Pd64 "", i);
+}
+
+
void JSONStream::PrintValue(double d) {
PrintCommaIfNeeded();
buffer_.Printf("%f", d);
@@ -239,6 +245,12 @@ void JSONStream::PrintProperty(const char* name, intptr_t i) {
}
+void JSONStream::PrintProperty64(const char* name, int64_t i) {
+ PrintPropertyName(name);
+ PrintValue64(i);
+}
+
+
void JSONStream::PrintProperty(const char* name, double d) {
PrintPropertyName(name);
PrintValue(d);

Powered by Google App Engine
This is Rietveld 408576698