diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-01 14:25:34 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-03 12:37:13 +0000 |
commit | 0aed4f9820983afabaf682af3a603f1aab1bf823 (patch) | |
tree | 8b10750f7f21240061e9e594ba1c0e642b3c34d4 /src/profiling/ProfilingUtils.hpp | |
parent | 781ced9d1472486f86314e320a00d62329dcd363 (diff) | |
download | armnn-0aed4f9820983afabaf682af3a603f1aab1bf823.tar.gz |
IVGCVSW-3927 Create the Timeline Label Binary Packet
* Added a new utility function to create a Timeline Label
Binary Packet and write it to a given buffer
* Added new enumeration to be reused for subsequent utility
functions
* Added unit tests
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: Icbabefb9050f3f3b1a30082eabf875593378001f
Diffstat (limited to 'src/profiling/ProfilingUtils.hpp')
-rw-r--r-- | src/profiling/ProfilingUtils.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/profiling/ProfilingUtils.hpp b/src/profiling/ProfilingUtils.hpp index 09b04f186f..5afe6d8ead 100644 --- a/src/profiling/ProfilingUtils.hpp +++ b/src/profiling/ProfilingUtils.hpp @@ -119,6 +119,19 @@ std::string GetHardwareVersion(); std::string GetProcessName(); +enum class TimelinePacketStatus +{ + Ok, + Error, + BufferExhaustion +}; + +TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid, + const std::string& label, + unsigned char* buffer, + unsigned int bufferSize, + unsigned int& numberOfBytesWritten); + class BufferExhaustion : public armnn::Exception { using Exception::Exception; |