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

Unified Diff: runtime/vm/timeline.cc

Issue 1241683005: Support piping log data over the service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/service_event.cc ('k') | sdk/lib/_internal/js_runtime/lib/developer_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/timeline.cc
diff --git a/runtime/vm/timeline.cc b/runtime/vm/timeline.cc
index 3d5e1798d86ae2262e871bf81438c9de09781b1c..4c3fb9bf655cc927f1d1ab7923ba7258a9838b9e 100644
--- a/runtime/vm/timeline.cc
+++ b/runtime/vm/timeline.cc
@@ -197,12 +197,12 @@ void TimelineEvent::PrintJSON(JSONStream* stream) const {
obj.AddProperty("cat", stream_->name());
obj.AddProperty64("tid", tid);
obj.AddProperty64("pid", pid);
- obj.AddProperty("ts", static_cast<double>(TimeOrigin()));
+ obj.AddPropertyTimeMillis("ts", TimeOrigin());
switch (event_type()) {
case kDuration: {
obj.AddProperty("ph", "X");
- obj.AddProperty("dur", static_cast<double>(TimeDuration()));
+ obj.AddPropertyTimeMillis("dur", TimeDuration());
}
break;
case kInstant: {
« no previous file with comments | « runtime/vm/service_event.cc ('k') | sdk/lib/_internal/js_runtime/lib/developer_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698