| 49 | } |
| 50 | |
| 51 | CounterStatus BackendProfiling::GetCounterStatus(uint16_t backendCounterId) |
| 52 | { |
| 53 | uint16_t globalCounterId = m_ProfilingService.GetCounterMappings().GetGlobalId(backendCounterId, m_BackendId); |
| 54 | CaptureData captureData = m_ProfilingService.GetCaptureData(); |
| 55 | |
| 56 | CounterStatus counterStatus(backendCounterId, globalCounterId, false, 0); |
| 57 | |
| 58 | if (captureData.IsCounterIdInCaptureData(globalCounterId)) |
| 59 | { |
| 60 | counterStatus.m_Enabled = true; |
| 61 | counterStatus.m_SamplingRateInMicroseconds = captureData.GetCapturePeriod(); |
| 62 | } |
| 63 | |
| 64 | return counterStatus; |
| 65 | } |
| 66 | |
| 67 | std::vector<CounterStatus> BackendProfiling::GetActiveCounters() |
| 68 | { |
no test coverage detected