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

Method GetGlobalId

profiling/client/src/CounterIdMap.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const std::string& backendId) const
33{
34 std::pair<uint16_t, std::string> backendIdPair(backendCounterId, backendId);
35 auto it = m_BackendCounterIdMap.find(backendIdPair);
36 if (it == m_BackendCounterIdMap.end())
37 {
38 std::stringstream ss;
39 ss << "No Backend Counter [" << backendIdPair.second << ":" << backendIdPair.first << "] registered";
40 throw arm::pipe::ProfilingException(ss.str());
41 }
42 return it->second;
43}
44
45const std::pair<uint16_t, std::string>& CounterIdMap::GetBackendId(uint16_t globalCounterId) const
46{

Callers 4

ReportCountersMethod · 0.80
GetCounterStatusMethod · 0.80
ProfilingTests.cppFile · 0.80

Calls 3

ProfilingExceptionClass · 0.85
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected