Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/devtools_app/lib/src/debugger/debugger_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,20 @@ class DebuggerController extends DisposableController
return;
}

// Collecting frames for Dart web applications can be slow. At the potential
// cost of a flicker in the stack view, display only the top frame
// initially.
if (await serviceManager.connectedApp.isDartWebApp) {
_populateFrameInfo(
[
await _createStackFrameWithLocation(pauseEvent.topFrame),
],
truncated: true,
);
unawaited(_getFullStack());
return;
}

// We populate the first 12 frames; this ~roughly corresponds to the number
// of visible stack frames.
const initialFrameRequestCount = 12;
Expand Down