How to measure the Dolphin launch time?

I continue to have some annoying lags launching Dolphin from X11 (on Wayland it’s all OK), so I’m looking for a method (valid on X11 and Wayland) to can measure the Dolphin Launch time. Just to can measure how my fixes influences the lags.

Hardware: AMD Ryzen 5 2600X - 16 Gb RAM - SSD 500 Gb (Samsung) - Nvidia RTX 2600 -3 Monitors (1920x1200)
OS: CachyOS (Arch Based), KDE 6.3 (same problem on KDE 6.2)

You can use hotspot with debug symbols (using debuginfod enabled) and enable perf to work.
This will gives you a very telling flamegraph.

X11 is slower to start any program by design (it is synchronous) and as a Dolphin maintainer, I did investigate this in the past. I can’t remember the specific it has been a while.