aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CounterDirectory.hpp
diff options
context:
space:
mode:
authorKeith Davis <keith.davis@arm.com>2019-12-02 15:12:19 +0000
committerKeith Davis <keith.davis@arm.com>2019-12-13 16:21:12 +0000
commite394bd99f1a55e099445823b7a951f0faa84d439 (patch)
treeced6e6d4a2932bda64c1f4c5e280b82d87b77929 /src/profiling/CounterDirectory.hpp
parent60a20fb62c992c4c6369bb7f532957f3e151f3d8 (diff)
downloadarmnn-e394bd99f1a55e099445823b7a951f0faa84d439.tar.gz
IVGCVSW-4178 Add code to increment the 3 ArmNN counters
* Increment at Runtime.cpp | BackendRegistry.cpp | LoadedNetwork.cpp * Update unit tests * UID generation is now handled by backends Signed-off-by: Keith Davis <keith.davis@arm.com> Change-Id: Ifa53763409078c14839675206d8b260cdc36a8df
Diffstat (limited to 'src/profiling/CounterDirectory.hpp')
-rw-r--r--src/profiling/CounterDirectory.hpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/profiling/CounterDirectory.hpp b/src/profiling/CounterDirectory.hpp
index bff5cfef98..b0ddbcea3f 100644
--- a/src/profiling/CounterDirectory.hpp
+++ b/src/profiling/CounterDirectory.hpp
@@ -8,6 +8,7 @@
#include "ICounterDirectory.hpp"
#include <armnn/Optional.hpp>
+#include <armnn/BackendId.hpp>
#include <string>
#include <unordered_set>
@@ -37,16 +38,18 @@ public:
const CounterSet* RegisterCounterSet(const std::string& counterSetName,
uint16_t count = 0,
const Optional<std::string>& parentCategoryName = EmptyOptional());
- const Counter* RegisterCounter (const std::string& parentCategoryName,
- uint16_t counterClass,
- uint16_t interpolation,
- double multiplier,
- const std::string& name,
- const std::string& description,
- const Optional<std::string>& units = EmptyOptional(),
- const Optional<uint16_t>& numberOfCores = EmptyOptional(),
- const Optional<uint16_t>& deviceUid = EmptyOptional(),
- const Optional<uint16_t>& counterSetUid = EmptyOptional());
+ const Counter* RegisterCounter(const BackendId& backendId,
+ const uint16_t uid,
+ const std::string& parentCategoryName,
+ uint16_t counterClass,
+ uint16_t interpolation,
+ double multiplier,
+ const std::string& name,
+ const std::string& description,
+ const Optional<std::string>& units = EmptyOptional(),
+ const Optional<uint16_t>& numberOfCores = EmptyOptional(),
+ const Optional<uint16_t>& deviceUid = EmptyOptional(),
+ const Optional<uint16_t>& counterSetUid = EmptyOptional());
// Getters for counts
uint16_t GetCategoryCount() const override { return boost::numeric_cast<uint16_t>(m_Categories.size()); }