trace_replay: Retrieve performance metrics for timed out replays

Retrieve performance metrics even if replay can't be finished in time.
In this case instead of failing with timout error we will try to
replay as many frames as possible and return obtained metrics with
successful result. The actual replayed frames count will be returned
as well.

BUG=b:209829784
TEST=tested on local dut

Change-Id: I8c478c34509298775daf33b424493ee313febc9d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/graphics/+/3324065
Reviewed-by: Po-Hsien Wang <pwang@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Robert Tarasov <tutankhamen@chromium.org>
Commit-Queue: Robert Tarasov <tutankhamen@chromium.org>
1 file changed