#include <MockBackend.hpp>
Definition at line 129 of file MockBackend.hpp.
◆ MockBackendProfilingContext()
Definition at line 132 of file MockBackend.hpp.
133 : m_BackendProfiling(std::move(backendProfiling))
135 , m_IsTimelineEnabled(
true)
◆ ~MockBackendProfilingContext()
◆ ActivateCounters()
arm::pipe::Optional<std::string> ActivateCounters |
( |
uint32_t |
capturePeriod, |
|
|
const std::vector< uint16_t > & |
counterIds |
|
) |
| |
|
inline |
Definition at line 165 of file MockBackend.hpp.
167 if (capturePeriod == 0 || counterIds.size() == 0)
169 m_ActiveCounters.clear();
171 else if (capturePeriod == 15939u)
173 return arm::pipe::Optional<std::string>(
"ActivateCounters example test error");
175 m_CapturePeriod = capturePeriod;
176 m_ActiveCounters = counterIds;
177 return arm::pipe::Optional<std::string>();
◆ EnableProfiling()
bool EnableProfiling |
( |
bool |
| ) |
|
|
inline |
Definition at line 193 of file MockBackend.hpp.
195 auto sendTimelinePacket = m_BackendProfiling->GetSendTimelinePacket();
196 sendTimelinePacket->SendTimelineEntityBinaryPacket(4256);
197 sendTimelinePacket->Commit();
◆ EnableTimelineReporting()
bool EnableTimelineReporting |
( |
bool |
isEnabled | ) |
|
|
inline |
◆ GetBackendProfiling()
◆ RegisterCounters()
uint16_t RegisterCounters |
( |
uint16_t |
currentMaxGlobalCounterId | ) |
|
|
inline |
Definition at line 145 of file MockBackend.hpp.
147 std::unique_ptr<arm::pipe::IRegisterBackendCounters> counterRegistrar =
148 m_BackendProfiling->GetCounterRegistrationInterface(static_cast<uint16_t>(currentMaxGlobalCounterId));
150 std::string categoryName(
"MockCounters");
151 counterRegistrar->RegisterCategory(categoryName);
153 counterRegistrar->RegisterCounter(0, categoryName, 0, 0, 1.f,
"Mock Counter One",
"Some notional counter");
155 counterRegistrar->RegisterCounter(1, categoryName, 0, 0, 1.f,
"Mock Counter Two",
156 "Another notional counter");
158 std::string units(
"microseconds");
159 uint16_t nextMaxGlobalCounterId =
160 counterRegistrar->RegisterCounter(2, categoryName, 0, 0, 1.f,
"Mock MultiCore Counter",
161 "A dummy four core counter", units, 4);
162 return nextMaxGlobalCounterId;
◆ ReportCounterValues()
std::vector<arm::pipe::Timestamp> ReportCounterValues |
( |
| ) |
|
|
inline |
Definition at line 180 of file MockBackend.hpp.
182 std::vector<arm::pipe::CounterValue> counterValues;
184 for (
auto counterId : m_ActiveCounters)
186 counterValues.emplace_back(arm::pipe::CounterValue{ counterId, counterId + 1u });
189 uint64_t timestamp = m_CapturePeriod;
190 return { arm::pipe::Timestamp{ timestamp, counterValues } };
◆ TimelineReportingEnabled()
bool TimelineReportingEnabled |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: