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

Function main

tools/benchmark/benchmark_EventSystem.cc:103–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101CATCH_REGISTER_LISTENER(EventProcessorListener);
102
103int
104main(int argc, char *argv[])
105{
106 Catch::Session session;
107
108 using namespace Catch::clara;
109
110 auto cli = session.cli() | Opt(nevents, "n")["--ts-nevents"]("number of events (default: 1)\n") |
111 Opt(nthreads, "n")["--ts-nthreads"]("number of ethreads (default: 1)\n");
112
113 session.cli(cli);
114
115 if (int res = session.applyCommandLine(argc, argv); res != 0) {
116 return res;
117 }
118
119 return session.run();
120}

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