diff options
author | Ferran Balaguer <ferran.balaguer@arm.com> | 2019-08-30 15:49:15 +0100 |
---|---|---|
committer | Ferran Balaguer Arm <ferran.balaguer@arm.com> | 2019-09-02 11:55:43 +0000 |
commit | af5c46bde858e88392214be41361588c1ebee5f0 (patch) | |
tree | 7315123e3e0ad7257d9764dba388ba6048feb38a /src/profiling/ISendCounterPacket.hpp | |
parent | 770862800da4776ba4dcebd441e1e609ffd26d14 (diff) | |
download | armnn-af5c46bde858e88392214be41361588c1ebee5f0.tar.gz |
IVGCVSW-3434 Create the SendCounterPacket interface
Signed-off-by: Ferran Balaguer <ferran.balaguer@arm.com>
Change-Id: I0d9b0ab12f17cb86544163ce3f0dc4945151e9e1
Diffstat (limited to 'src/profiling/ISendCounterPacket.hpp')
-rw-r--r-- | src/profiling/ISendCounterPacket.hpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/profiling/ISendCounterPacket.hpp b/src/profiling/ISendCounterPacket.hpp new file mode 100644 index 0000000000..eeec5d4b60 --- /dev/null +++ b/src/profiling/ISendCounterPacket.hpp @@ -0,0 +1,41 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "CounterDirectory.hpp" + +namespace armnn +{ + +namespace profiling +{ + +class ISendCounterPacket +{ +public: + /// Create and write a StreamMetaDataPacket in the buffer + virtual void SendStreamMetaDataPacket() = 0; + + /// Create and write a CounterDirectoryPacket from the parameters to the buffer. + virtual void SendCounterDirectoryPacket(const Category& category, const std::vector<Counter>& counters) = 0; + + /// Create and write a PeriodicCounterCapturePacket from the parameters to the buffer. + virtual void SendPeriodicCounterCapturePacket(uint64_t timestamp, const std::vector<uint32_t>& counterValues, + const std::vector<uint16_t>& counterUids) = 0; + + /// Create and write a PeriodicCounterSelectionPacket from the parameters to the buffer. + virtual void SendPeriodicCounterSelectionPacket(uint32_t capturePeriod, + const std::vector<uint16_t>& selectedCounterIds) = 0; + + /// Set a "ready to read" flag in the buffer to notify the reading thread to start reading it. + virtual void SetReadyToRead() = 0; + +}; + +} // namespace profiling + +} // namespace armnn + |