MCPcopy Create free account
hub / github.com/apitrace/apitrace / usage

Function usage

cli/cli_trace.cpp:330–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328static const char *synopsis = "Generate a new trace by executing the given program.";
329
330static void
331usage(void)
332{
333 std::cout << "usage: apitrace trace [OPTIONS] PROGRAM [ARGS ...]\n"
334 << synopsis << "\n"
335 "\n"
336 " The given program will be executed with the given arguments.\n"
337 " During execution, all OpenGL calls will be captured to a trace\n"
338 " file. That trace file can then be used\n"
339 " with other apitrace utilities for replay or analysis.\n"
340 "\n"
341 " -v, --verbose verbose output\n"
342 " -a, --api=API specify API to trace: "
343#ifdef _WIN32
344 "gl, d3d7, d3d8, d3d9, or dxgi (for d3d10 and higher)"
345#else
346 "gl (for glx or cgl) or egl"
347#endif
348 ";\n"
349 " default is `gl`\n"
350 " -o, --output=TRACE specify output trace file;\n"
351 " default is `PROGRAM.trace`\n"
352 " -t, --timestamp append timestamp to output trace filename\n"
353#ifdef TRACE_VARIABLE
354 " -d, --debug run inside debugger (gdb/lldb)\n"
355#endif
356#ifdef _WIN32
357 " -m, --mhook use Mhook (instead of IAT patching)\n"
358#endif
359 ;
360}
361
362const static char *
363shortOptions = "+hva:o:dmt";

Callers 1

commandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected