| 361 | #endif |
| 362 | |
| 363 | static int next_color() noexcept |
| 364 | { |
| 365 | static int idx = -1; |
| 366 | idx = (idx + 1) % num_prof_colors; |
| 367 | return prof_colors[idx]; |
| 368 | } |
| 369 | |
| 370 | ProfRegion::ProfRegion(char const* name, bool sync) |
| 371 | : ProfRegion{name, next_color(), sync} |