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