Index: runtime/vm/profiler_service.cc |
diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc |
index 3f8d50758cec5f5129141e08e5581d22593617f8..3b8a8cd05a036356a07e8be1691edfbaa0ffa329 100644 |
--- a/runtime/vm/profiler_service.cc |
+++ b/runtime/vm/profiler_service.cc |
@@ -229,8 +229,8 @@ void ProfileFunction::PrintToJSONObject(JSONObject* func) { |
void ProfileFunction::PrintToJSONArray(JSONArray* functions) { |
JSONObject obj(functions); |
obj.AddProperty("kind", KindToCString(kind())); |
- obj.AddPropertyF("inclusiveTicks", "%" Pd "", inclusive_ticks()); |
- obj.AddPropertyF("exclusiveTicks", "%" Pd "", exclusive_ticks()); |
+ obj.AddProperty("inclusiveTicks", inclusive_ticks()); |
+ obj.AddProperty("exclusiveTicks", exclusive_ticks()); |
if (kind() == kDartFunction) { |
ASSERT(!function_.IsNull()); |
obj.AddProperty("function", function_); |
@@ -507,8 +507,8 @@ const char* ProfileCode::KindToCString(Kind kind) { |
void ProfileCode::PrintToJSONArray(JSONArray* codes) { |
JSONObject obj(codes); |
obj.AddProperty("kind", ProfileCode::KindToCString(kind())); |
- obj.AddPropertyF("inclusiveTicks", "%" Pd "", inclusive_ticks()); |
- obj.AddPropertyF("exclusiveTicks", "%" Pd "", exclusive_ticks()); |
+ obj.AddProperty("inclusiveTicks", inclusive_ticks()); |
+ obj.AddProperty("exclusiveTicks", exclusive_ticks()); |
if (kind() == kDartCode) { |
ASSERT(!code_.IsNull()); |
obj.AddProperty("code", code_); |
@@ -527,8 +527,8 @@ void ProfileCode::PrintToJSONArray(JSONArray* codes) { |
for (intptr_t i = 0; i < address_ticks_.length(); i++) { |
const ProfileCodeAddress& entry = address_ticks_[i]; |
ticks.AddValueF("%" Px "", entry.pc()); |
- ticks.AddValueF("%" Pd "", entry.exclusive_ticks()); |
- ticks.AddValueF("%" Pd "", entry.inclusive_ticks()); |
+ ticks.AddValue(entry.exclusive_ticks()); |
+ ticks.AddValue(entry.inclusive_ticks()); |
} |
} |
} |