Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +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 "CommandHandlerFunctor.hpp" |
| 9 | #include "ISendCounterPacket.hpp" |
| 10 | #include "Packet.hpp" |
Matteo Martincigh | 8efc500 | 2019-10-10 14:30:29 +0100 | [diff] [blame] | 11 | #include "ProfilingStateMachine.hpp" |
Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame] | 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | namespace profiling |
| 17 | { |
| 18 | |
| 19 | class RequestCounterDirectoryCommandHandler : public CommandHandlerFunctor |
| 20 | { |
| 21 | |
| 22 | public: |
Matteo Martincigh | 8efc500 | 2019-10-10 14:30:29 +0100 | [diff] [blame] | 23 | RequestCounterDirectoryCommandHandler(uint32_t packetId, |
| 24 | uint32_t version, |
Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame] | 25 | ICounterDirectory& counterDirectory, |
Matteo Martincigh | 8efc500 | 2019-10-10 14:30:29 +0100 | [diff] [blame] | 26 | ISendCounterPacket& sendCounterPacket, |
| 27 | ProfilingStateMachine& profilingStateMachine) |
| 28 | : CommandHandlerFunctor(packetId, version) |
| 29 | , m_CounterDirectory(counterDirectory) |
| 30 | , m_SendCounterPacket(sendCounterPacket) |
| 31 | , m_StateMachine(profilingStateMachine) |
Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame] | 32 | {} |
| 33 | |
| 34 | void operator()(const Packet& packet) override; |
| 35 | |
Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame] | 36 | private: |
Matteo Martincigh | 8efc500 | 2019-10-10 14:30:29 +0100 | [diff] [blame] | 37 | const ICounterDirectory& m_CounterDirectory; |
Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame] | 38 | ISendCounterPacket& m_SendCounterPacket; |
Matteo Martincigh | 8efc500 | 2019-10-10 14:30:29 +0100 | [diff] [blame] | 39 | const ProfilingStateMachine& m_StateMachine; |
Narumol Prangnawarat | 4803369 | 2019-09-20 12:04:55 +0100 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | } // namespace profiling |
| 43 | |
| 44 | } // namespace armnn |