diff options
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 + + |