summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorAndres Gomez <tanty@igalia.com>2020-03-18 16:39:49 +0200
committerMarge Bot <eric+marge@anholt.net>2020-03-27 13:48:17 +0000
commit6bae042b3da4d962cd19137ddcde110ff6a88359 (patch)
tree043dd38db1bbf9d5c6998a716cc8db2fa8bca606 /.gitlab-ci
parent9f4acd465edc1360a1d5ea2646379bd5db3e1598 (diff)
gitlab-ci: replay apitrace traces in headless mode
Signed-off-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4238>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/tracie/dump_trace_images.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci/tracie/dump_trace_images.py b/.gitlab-ci/tracie/dump_trace_images.py
index 0416414dfab..74efb1f32c7 100644
--- a/.gitlab-ci/tracie/dump_trace_images.py
+++ b/.gitlab-ci/tracie/dump_trace_images.py
@@ -77,7 +77,8 @@ def dump_with_apitrace(retrace_cmd, trace_path, calls, device_name):
outputprefix = str(Path(outputdir) / trace_path.name) + "-"
if len(calls) == 0:
calls = [str(get_last_apitrace_frame_call(retrace_cmd[:-1], trace_path))]
- cmd = retrace_cmd + ["--snapshot=" + ','.join(calls),
+ cmd = retrace_cmd + ["--headless",
+ "--snapshot=" + ','.join(calls),
"--snapshot-prefix=" + outputprefix, str(trace_path)]
log_path = Path(outputdir) / (trace_path.name + ".log")
run_logged_command(cmd, None, log_path)