ArmNN
 20.05
DeactivateTimelineReportingCommandHandler.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 #include <Packet.hpp>
11 #include "INotifyBackends.hpp"
12 
13 namespace armnn
14 {
15 
16 namespace profiling
17 {
18 
20 {
21 
22 public:
24  uint32_t packetId,
25  uint32_t version,
26  std::atomic<bool>& timelineReporting,
27  ProfilingStateMachine& profilingStateMachine,
28  INotifyBackends& notifyBackends)
29  : CommandHandlerFunctor(familyId, packetId, version)
30  , m_TimelineReporting(timelineReporting)
31  , m_StateMachine(profilingStateMachine)
32  , m_BackendNotifier(notifyBackends)
33  {}
34 
35  void operator()(const Packet& packet) override;
36 
37 private:
38  std::atomic<bool>& m_TimelineReporting;
39  ProfilingStateMachine& m_StateMachine;
40  INotifyBackends& m_BackendNotifier;
41 };
42 
43 } // namespace profiling
44 
45 } // namespace armnn
Copyright (c) 2020 ARM Limited.
DeactivateTimelineReportingCommandHandler(uint32_t familyId, uint32_t packetId, uint32_t version, std::atomic< bool > &timelineReporting, ProfilingStateMachine &profilingStateMachine, INotifyBackends &notifyBackends)