MCPcopy Create free account
hub / github.com/Compaile/ctrack / benchmark_worker_no_track

Function benchmark_worker_no_track

benchmark/ctrack_benchmark.cpp:178–193  ·  view source on GitHub ↗

Worker thread function without tracking

Source from the content-addressed store, hash-verified

176
177// Worker thread function without tracking
178void 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
196double parse_function_timing(const std::string &results, const std::string &function_name)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected