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/TimelineUtilityMethods.cpp | |
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/TimelineUtilityMethods.cpp')
-rw-r--r-- | src/profiling/TimelineUtilityMethods.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profiling/TimelineUtilityMethods.cpp b/src/profiling/TimelineUtilityMethods.cpp index 2727bd6e9b..fe5c6b1340 100644 --- a/src/profiling/TimelineUtilityMethods.cpp +++ b/src/profiling/TimelineUtilityMethods.cpp @@ -2,9 +2,9 @@ // Copyright © 2019 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // - -#include "TimelineUtilityMethods.hpp" #include "LabelsAndEventClasses.hpp" +#include <Threads.hpp> +#include "TimelineUtilityMethods.hpp" namespace armnn { @@ -368,7 +368,7 @@ ProfilingDynamicGuid TimelineUtilityMethods::RecordEvent(ProfilingGuid entityGui uint64_t timestamp = GetTimestamp(); // Get the thread id - std::thread::id threadId = std::this_thread::get_id(); + int threadId = armnnUtils::Threads::GetCurrentThreadId(); // Generate a GUID for the event ProfilingDynamicGuid eventGuid = profiling::ProfilingService::GetNextGuid(); |