blob: c075857816c7d7b8103760bd77ec8921225bba6c [file] [log] [blame]
Colm Donelanb682d842019-10-16 12:24:20 +01001//
2// Copyright © 2019 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
Finn Williamsd7fcafa2020-04-23 17:55:18 +01005#pragma once
Colm Donelanb682d842019-10-16 12:24:20 +01006
Francis Murtagh78f24e12019-12-06 14:50:54 +00007#include <CommandHandlerFunctor.hpp>
8#include <Packet.hpp>
Colm Donelanb682d842019-10-16 12:24:20 +01009
10#include <vector>
11
12namespace armnn
13{
14
15namespace gatordmock
16{
17
Colm Donelanb682d842019-10-16 12:24:20 +010018class PeriodicCounterSelectionResponseHandler : public profiling::CommandHandlerFunctor
19{
20
21public:
22 /**
23 *
24 * @param packetId The id of packets this handler will process.
25 * @param version The version of that id.
26 * @param quietOperation Optional parameter to turn off printouts. This is useful for unittests.
27 */
Jim Flynn397043f2019-10-17 17:37:10 +010028 PeriodicCounterSelectionResponseHandler(uint32_t familyId,
29 uint32_t packetId,
30 uint32_t version,
31 bool quietOperation = true)
32 : CommandHandlerFunctor(familyId, packetId, version)
Colm Donelanb682d842019-10-16 12:24:20 +010033 , m_QuietOperation(quietOperation)
34 {}
35
36 void operator()(const armnn::profiling::Packet& packet) override;
37
38private:
39 bool m_QuietOperation;
40};
41
42} // namespace gatordmock
43
44} // namespace armnn