diff options
author | Francis Murtagh <francis.murtagh@arm.com> | 2019-09-04 15:25:02 +0100 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2019-09-05 11:11:20 +0100 |
commit | 3a161988ebb9e5406d2bcab6fc3a06f8545eb588 (patch) | |
tree | f51f8d18544a20362f671475bd0844d331a2a60e /src/profiling/ProfilingUtils.hpp | |
parent | 68f78d8ef0134aaaf10ee4db94e808f68f1ba2a8 (diff) | |
download | armnn-3a161988ebb9e5406d2bcab6fc3a06f8545eb588.tar.gz |
IVGCVSW-3692 Implement SendPeriodicCounterCapturePacket() function
Change-Id: Ic976fc36955bec5e7721d1e34e89e7be79e23053
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Diffstat (limited to 'src/profiling/ProfilingUtils.hpp')
-rw-r--r-- | src/profiling/ProfilingUtils.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/profiling/ProfilingUtils.hpp b/src/profiling/ProfilingUtils.hpp index 12770aaee5..fe58ee13d1 100644 --- a/src/profiling/ProfilingUtils.hpp +++ b/src/profiling/ProfilingUtils.hpp @@ -5,6 +5,8 @@ #pragma once +#include <armnn/Exceptions.hpp> + #include <stdint.h> namespace armnn @@ -13,14 +15,23 @@ namespace armnn namespace profiling { +void WriteUint64(unsigned char* buffer, unsigned int offset, uint64_t value); + void WriteUint32(unsigned char* buffer, unsigned int offset, uint32_t value); void WriteUint16(unsigned char* buffer, unsigned int offset, uint16_t value); +uint64_t ReadUint64(const unsigned char* buffer, unsigned int offset); + uint32_t ReadUint32(const unsigned char* buffer, unsigned int offset); uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset); +class BufferExhaustion : public armnn::Exception +{ + using Exception::Exception; +}; + } // namespace profiling } // namespace armnn
\ No newline at end of file |