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

Unified Diff: runtime/vm/isolate.cc

Issue 1310863004: More logging for pause tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/observatory/tests/service/test_helper.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 853896dc0c029918c590b615f10964a7a7b7119b..0145636f3c12c64dadc891b2bae2477fdbc50df9 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -45,6 +45,7 @@
namespace dart {
DECLARE_FLAG(bool, print_metrics);
+DECLARE_FLAG(bool, trace_service);
DEFINE_FLAG(bool, trace_isolates, false,
"Trace isolate creation and shut down.");
@@ -503,6 +504,9 @@ void IsolateMessageHandler::NotifyPauseOnStart() {
HandleScope handle_scope(I);
ServiceEvent pause_event(isolate(), ServiceEvent::kPauseStart);
Service::HandleEvent(&pause_event);
+ } else if (FLAG_trace_service) {
+ OS::Print("vm-service: Dropping event of type PauseStart (%s)\n",
+ isolate()->name());
}
}
@@ -514,6 +518,9 @@ void IsolateMessageHandler::NotifyPauseOnExit() {
HandleScope handle_scope(I);
ServiceEvent pause_event(isolate(), ServiceEvent::kPauseExit);
Service::HandleEvent(&pause_event);
+ } else if (FLAG_trace_service) {
+ OS::Print("vm-service: Dropping event of type PauseExit (%s)\n",
+ isolate()->name());
}
}
« no previous file with comments | « runtime/observatory/tests/service/test_helper.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698