aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/PerJobCounterSelectionCommandHandler.hpp
blob: 16cb02a285580a855a01b5cbd1c8369a539a6255 (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
//
// Copyright © 2019 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include "common/include/Packet.hpp"
#include "CommandHandlerFunctor.hpp"
#include "ProfilingStateMachine.hpp"

namespace armnn
{

namespace profiling
{

class PerJobCounterSelectionCommandHandler : public CommandHandlerFunctor
{

public:
    PerJobCounterSelectionCommandHandler(uint32_t familyId,
                                         uint32_t packetId,
                                         uint32_t version,
                                         const ProfilingStateMachine& profilingStateMachine)
        : CommandHandlerFunctor(familyId, packetId, version)
        , m_StateMachine(profilingStateMachine)
    {}

    void operator()(const Packet& packet) override;

private:
    const ProfilingStateMachine& m_StateMachine;
};

} // namespace profiling

} // namespace armnn