MCPcopy Create free account
hub / github.com/LBANN/lbann / next_color

Function next_color

src/utils/profiling.cpp:363–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ProfRegionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected