Skip to content

Add perfetto instrumentation to wayland wsi

Derek Foreman requested to merge derekf/mesa:wsi_instrumentation into main

While working on support for the draft fifo and commit_timing protocols, I've used perfetto to validate and debug frame timing. This is a subset of that work that can be useful without the new protocols.

Using the MESA_VK_WSI_DEBUG=wltiming env var This series enables tracing of wayland wsi frame timing under perfetto, with flows added from acquisition to presentation, and counters added for presentation latency (from submission to presentation): wsi_perfetto

Counters and flows are added as new features to our perfetto wrappers, as well as the ability to explicitly add tracks and create track events with timestamps.

Edited by Derek Foreman

Merge request reports