diff options
Diffstat (limited to 'tests/framework/Framework.cpp')
-rw-r--r-- | tests/framework/Framework.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/framework/Framework.cpp b/tests/framework/Framework.cpp index 39fe1fa00a..38c65fed85 100644 --- a/tests/framework/Framework.cpp +++ b/tests/framework/Framework.cpp @@ -289,7 +289,10 @@ void Framework::run_test(const TestInfo &info, TestCaseFactory &test_factory) for(int i = 0; i < _num_iterations; ++i) { - profiler.start(); + if(_num_iterations > 1 && i != 0) + { + profiler.start(); + } test_case->do_run(); #ifdef ARM_COMPUTE_CL if(opencl_is_available()) @@ -303,7 +306,10 @@ void Framework::run_test(const TestInfo &info, TestCaseFactory &test_factory) GCScheduler::get().sync(); } #endif /* ARM_COMPUTE_GC */ - profiler.stop(); + if(_num_iterations > 1 && i != 0) + { + profiler.stop(); + } } test_case->do_teardown(); |