Add runPipeline wrapper to mandatory track full run (#2100)

This commit is contained in:
Vitaliy Urusovskij 2020-09-09 00:13:07 +03:00 committed by GitHub
parent 2c6cceeeb6
commit 867340e8f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,15 @@ bool parseAndCheckCommandLine(int argc, char **argv) {
}
/**
* @brief Function calls `runPipeline` with mandatory time tracking of full run
*/
int _runPipeline() {
SCOPED_TIMER(full_run);
return runPipeline(FLAGS_m, FLAGS_d);
}
/**
* @brief Main entry point
*/
@ -34,5 +43,5 @@ int main(int argc, char **argv) {
if (!parseAndCheckCommandLine(argc, argv))
return -1;
return runPipeline(FLAGS_m, FLAGS_d);
return _runPipeline();
}