| 9 | void computation_5() { std::this_thread::sleep_for(100ms); } |
| 10 | |
| 11 | int main() { |
| 12 | // Profile a scope |
| 13 | UTL_PROFILER_SCOPE("Computation 1 - 5"); |
| 14 | computation_1(); |
| 15 | computation_2(); |
| 16 | |
| 17 | // Profile an expression |
| 18 | UTL_PROFILER("Computation 3") computation_3(); |
| 19 | |
| 20 | // Profile a code segment |
| 21 | UTL_PROFILER_BEGIN(comp_45, "Computation 4 - 5"); |
| 22 | computation_4(); |
| 23 | computation_5(); |
| 24 | UTL_PROFILER_END(comp_45); |
| 25 | } |
nothing calls this directly
no test coverage detected