MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / main

Function main

test/test/nonjava/non_java_app.cpp:354–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354int main(int argc, char** argv) {
355 validateArgsCount(argc, 3);
356
357 // Check which test to run
358 char* flow = argv[1];
359 switch (flow[0]) {
360 case '1':
361 testFlow1(argc, argv);
362 break;
363 case '2':
364 testFlow2(argc, argv);
365 break;
366 case '3':
367 testFlow3(argc, argv);
368 break;
369 case '4':
370 testFlow4(argc, argv);
371 break;
372 default:
373 std::cerr << "Unknown flow: " << flow[0] << std::endl;
374 exit(1);
375 }
376
377 return 0;
378}

Callers

nothing calls this directly

Calls 5

validateArgsCountFunction · 0.85
testFlow1Function · 0.85
testFlow2Function · 0.85
testFlow3Function · 0.85
testFlow4Function · 0.85

Tested by

no test coverage detected