Skip to content

Batch script parsed events from the debug extension. #1599

Closed
@annagrin

Description

@annagrin

Debugger.ScriptParsed events are sent on loading and parsing scripts into the browser. We can have a few thousands of them at the start of running a flutter app. This can cause a performance problem, especially in scenarios using SSE connection from the debug extension, where the events translate into http POST calls.

Here is where the debug extension is sending all events to dwds:

debugSession.socketClient.sink.add(jsonEncode(serializers.serialize(event)));

We can use batched events similar to what we are doing in the injected client:

var debugEventController =

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions