MCPcopy Create free account
hub / github.com/apache/trafficserver / main

Function main

tools/benchmark/benchmark_SharedMutex.cc:111–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111int
112main(int argc, char *argv[])
113{
114 Catch::Session session;
115
116 using namespace Catch::clara;
117
118 // clang-format off
119 auto cli = session.cli() |
120 Opt(conf.nthreads, "")["--ts-nthreads"]("number of threads (default: 1)") |
121 Opt(conf.nread, "")["--ts-nread"]("number of read op (default: 1)") |
122 Opt(conf.nwrite, "")["--ts-nwrite"]("number of write op (default: 1)") |
123 Opt(conf.nloop, "")["--ts-nloop"]("number of read-write loop (default: 1)");
124 // clang-format on
125
126 session.cli(cli);
127
128 int returnCode = session.applyCommandLine(argc, argv);
129 if (returnCode != 0) {
130 return returnCode;
131 }
132
133 return session.run();
134}

Callers

nothing calls this directly

Calls 4

OptClass · 0.85
cliMethod · 0.80
applyCommandLineMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected