| 313 | } |
| 314 | |
| 315 | uint32_t ProfilingService::AddCounterValue(uint16_t counterUid, uint32_t value) |
| 316 | { |
| 317 | CheckCounterUid(counterUid); |
| 318 | std::atomic<uint32_t>* counterValuePtr = m_CounterIndex.at(counterUid); |
| 319 | ARM_PIPE_ASSERT(counterValuePtr); |
| 320 | return counterValuePtr->fetch_add(value, std::memory_order::memory_order_relaxed); |
| 321 | } |
| 322 | |
| 323 | uint32_t ProfilingService::SubtractCounterValue(uint16_t counterUid, uint32_t value) |
| 324 | { |
no test coverage detected