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