Colm Donelan | b682d84 | 2019-10-16 12:24:20 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
Francis Murtagh | 78f24e1 | 2019-12-06 14:50:54 +0000 | [diff] [blame] | 6 | #include <CommandHandlerFunctor.hpp> |
| 7 | #include <Packet.hpp> |
Colm Donelan | b682d84 | 2019-10-16 12:24:20 +0100 | [diff] [blame] | 8 | |
| 9 | #include <vector> |
| 10 | |
| 11 | namespace armnn |
| 12 | { |
| 13 | |
| 14 | namespace gatordmock |
| 15 | { |
| 16 | |
| 17 | #pragma once |
| 18 | |
| 19 | class PeriodicCounterSelectionResponseHandler : public profiling::CommandHandlerFunctor |
| 20 | { |
| 21 | |
| 22 | public: |
| 23 | /** |
| 24 | * |
| 25 | * @param packetId The id of packets this handler will process. |
| 26 | * @param version The version of that id. |
| 27 | * @param quietOperation Optional parameter to turn off printouts. This is useful for unittests. |
| 28 | */ |
Jim Flynn | 397043f | 2019-10-17 17:37:10 +0100 | [diff] [blame] | 29 | PeriodicCounterSelectionResponseHandler(uint32_t familyId, |
| 30 | uint32_t packetId, |
| 31 | uint32_t version, |
| 32 | bool quietOperation = true) |
| 33 | : CommandHandlerFunctor(familyId, packetId, version) |
Colm Donelan | b682d84 | 2019-10-16 12:24:20 +0100 | [diff] [blame] | 34 | , m_QuietOperation(quietOperation) |
| 35 | {} |
| 36 | |
| 37 | void operator()(const armnn::profiling::Packet& packet) override; |
| 38 | |
| 39 | private: |
| 40 | bool m_QuietOperation; |
| 41 | }; |
| 42 | |
| 43 | } // namespace gatordmock |
| 44 | |
| 45 | } // namespace armnn |