MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetNextCounterUids

Function GetNextCounterUids

profiling/common/src/CommonProfilingUtils.cpp:368–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368std::vector<uint16_t> GetNextCounterUids(uint16_t firstUid, uint16_t cores)
369{
370 // Check that it is possible to generate the next counter UID without causing an overflow (throws in case of error)
371 ThrowIfCantGenerateNextUid(firstUid, cores);
372
373 // Get the next counter UIDs
374 size_t counterUidsSize = cores == 0 ? 1 : cores;
375 std::vector<uint16_t> counterUids(counterUidsSize, 0);
376 for (size_t i = 0; i < counterUidsSize; i++)
377 {
378 counterUids[i] = firstUid++;
379 }
380 return counterUids;
381}
382
383} // namespace pipe
384} // namespace arm

Callers 3

RegisterCounterMethod · 0.85
ProfilingTests.cppFile · 0.85
RegisterCounterMethod · 0.85

Calls 1

Tested by 1

RegisterCounterMethod · 0.68