| 30 | } |
| 31 | |
| 32 | uint16_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 | |
| 45 | const std::pair<uint16_t, std::string>& CounterIdMap::GetBackendId(uint16_t globalCounterId) const |
| 46 | { |
no test coverage detected