diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-09-05 12:02:04 +0100 |
---|---|---|
committer | Jim Flynn Arm <jim.flynn@arm.com> | 2019-09-18 16:24:39 +0000 |
commit | 42f9d9e8fdb15f418240a64a7b089df611a015a0 (patch) | |
tree | 7fa74bb038d1b58f45789fe533ba6a422e2bd6df /src/profiling/ProfilingUtils.cpp | |
parent | 8355ec982eb3ff51a6a8042fe760138638ca550b (diff) | |
download | armnn-42f9d9e8fdb15f418240a64a7b089df611a015a0.tar.gz |
IVGCVSW-3691 Implement SendCounterPacket.SendCounterDirectoryPacket() function
* Changed the signature of SendCounterDirectoryPacket to accept any
ICounterDirectory object
* Added helper methods to the SendCounterPacket class for creating the records
* Created mock classes for testing
* Added unit tests for both SendCounterDirectoryPacket and the helper methods
* Added unit tests for the SWTrace utility functions
* Added ReadUint8 utility function for getting single byte out of a buffer
* Disabled extra sign-conversion warning in the conversion macro
Change-Id: Ie2dddcd6824ed07b623f0cd78d9b7d05c5b70c39
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/profiling/ProfilingUtils.cpp')
-rw-r--r-- | src/profiling/ProfilingUtils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/profiling/ProfilingUtils.cpp b/src/profiling/ProfilingUtils.cpp index e356ed739e..7a8c678054 100644 --- a/src/profiling/ProfilingUtils.cpp +++ b/src/profiling/ProfilingUtils.cpp @@ -158,6 +158,13 @@ uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset) return static_cast<uint16_t>(value); } +uint8_t ReadUint8(const unsigned char* buffer, unsigned int offset) +{ + BOOST_ASSERT(buffer); + + return buffer[offset]; +} + std::string GetSoftwareInfo() { return std::string("ArmNN"); |