9 #include <boost/format.hpp> 22 switch ( currentState )
28 boost::format(
"Deactivate Timeline Reporting Command Handler invoked while in a wrong state: %1%")
31 if (!(packet.GetPacketFamily() == 0u && packet.GetPacketId() == 7u))
33 throw armnn::Exception(std::string(
"Expected Packet family = 0, id = 7 but received family =")
34 + std::to_string(packet.GetPacketFamily())
35 +
" id = " + std::to_string(packet.GetPacketId()));
38 m_TimelineReporting.store(
false);
45 throw RuntimeException(boost::str(boost::format(
"Unknown profiling service state: %1%")
46 % static_cast<int>(currentState)));
ProfilingState GetCurrentState() const
virtual void NotifyBackendsForTimelineReporting()=0
Copyright (c) 2020 ARM Limited.
void operator()(const Packet &packet) override
Base class for all ArmNN exceptions so that users can filter to just those.
constexpr char const * GetProfilingStateName(ProfilingState state)