| 31 | } |
| 32 | |
| 33 | void BackendProfiling::ReportCounters(const std::vector<Timestamp>& timestamps) |
| 34 | { |
| 35 | for (const auto& timestampInfo : timestamps) |
| 36 | { |
| 37 | std::vector<CounterValue> backendCounterValues = timestampInfo.counterValues; |
| 38 | for_each(backendCounterValues.begin(), backendCounterValues.end(), [&](CounterValue& backendCounterValue) |
| 39 | { |
| 40 | // translate the counterId to globalCounterId |
| 41 | backendCounterValue.counterId = m_ProfilingService.GetCounterMappings().GetGlobalId( |
| 42 | backendCounterValue.counterId, m_BackendId); |
| 43 | }); |
| 44 | |
| 45 | // Send Periodic Counter Capture Packet for the Timestamp |
| 46 | m_ProfilingService.GetSendCounterPacket().SendPeriodicCounterCapturePacket( |
| 47 | timestampInfo.timestamp, backendCounterValues); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | CounterStatus BackendProfiling::GetCounterStatus(uint16_t backendCounterId) |
| 52 | { |
no test coverage detected