Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2020 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <armnn/Optional.hpp> |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 9 | |
Cathal Corbett | 5aa9fd7 | 2022-02-25 15:33:28 +0000 | [diff] [blame] | 10 | namespace arm |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 11 | { |
| 12 | |
Cathal Corbett | 5aa9fd7 | 2022-02-25 15:33:28 +0000 | [diff] [blame] | 13 | namespace pipe |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 14 | { |
| 15 | |
| 16 | class ICounterRegistry |
| 17 | { |
| 18 | public: |
| 19 | virtual ~ICounterRegistry() {} |
| 20 | |
| 21 | // Register profiling objects |
Sadik Armagan | 4c99899 | 2020-02-25 12:44:44 +0000 | [diff] [blame] | 22 | virtual const Category* RegisterCategory (const std::string& categoryName) = 0; |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 23 | |
| 24 | virtual const Device* RegisterDevice (const std::string& deviceName, |
| 25 | uint16_t cores, |
Cathal Corbett | 5aa9fd7 | 2022-02-25 15:33:28 +0000 | [diff] [blame] | 26 | const armnn::Optional<std::string>& parentCategoryName) = 0; |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 27 | |
| 28 | virtual const CounterSet* RegisterCounterSet(const std::string& counterSetName, |
| 29 | uint16_t count, |
Cathal Corbett | 5aa9fd7 | 2022-02-25 15:33:28 +0000 | [diff] [blame] | 30 | const armnn::Optional<std::string>& parentCategoryName) = 0; |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 31 | |
Cathal Corbett | 6f07372 | 2022-03-04 12:11:09 +0000 | [diff] [blame] | 32 | virtual const Counter* RegisterCounter(const std::string& backendId, |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 33 | const uint16_t uid, |
| 34 | const std::string& parentCategoryName, |
| 35 | uint16_t counterClass, |
| 36 | uint16_t interpolation, |
| 37 | double multiplier, |
| 38 | const std::string& name, |
| 39 | const std::string& description, |
Cathal Corbett | 5aa9fd7 | 2022-02-25 15:33:28 +0000 | [diff] [blame] | 40 | const armnn::Optional<std::string>& units, |
| 41 | const armnn::Optional<uint16_t>& numberOfCores, |
| 42 | const armnn::Optional<uint16_t>& deviceUid, |
| 43 | const armnn::Optional<uint16_t>& counterSetUid) = 0; |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 44 | |
| 45 | }; |
| 46 | |
Cathal Corbett | 5aa9fd7 | 2022-02-25 15:33:28 +0000 | [diff] [blame] | 47 | } // namespace pipe |
Jim Flynn | 9789702 | 2020-02-02 12:52:59 +0000 | [diff] [blame] | 48 | |
Cathal Corbett | 5aa9fd7 | 2022-02-25 15:33:28 +0000 | [diff] [blame] | 49 | } // namespace arm |