X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=README.markdown;h=535653d177929fb3d65b451f21c5c8e45519e5bc;hb=b491d2958e2a8331f0f144de89626c284ae96121;hp=732f93545adfa525c435bcfa8cb1eae968354dd3;hpb=7b1b0a2f2c2dd9cd8943f94333d08339a85015a6;p=apitrace diff --git a/README.markdown b/README.markdown index 732f935..535653d 100644 --- a/README.markdown +++ b/README.markdown @@ -15,21 +15,17 @@ About **apitrace** Basic usage =========== - -Linux and Mac OS X ------------------- - Run the application you want to trace as - apitrace trace /path/to/application [args...] + apitrace trace --api API /path/to/application [args...] and it will generate a trace named `application.trace` in the current -directory. You can specify the written trace filename by setting the -`TRACE_FILE` environment variable before running. +directory. You can specify the written trace filename by passing the +`--output` command line option. View the trace with - apitrace dump --color application.trace + apitrace dump application.trace Replay an OpenGL trace with @@ -43,23 +39,6 @@ Start the GUI as qapitrace application.trace -Windows -------- - -* Copy `opengl32.dll`, `d3d8.dll`, or `d3d9.dll` from build/wrappers directory - to the directory with the application you want to trace. - -* Run the application. - -* View the trace with - - \path\to\apitrace dump application.trace - -* Replay the trace with - - \path\to\glretrace application.trace - - Advanced command line usage =========================== @@ -139,11 +118,20 @@ Note that although Mac OS X has an `LD_PRELOAD` equivalent, `DYLD_FORCE_FLAT_NAMESPACE=1` which breaks most applications. See the `dyld` man page for more details about these environment flags. +### Windows ### + +Copy `opengl32.dll`, `d3d8.dll`, or `d3d9.dll` from the wrappers directory +to the directory with the application you want to trace. Then run the +application. + +You can specify the written trace filename by setting the `TRACE_FILE` +environment variable before running. + -Emitting annotations to the trace from GL applications ------------------------------------------------------- +Emitting annotations to the trace +--------------------------------- -You can emit string and frame annotations through the +From OpenGL applications you can embed annotations in the trace file through the [`GL_GREMEDY_string_marker`](http://www.opengl.org/registry/specs/GREMEDY/string_marker.txt) and [`GL_GREMEDY_frame_terminator`](http://www.opengl.org/registry/specs/GREMEDY/frame_terminator.txt) @@ -173,6 +161,15 @@ detect and use GL extensions, you could easily accomplish this by doing: This has the added advantage of working equally well with gDEBugger. +From OpenGL ES applications you can embed annotations in the trace file through the +[`GL_EXT_debug_marker`](http://www.khronos.org/registry/gles/extensions/EXT/EXT_debug_marker.txt) +extension. + + +For Direct3D applications you can follow the same procedure used for +[instrumenting an application for PIX](http://technet.microsoft.com/en-us/query/ee417250) + + Dump GL state at a particular call ----------------------------------