tests: Replay profile frame times
commiteee7d89611cf6dbafdd23f85b2f5f25ecc2d1ca3
authorAntonio Caggiano <antonio.caggiano@collabora.com>
Mon, 22 Feb 2021 19:06:04 +0000 (22 20:06 +0100)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 20 May 2021 12:01:33 +0000 (20 14:01 +0200)
tree7965da933a3069383e21d48ac00e41be3aed2e5e
parent9f16a6a4581c6cb5bdbc830586d4bff7dd4d7ce7
tests: Replay profile frame times

Improve replay profile by adding a subcommand option which can be either
`compare` or `profile`. The profile command runs apitrace in benchmark
mode, loops over the final frame a number of times, and collects the GPU
durations of the frames.

Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/483>
framework/replay/__init__.py
framework/replay/backends/apitrace.py
framework/replay/frame_times.py [new file with mode: 0644]
framework/replay/programs/profile.py [new file with mode: 0644]
framework/test/piglit_test.py
replayer/replayer.py
tests/replay.py
unittests/framework/replay/test_frame_times.py [new file with mode: 0644]