Skip to content

[DebugBundle] Add chronological overview of dispatched events and triggered listeners in profiler #58382

Open
@tjveldhuizen

Description

@tjveldhuizen

Description

In our project, we are more and more using dispatched events and related listeners. By doing this, it gets more complicated to find out the order events are dispatched and listeners are triggered. It would be nice if there would be an option to display the events panel in the profiler in chronological order.

Example

Today, I had the situation where event EventX is dipatched, triggered listeners X1, X2 and X3, then listener X3 dispatched event EventY, which triggered Y1 and Y2, after which the earlier dispatched X triggered X4.

In the current overview, this is presented like:

| Priority | Listener
|----------|----------|
| EventX              |
| 10       | X1       |
| 20       | X2       |
| 20       | X3       |
| 30       | X4       |
| EventY              |
| 10       | Y1       |
| 20       | Y2       |

When it would be presented like this, I wouldn't need to step debug my code to learn the real order of listener calls

| Event  | Priority | Listener |
|--------|----------|----------|
| EventX | 10       | X1       |
| EventX | 20       | X2       |
| EventX | 20       | X3       |
| EventY | 10       | Y1       |
| EventY | 20       | Y2       |
| EventX | 30       | X4       |

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions