aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/SendTimelinePacket.cpp
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/SendTimelinePacket.cpp
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/SendTimelinePacket.cpp')
-rw-r--r--src/profiling/SendTimelinePacket.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/profiling/SendTimelinePacket.cpp b/src/profiling/SendTimelinePacket.cpp
index a0fbf5c01f..707bfba5c4 100644
--- a/src/profiling/SendTimelinePacket.cpp
+++ b/src/profiling/SendTimelinePacket.cpp
@@ -79,7 +79,9 @@ void SendTimelinePacket::SendTimelineEntityBinaryPacket(uint64_t profilingGuid)
m_BufferSize);
}
-void SendTimelinePacket::SendTimelineEventBinaryPacket(uint64_t timestamp, uint32_t threadId, uint64_t profilingGuid)
+void SendTimelinePacket::SendTimelineEventBinaryPacket(uint64_t timestamp,
+ std::thread::id threadId,
+ uint64_t profilingGuid)
{
FORWARD_WRITE_BINARY_FUNC(WriteTimelineEventBinaryPacket,
timestamp,