aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ISendTimelinePacket.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-11-04 14:05:28 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-11-05 15:34:21 +0000
commit378bbfc0d7e97f7e63dc7e39117751a5ac3f21fe (patch)
tree84567dc58b1c7776adce48008db0f27a3420c0c5 /src/profiling/ISendTimelinePacket.hpp
parent2ffcc4179648bbd6fb08342969391a2bcd027221 (diff)
downloadarmnn-378bbfc0d7e97f7e63dc7e39117751a5ac3f21fe.tar.gz
IVGCVSW-4065 Use platform-specific thread id size in Timeline packets
* Using std::thread::id as a general data type for thread id * Added new profiling util functions for reading/writing a thread id to/from a buffer * Fixed code and unit tests accordingly Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I1aaa3bdb740c8a97010f655b1e9f7581b52e7aff
Diffstat (limited to 'src/profiling/ISendTimelinePacket.hpp')
-rw-r--r--src/profiling/ISendTimelinePacket.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/profiling/ISendTimelinePacket.hpp b/src/profiling/ISendTimelinePacket.hpp
index 34157b819a..a95413455a 100644
--- a/src/profiling/ISendTimelinePacket.hpp
+++ b/src/profiling/ISendTimelinePacket.hpp
@@ -10,6 +10,7 @@
#include <algorithm>
#include <string>
#include <vector>
+#include <thread>
namespace armnn
{
@@ -29,7 +30,9 @@ public:
virtual void SendTimelineEntityBinaryPacket(uint64_t profilingGuid) = 0;
/// Create and write a TimelineEventBinaryPacket from the parameters to the buffer.
- virtual void SendTimelineEventBinaryPacket(uint64_t timestamp, uint32_t threadId, uint64_t profilingGuid) = 0;
+ virtual void SendTimelineEventBinaryPacket(uint64_t timestamp,
+ std::thread::id threadId,
+ uint64_t profilingGuid) = 0;
/// Create and write a TimelineEventClassBinaryPacket from the parameters to the buffer.
virtual void SendTimelineEventClassBinaryPacket(uint64_t profilingGuid) = 0;