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

Unified Diff: src/tracing/traced-value.cc

Issue 2418303002: Use TracedValue in runtime statistics. (Closed)
Patch Set: rebase Created 4 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 | « src/tracing/traced-value.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tracing/traced-value.cc
diff --git a/src/tracing/traced-value.cc b/src/tracing/traced-value.cc
index 3406bbf6fe71bfbbb16e53471abda711eeeb99ec..0c73b042956422876c461efdd3d7e7a9f1604e3c 100644
--- a/src/tracing/traced-value.cc
+++ b/src/tracing/traced-value.cc
@@ -121,6 +121,12 @@ void TracedValue::AppendInteger(int value) {
data_ += std::to_string(value);
}
+void TracedValue::AppendLongInteger(int64_t value) {
+ DCHECK_CURRENT_CONTAINER_IS(kStackTypeArray);
+ WriteComma();
+ data_ += std::to_string(value);
+}
+
void TracedValue::AppendDouble(double value) {
DCHECK_CURRENT_CONTAINER_IS(kStackTypeArray);
WriteComma();
« no previous file with comments | « src/tracing/traced-value.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698