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>