Skip to content
Snippets Groups Projects
Commit e850e97a authored by Marius-Cristian Vlad's avatar Marius-Cristian Vlad
Browse files

libweston: Add frame commit frame rate counting

This is a continuation of work from
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/24



This patch adds a surface callback frame rate counter to the scene-graph
debug scope.

The timer interval is set by default to 1 second. This use a timer to
periodically compute the current frame callback commits in that interval
as the surface frame rate per timer interval.  Note that is solely based on
wl_surface::commit call.

Together with this, this patch also adds perfetto counter that stores
the same computed frame rate. This means the counter will be updated on
the next interval timer when the timer is armed/fired such that that
perfetto drawings will show up in a window period of time (interval).

Helpful to identify what frame rates clients achieve to debug
performance issues as to provide an objective common group. Using the
debug-scope aggregates all surfaces at the same place. This is not based
on the GPU whatsoever so it can also work on SHM type of buffers.

Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
Signed-off-by: default avatarChangwoo Cho <changwoo.cho@lge.com>
parent ad3957dd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment