From 867340e8f1801f31fd8d1d4f3916c3f90f2e4a81 Mon Sep 17 00:00:00 2001 From: Vitaliy Urusovskij Date: Wed, 9 Sep 2020 00:13:07 +0300 Subject: [PATCH] Add `runPipeline` wrapper to mandatory track full run (#2100) --- tests/time_tests/common/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/time_tests/common/main.cpp b/tests/time_tests/common/main.cpp index 0a05145..e038665 100644 --- a/tests/time_tests/common/main.cpp +++ b/tests/time_tests/common/main.cpp @@ -28,11 +28,20 @@ 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 */ int main(int argc, char **argv) { if (!parseAndCheckCommandLine(argc, argv)) return -1; - return runPipeline(FLAGS_m, FLAGS_d); + return _runPipeline(); } \ No newline at end of file -- 2.7.4