diff options
author | FinnWilliamsArm <Finn.Williams@arm.com> | 2019-09-16 15:45:42 +0100 |
---|---|---|
committer | Jim Flynn Arm <jim.flynn@arm.com> | 2019-09-25 05:28:48 +0000 |
commit | f6e534a82d167403c5980e3ea3b67135ff9be78b (patch) | |
tree | 1d355ea0c6e9d2c42836c0a378f4cc10978abf6c /src/profiling/CounterValues.hpp | |
parent | 95e73d77b9a79f7d350a39d85f07d09cd58422cc (diff) | |
download | armnn-f6e534a82d167403c5980e3ea3b67135ff9be78b.tar.gz |
IVGCVSW-3411 Add the Counter Values array and accessor methods
Signed-off-by: FinnWilliamsArm <Finn.Williams@arm.com>
Change-Id: I4fa2428a83b93cbe58b821344206e2f7ce9e37e7
Diffstat (limited to 'src/profiling/CounterValues.hpp')
-rw-r--r-- | src/profiling/CounterValues.hpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/profiling/CounterValues.hpp b/src/profiling/CounterValues.hpp new file mode 100644 index 0000000000..75ecad9961 --- /dev/null +++ b/src/profiling/CounterValues.hpp @@ -0,0 +1,38 @@ +// +// Copyright © 2019 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// +#pragma once + +#include <cstdint> + +namespace armnn +{ + +namespace profiling +{ + +class IReadCounterValues +{ +public: + virtual uint16_t GetCounterCount() const = 0; + virtual void GetCounterValue(uint16_t index, uint32_t& value) const = 0; + virtual ~IReadCounterValues() {} +}; + +class IWriteCounterValues : public IReadCounterValues +{ +public: + virtual void SetCounterValue(uint16_t index, uint32_t value) = 0; + virtual void AddCounterValue(uint16_t index, uint32_t value) = 0; + virtual void SubtractCounterValue(uint16_t index, uint32_t value) = 0; + virtual void IncrementCounterValue(uint16_t index) = 0; + virtual void DecrementCounterValue(uint16_t index) = 0; + virtual ~IWriteCounterValues() {} +}; + +} // namespace profiling + +} // namespace armnn + + |