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

Function command

cli/cli_diff.cpp:58–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static int
59command(int argc, char *argv[])
60{
61 int i;
62
63 os::String command = find_command();
64
65 os::String apitracePath = os::getProcessName();
66
67 std::vector<const char *> args;
68 args.push_back(APITRACE_PYTHON_EXECUTABLE);
69 args.push_back(command.str());
70 args.push_back("--apitrace");
71 args.push_back(apitracePath.str());
72 for (i = 1; i < argc; i++) {
73 args.push_back(argv[i]);
74 }
75 args.push_back(NULL);
76
77 return os::execute((char * const *)&args[0]);
78}
79
80const Command diff_command = {
81 "diff",

Callers

nothing calls this directly

Calls 4

strMethod · 0.80
find_commandFunction · 0.70
getProcessNameFunction · 0.50
executeFunction · 0.50

Tested by

no test coverage detected