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

Function executeGLTrim

cli/cli_gltrim.cpp:43–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43static int
44executeGLTrim(const std::vector<const char *> & opts,
45 const char *traceName) {
46
47 std::vector<const char *> command;
48 os::String glTrimPath = findProgram("gltrim");
49 if (glTrimPath.length()) {
50 command.push_back(glTrimPath);
51 } else {
52 command.push_back("gltrim");
53 }
54
55 command.insert(command.end(), opts.begin(), opts.end());
56
57 if (traceName) {
58 command.push_back(traceName);
59 }
60 command.push_back(NULL);
61
62 return os::execute((char * const *)&command[0]);
63}
64
65static const char *synopsis = "Trim an OpenGL trace to a replayable subset of frames";
66

Callers 2

usageFunction · 0.85
commandFunction · 0.85

Calls 5

findProgramFunction · 0.85
executeFunction · 0.50
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected