aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CounterDirectory.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-13 22:35:46 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-14 00:34:17 +0000
commitdecd08b89565b18067d229c8c25b6f3a3333c653 (patch)
tree56176931968b83646b7e69f8e5b84ff7a65a24aa /src/profiling/CounterDirectory.cpp
parent77b284e6988b9a131d6abb3140ec6663c2ae84ae (diff)
downloadarmnn-decd08b89565b18067d229c8c25b6f3a3333c653.tar.gz
IVGCVSW-6847 replace armnn:Optional with arm::pipe::Optional in profiling code
Change-Id: I048c538d4f8c21770aec2b2751c934d9fa15a4dc Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/CounterDirectory.cpp')
-rw-r--r--src/profiling/CounterDirectory.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/profiling/CounterDirectory.cpp b/src/profiling/CounterDirectory.cpp
index b8eddb4140..0f6147f833 100644
--- a/src/profiling/CounterDirectory.cpp
+++ b/src/profiling/CounterDirectory.cpp
@@ -50,7 +50,7 @@ const Category* CounterDirectory::RegisterCategory(const std::string& categoryNa
const Device* CounterDirectory::RegisterDevice(const std::string& deviceName,
uint16_t cores,
- const armnn::Optional<std::string>& parentCategoryName)
+ const arm::pipe::Optional<std::string>& parentCategoryName)
{
// Check that the given device name is valid
if (deviceName.empty() ||
@@ -112,7 +112,7 @@ const Device* CounterDirectory::RegisterDevice(const std::string& deviceName,
const CounterSet* CounterDirectory::RegisterCounterSet(const std::string& counterSetName,
uint16_t count,
- const armnn::Optional<std::string>& parentCategoryName)
+ const arm::pipe::Optional<std::string>& parentCategoryName)
{
// Check that the given counter set name is valid
if (counterSetName.empty() ||
@@ -184,10 +184,10 @@ const Counter* CounterDirectory::RegisterCounter(const std::string& applicationN
double multiplier,
const std::string& name,
const std::string& description,
- const armnn::Optional<std::string>& units,
- const armnn::Optional<uint16_t>& numberOfCores,
- const armnn::Optional<uint16_t>& deviceUid,
- const armnn::Optional<uint16_t>& counterSetUid)
+ const arm::pipe::Optional<std::string>& units,
+ const arm::pipe::Optional<uint16_t>& numberOfCores,
+ const arm::pipe::Optional<uint16_t>& deviceUid,
+ const arm::pipe::Optional<uint16_t>& counterSetUid)
{
// Check that the given parent category name is valid
if (parentCategoryName.empty() ||
@@ -498,7 +498,7 @@ CountersIt CounterDirectory::FindCounter(const std::string& counterName) const
});
}
-uint16_t CounterDirectory::GetNumberOfCores(const armnn::Optional<uint16_t>& numberOfCores,
+uint16_t CounterDirectory::GetNumberOfCores(const arm::pipe::Optional<uint16_t>& numberOfCores,
uint16_t deviceUid)
{
// To get the number of cores, apply the following rules: