11 #include <fmt/format.h> 26 throw RuntimeException(fmt::format(
"Connection Acknowledged Command Handler invoked while in an " 31 if (!(packet.GetPacketFamily() == 0u && packet.GetPacketId() == 1u))
34 "received family = {}, id = {}",
35 packet.GetPacketFamily(),
36 packet.GetPacketId()));
44 if (m_TimelineEnabled)
50 if (m_BackendProfilingContext.
has_value())
52 for (
auto backendContext : m_BackendProfilingContext.
value())
55 if(!backendContext.second->EnableProfiling(
true))
58 "Unable to enable profiling on Backend Id: " + backendContext.first.Get());
71 static_cast<int>(currentState)));
ProfilingState GetCurrentState() const
void operator()(const arm::pipe::Packet &packet) override
Copyright (c) 2021 ARM Limited and Contributors.
bool has_value() const noexcept
virtual void NotifyProfilingServiceActive()=0
void TransitionToState(ProfilingState newState)
static void SendWellKnownLabelsAndEventClasses(ISendTimelinePacket &timelinePacket)
virtual void SendCounterDirectoryPacket(const ICounterDirectory &counterDirectory)=0
Create and write a CounterDirectoryPacket from the parameters to the buffer.
virtual void SendTimelineMessageDirectoryPackage()=0
Create and write a TimelineMessageDirectoryPackage in the buffer.
constexpr char const * GetProfilingStateName(ProfilingState state)