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