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

Method ReportCounters

profiling/client/src/backends/BackendProfiling.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void 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
51CounterStatus BackendProfiling::GetCounterStatus(uint16_t backendCounterId)
52{

Callers 1

ProfilingTests.cppFile · 0.80

Calls 4

GetGlobalIdMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected