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

Unified Diff: runtime/vm/debugger.cc

Issue 1406413006: Timeline service protocol support with Observatory UI (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/dart_api_impl.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index 83a53af123456ae31871e872ed612aa7b88c1ab6..f29fbf7a9bd78c5948f1d67d86a48cf13e60c261 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -2522,7 +2522,11 @@ void Debugger::Pause(DebuggerEvent* event) {
// We are about to invoke the debuggers event handler. Disable interrupts
// for this thread while waiting for debug commands over the service protocol.
{
- DisableThreadInterruptsScope dtis(Thread::Current());
+ Thread* thread = Thread::Current();
+ DisableThreadInterruptsScope dtis(thread);
+ TimelineDurationScope tds(thread,
+ isolate_->GetDebuggerStream(),
+ "Debugger Pause");
InvokeEventHandler(event);
}
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698