Worker thread function without tracking
| 176 | |
| 177 | // Worker thread function without tracking |
| 178 | void benchmark_worker_no_track(size_t events_per_thread, std::atomic<bool> &start_flag) |
| 179 | { |
| 180 | while (!start_flag.load()) |
| 181 | { |
| 182 | std::this_thread::yield(); |
| 183 | } |
| 184 | |
| 185 | const int iterations = 10; |
| 186 | const int events_per_call = 2 + iterations * 3; |
| 187 | size_t calls_needed = events_per_thread / events_per_call; |
| 188 | |
| 189 | for (size_t i = 0; i < calls_needed; ++i) |
| 190 | { |
| 191 | level_1_function_no_track(iterations); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | // Parse timing from CTRACK results string for a specific function |
| 196 | double parse_function_timing(const std::string &results, const std::string &function_name) |
nothing calls this directly
no test coverage detected