ArmNN
 20.02
ConnectionAcknowledgedCommandHandler.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 #include "ISendCounterPacket.hpp"
11 #include "Packet.hpp"
13 
14 namespace armnn
15 {
16 
17 namespace profiling
18 {
19 
21 {
22 
23 public:
25  uint32_t packetId,
26  uint32_t version,
27  ICounterDirectory& counterDirectory,
28  ISendCounterPacket& sendCounterPacket,
29  ISendTimelinePacket& sendTimelinePacket,
30  ProfilingStateMachine& profilingStateMachine)
31  : CommandHandlerFunctor(familyId, packetId, version)
32  , m_CounterDirectory(counterDirectory)
33  , m_SendCounterPacket(sendCounterPacket)
34  , m_SendTimelinePacket(sendTimelinePacket)
35  , m_StateMachine(profilingStateMachine)
36  {}
37 
38  void operator()(const Packet& packet) override;
39 
40 private:
41  const ICounterDirectory& m_CounterDirectory;
42  ISendCounterPacket& m_SendCounterPacket;
43  ISendTimelinePacket& m_SendTimelinePacket;
44  ProfilingStateMachine& m_StateMachine;
45 
46 };
47 
48 } // namespace profiling
49 
50 } // namespace armnn
51 
ConnectionAcknowledgedCommandHandler(uint32_t familyId, uint32_t packetId, uint32_t version, ICounterDirectory &counterDirectory, ISendCounterPacket &sendCounterPacket, ISendTimelinePacket &sendTimelinePacket, ProfilingStateMachine &profilingStateMachine)
Copyright (c) 2020 ARM Limited.