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

Unified Diff: runtime/vm/json_stream.cc

Issue 2583663002: Internally measure isolate uptime with monotonic time. (Closed)
Patch Set: Created 4 years 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/isolate.cc ('k') | runtime/vm/os_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index 4fe101d97c8a9b9ce4ff06f6a4853506731e4f22..7bbdc6fb24c4286a65406b4bd9e5a82bd553c88f 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -108,7 +108,7 @@ void JSONStream::Setup(Zone* zone,
const char* isolate_name = isolate->name();
setup_time_micros_ = OS::GetCurrentTimeMicros();
OS::Print("[+%" Pd64 "ms] Isolate %s processing service request %s\n",
- Dart::timestamp(), isolate_name, method_);
+ Dart::UptimeMillis(), isolate_name, method_);
}
buffer_.Printf("{\"jsonrpc\":\"2.0\", \"result\":");
}
@@ -266,12 +266,12 @@ void JSONStream::PostReply() {
OS::Print("[+%" Pd64
"ms] Isolate %s processed service request %s "
"(%" Pd64 "us)\n",
- Dart::timestamp(), isolate_name, method_, total_time);
+ Dart::UptimeMillis(), isolate_name, method_, total_time);
} else {
OS::Print("[+%" Pd64
"ms] Isolate %s processed service request %s "
"(%" Pd64 "us) FAILED\n",
- Dart::timestamp(), isolate_name, method_, total_time);
+ Dart::UptimeMillis(), isolate_name, method_, total_time);
}
}
}
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/os_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698