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

Unified Diff: runtime/vm/json_stream.cc

Issue 1670623002: Add extra tracing to Debug_InterruptIsolate test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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/debugger_api_impl_test.cc ('k') | no next file » | 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 a16217055d964a42fd9a4d63ed533dd43115cf82..94928ab5473c68bc54294f32f63391293246042f 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -80,9 +80,8 @@ void JSONStream::Setup(Zone* zone,
ASSERT(isolate != NULL);
const char* isolate_name = isolate->name();
setup_time_micros_ = OS::GetCurrentTimeMicros();
- int64_t timestamp = setup_time_micros_ - Dart::vm_isolate()->start_time();
- OS::Print("[@%" Pd64 "] Isolate %s processing service request %s\n",
- timestamp, isolate_name, method_);
+ OS::Print("[+%" Pd64 "ms] Isolate %s processing service request %s\n",
+ Dart::timestamp(), isolate_name, method_);
}
buffer_.Printf("{\"jsonrpc\":\"2.0\", \"result\":");
}
@@ -203,17 +202,15 @@ void JSONStream::PostReply() {
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
const char* isolate_name = isolate->name();
- int64_t current_time = OS::GetCurrentTimeMicros();
- int64_t process_delta_micros = current_time - setup_time_micros_;
- int64_t timestamp = current_time - Dart::vm_isolate()->start_time();
+ int64_t total_time = OS::GetCurrentTimeMicros() - setup_time_micros_;
if (result) {
- OS::Print("[@%" Pd64 "] Isolate %s processed service request %s "
+ OS::Print("[+%" Pd64 "ms] Isolate %s processed service request %s "
"(%" Pd64 "us)\n",
- timestamp, isolate_name, method_, process_delta_micros);
+ Dart::timestamp(), isolate_name, method_, total_time);
} else {
- OS::Print("[@%" Pd64 "] Isolate %s processed service request %s "
+ OS::Print("[+%" Pd64 "ms] Isolate %s processed service request %s "
"(%" Pd64 "us) FAILED\n",
- timestamp, isolate_name, method_, process_delta_micros);
+ Dart::timestamp(), isolate_name, method_, total_time);
}
}
}
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698