diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-07-09 07:28:37 +0100 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-07-09 13:48:46 +0100 |
commit | 1fdeb99ca83bac83e0cacb332880e2e62dd22198 (patch) | |
tree | 76aa91baf9d3b7306b2fa15e1a50dc0bbfe3af26 /src/profiling/ProfilingUtils.hpp | |
parent | 86953ed331027bd557a80d782d5ee99298de35c4 (diff) | |
download | armnn-1fdeb99ca83bac83e0cacb332880e2e62dd22198.tar.gz |
IVGCVSW-5095 Make timeline report the Linux Thread ID not the pthread ID
Change-Id: Id69519fd9ef57716de4e389ed4156710a904c701
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/ProfilingUtils.hpp')
-rw-r--r-- | src/profiling/ProfilingUtils.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profiling/ProfilingUtils.hpp b/src/profiling/ProfilingUtils.hpp index 95fa780934..2ead31652d 100644 --- a/src/profiling/ProfilingUtils.hpp +++ b/src/profiling/ProfilingUtils.hpp @@ -28,7 +28,7 @@ namespace armnn namespace profiling { -constexpr unsigned int ThreadIdSize = sizeof(std::thread::id); // Is platform dependent +constexpr unsigned int ThreadIdSize = sizeof(int); // Is platform dependent struct SwTraceHeader { @@ -245,7 +245,7 @@ TimelinePacketStatus WriteTimelineEventClassBinary(uint64_t profilingGuid, unsigned int& numberOfBytesWritten); TimelinePacketStatus WriteTimelineEventBinary(uint64_t timestamp, - std::thread::id threadId, + int threadId, uint64_t profilingGuid, unsigned char* buffer, unsigned int bufferSize, @@ -271,6 +271,6 @@ Packet ReceivePacket(const unsigned char* buffer, uint32_t length); namespace std { -bool operator==(const std::vector<uint8_t>& left, std::thread::id right); +bool operator==(const std::vector<uint8_t>& left, int right); } // namespace std |