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

Unified Diff: runtime/vm/json_stream.h

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
« no previous file with comments | « runtime/vm/heap_test.cc ('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 ba09e5d079a0736d6dbe0c7bd6cb4e10bb54913d..81b3272167c9dfa49919a0dc58e8692368cf0840 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -72,6 +72,7 @@ class JSONStream : ValueObject {
void PrintValueBool(bool b);
void PrintValue(intptr_t i);
+ void PrintValue64(int64_t i);
void PrintValue(double d);
void PrintValue(const char* s);
void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
@@ -80,6 +81,7 @@ class JSONStream : ValueObject {
void PrintPropertyBool(const char* name, bool b);
void PrintProperty(const char* name, intptr_t i);
+ void PrintProperty64(const char* name, int64_t i);
void PrintProperty(const char* name, double d);
void PrintProperty(const char* name, const char* s);
void PrintfProperty(const char* name, const char* format, ...)
@@ -128,6 +130,9 @@ class JSONObject : public ValueObject {
void AddProperty(const char* name, intptr_t i) const {
stream_->PrintProperty(name, i);
}
+ void AddProperty64(const char* name, int64_t i) const {
+ stream_->PrintProperty64(name, i);
+ }
void AddProperty(const char* name, double d) const {
stream_->PrintProperty(name, d);
}
@@ -167,6 +172,7 @@ class JSONArray : public ValueObject {
void AddValue(bool b) const { stream_->PrintValueBool(b); }
void AddValue(intptr_t i) const { stream_->PrintValue(i); }
+ void AddValue64(int64_t i) const { stream_->PrintValue64(i); }
void AddValue(double d) const { stream_->PrintValue(d); }
void AddValue(const char* s) const { stream_->PrintValue(s); }
void AddValue(const Object& obj, bool ref = true) const {
« no previous file with comments | « runtime/vm/heap_test.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698