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); |
} |