MCPcopy Create free account
hub / github.com/baidu/babylon / main

Function main

example/use-async-logger/example.cpp:160–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160int main(int argc, char* argv[]) {
161 ::gflags::ParseCommandLineFlags(&argc, &argv, true);
162
163 payload.resize(FLAGS_payload, 'x');
164
165 ::brpc::StartDummyServerAt(FLAGS_dummy_port);
166
167 ::std::filesystem::remove_all("log");
168 if (FLAGS_mode == "babylon") {
169 setup_babylon();
170 run_loop();
171 } else if (FLAGS_mode == "brpc") {
172 setup_brpc();
173 run_loop();
174 } else if (FLAGS_mode == "spdlog") {
175 setup_spdlog();
176 run_loop();
177 }
178
179 return 0;
180}

Callers

nothing calls this directly

Calls 5

setup_babylonFunction · 0.85
setup_brpcFunction · 0.85
setup_spdlogFunction · 0.85
run_loopFunction · 0.70
resizeMethod · 0.45

Tested by

no test coverage detected