MCPcopy Create free account
hub / github.com/apple/foundationdb / main

Function main

flowbench/flowbench.actor.cpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int main(int argc, char** argv) {
40 benchmark::Initialize(&argc, argv);
41 if (benchmark::ReportUnrecognizedArguments(argc, argv)) {
42 return 1;
43 }
44 setupNetwork();
45 Promise<Void> benchmarksDone;
46 std::thread benchmarkThread([&]() {
47 benchmark::RunSpecifiedBenchmarks();
48 onMainThreadVoid([&]() { benchmarksDone.send(Void()); });
49 });
50 auto f = stopNetworkAfter(benchmarksDone.getFuture());
51 runNetwork();
52 benchmarkThread.join();
53}

Callers

nothing calls this directly

Calls 7

setupNetworkFunction · 0.85
onMainThreadVoidFunction · 0.85
VoidClass · 0.50
runNetworkFunction · 0.50
sendMethod · 0.45
getFutureMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected