Lines Matching refs:trace_path
51 def get_last_apitrace_frame_call(cmd_wrapper, trace_path): argument
52 cmd = cmd_wrapper + ["apitrace", "dump", "--calls=frame", str(trace_path)]
60 def get_last_gfxreconstruct_frame_call(trace_path): argument
61 cmd = ["gfxrecon-info", str(trace_path)]
70 def dump_with_apitrace(retrace_cmd, trace_path, calls, device_name): argument
71 outputdir = str(trace_path.parent / "test" / device_name)
73 outputprefix = str(Path(outputdir) / trace_path.name) + "-"
75 calls = [str(get_last_apitrace_frame_call(retrace_cmd[:-1], trace_path))]
78 "--snapshot-prefix=" + outputprefix, str(trace_path)]
79 log_path = Path(outputdir) / (trace_path.name + ".log")
82 def dump_with_renderdoc(trace_path, calls, device_name): argument
83 outputdir = str(trace_path.parent / "test" / device_name)
85 cmd = [str(script_path / "renderdoc_dump_images.py"), str(trace_path), outputdir]
87 log_path = Path(outputdir) / (trace_path.name + ".log")
90 def dump_with_gfxreconstruct(trace_path, calls, device_name): argument
92 outputdir_path = trace_path.parent / "test" / device_name
94 outputprefix = str(outputdir_path / trace_path.name) + "-"
100 calls = [str(get_last_gfxreconstruct_frame_call(trace_path) - 1)]
101 cmd = ["gfxrecon-replay", str(trace_path)]
102 log_path = outputdir_path / (trace_path.name + ".log")
116 def dump_with_testtrace(trace_path, calls, device_name): argument
118 outputdir_path = trace_path.parent / "test" / device_name
120 with trace_path.open() as f:
126 outputfile = str(outputdir_path / trace_path.name) + "-" + c + ".png"
127 log_path = outputdir_path / (trace_path.name + ".log")
132 def dump_from_trace(trace_path, calls, device_name): argument
133 log("Info", "Dumping trace %s" % trace_path, end='... ')
134 trace_type = trace_type_from_filename(trace_path.name)
137 dump_with_apitrace(["eglretrace"], trace_path, calls, device_name)
139 dump_with_apitrace(["wine", "d3dretrace"], trace_path, calls, device_name)
141 dump_with_renderdoc(trace_path, calls, device_name)
143 dump_with_gfxreconstruct(trace_path, calls, device_name)
145 dump_with_testtrace(trace_path, calls, device_name)