Index of /pub/NetBSD/NetBSD-current/xsrc/external/mit/MesaLib.old/dist/src/gallium/tools/trace/

NameLast ModifiedSizeType
Parent Directory/ -  Directory
CVS/2022-Dec-17 22:28:30-  Directory
README.txt2019-Mar-08 11:19:201.0Ktext/plain
TODO.txt2019-Mar-08 11:19:200.2Ktext/plain
diff_state.py2021-Jul-12 05:02:309.8Kapplication/octet-stream
dump.py2021-Jul-12 05:02:301.3Kapplication/octet-stream
dump_state.py2021-Jul-12 05:02:3025.1Kapplication/octet-stream
format.py2021-Jul-12 05:02:305.0Kapplication/octet-stream
model.py2021-Jul-12 05:02:306.0Kapplication/octet-stream
parse.py2021-Jul-12 05:02:3012.3Kapplication/octet-stream
tracediff.sh2021-Jul-12 05:02:301.9Kapplication/octet-stream
These directory contains tools for manipulating traces produced by the trace
pipe driver.


Most debug builds of state trackers already load the trace driver by default.
To produce a trace do

  export GALLIUM_TRACE=foo.gtrace

and run the application.  You can choose any name, but the .gtrace is
recommended to avoid confusion with the .trace produced by apitrace.


You can dump a trace by doing

  ./dump.py foo.gtrace | less


You can dump a JSON file describing the static state at any given draw call
(e.g., 12345) by
doing

  ./dump_state.py -v -c 12345 foo.gtrace > foo.json

or by specifying the n-th (e.g, 1st) draw call by doing

  ./dump_state.py -v -d 1 foo.gtrace > foo.json

The state is derived from the call sequence in the trace file, so no dynamic
(eg. rendered textures) is included.


You can compare two JSON files by doing

  ./diff_state.py foo.json boo.json | less

If you're investigating a regression in a state tracker, you can obtain a good
and bad trace, dump respective state in JSON, and then compare the states to
identify the problem.
lighttpd/1.4.19