From 9789702c0b276ca9518e590f30465da7e76a940f Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Sun, 2 Feb 2020 12:52:59 +0000 Subject: IVGCVSW-4393 Register backend counters Signed-off-by: David Monahan Change-Id: I419ecc2fce4b7e0fcaeb6d1f9cb687c0b660125d Signed-off-by: Jim Flynn --- src/profiling/ICounterRegistry.hpp | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/profiling/ICounterRegistry.hpp (limited to 'src/profiling/ICounterRegistry.hpp') diff --git a/src/profiling/ICounterRegistry.hpp b/src/profiling/ICounterRegistry.hpp new file mode 100644 index 0000000000..75bc8ef97f --- /dev/null +++ b/src/profiling/ICounterRegistry.hpp @@ -0,0 +1,52 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include +#include + +namespace armnn +{ + +namespace profiling +{ + +class ICounterRegistry +{ +public: + virtual ~ICounterRegistry() {} + + // Register profiling objects + virtual const Category* RegisterCategory (const std::string& categoryName, + const Optional& deviceUid, + const Optional& counterSetUid) = 0; + + virtual const Device* RegisterDevice (const std::string& deviceName, + uint16_t cores, + const Optional& parentCategoryName) = 0; + + virtual const CounterSet* RegisterCounterSet(const std::string& counterSetName, + uint16_t count, + const Optional& parentCategoryName) = 0; + + virtual 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& units, + const Optional& numberOfCores, + const Optional& deviceUid, + const Optional& counterSetUid) = 0; + +}; + +} // namespace profiling + +} // namespace armnn -- cgit v1.2.1