gitlab-ci: replay apitrace traces in headless mode
authorAndres Gomez <tanty@igalia.com>
Wed, 18 Mar 2020 14:39:49 +0000 (16:39 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Mar 2020 13:48:17 +0000 (13:48 +0000)
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>

.gitlab-ci/tracie/dump_trace_images.py

index 0416414dfabc4662f48139ee44a74c51808883dd..74efb1f32c7618b2afb57f013a100ba4c3553381 100644 (file)
@@ -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)