Matteo Martincigh | 994b534 | 2019-10-11 17:19:56 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "Packet.hpp" |
| 9 | #include "CommandHandlerFunctor.hpp" |
| 10 | #include "ProfilingStateMachine.hpp" |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | namespace profiling |
| 16 | { |
| 17 | |
| 18 | class PerJobCounterSelectionCommandHandler : public CommandHandlerFunctor |
| 19 | { |
| 20 | |
| 21 | public: |
Jim Flynn | 397043f | 2019-10-17 17:37:10 +0100 | [diff] [blame] | 22 | PerJobCounterSelectionCommandHandler(uint32_t familyId, |
| 23 | uint32_t packetId, |
| 24 | uint32_t version, |
| 25 | const ProfilingStateMachine& profilingStateMachine) |
| 26 | : CommandHandlerFunctor(familyId, packetId, version) |
Matteo Martincigh | 994b534 | 2019-10-11 17:19:56 +0100 | [diff] [blame] | 27 | , m_StateMachine(profilingStateMachine) |
| 28 | {} |
| 29 | |
| 30 | void operator()(const Packet& packet) override; |
| 31 | |
| 32 | private: |
| 33 | const ProfilingStateMachine& m_StateMachine; |
| 34 | }; |
| 35 | |
| 36 | } // namespace profiling |
| 37 | |
| 38 | } // namespace armnn |
| 39 | |