From 77b284e6988b9a131d6abb3140ec6663c2ae84ae Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Sun, 13 Mar 2022 20:53:35 +0000 Subject: IVGCVSW-6848 Move Process.[ch]pp from armnnUtils to profiling/common Change-Id: I13353f50293eae565a75ccfda37209350512bbc6 Signed-off-by: Jim Flynn --- src/armnn/LoadedNetwork.cpp | 14 +++++++++----- src/armnn/test/RuntimeTests.cpp | 15 +++++++++------ 2 files changed, 18 insertions(+), 11 deletions(-) (limited to 'src/armnn') diff --git a/src/armnn/LoadedNetwork.cpp b/src/armnn/LoadedNetwork.cpp index 46c1ce58aa..a720769873 100644 --- a/src/armnn/LoadedNetwork.cpp +++ b/src/armnn/LoadedNetwork.cpp @@ -6,22 +6,26 @@ #include "LoadedNetwork.hpp" #include "Layer.hpp" #include "Graph.hpp" -#include #include "Profiling.hpp" #include "HeapProfiling.hpp" #include "WorkingMemHandle.hpp" +#include #include #include -#include #include #include #include -#include -#include + #include +#include + +#include + +#include + #include namespace armnn @@ -262,7 +266,7 @@ LoadedNetwork::LoadedNetwork(std::unique_ptr net, // Mark the network with a start of life event timelineUtils->RecordEvent(networkGuid, LabelsAndEventClasses::ARMNN_PROFILING_SOL_EVENT_CLASS); // and with the process ID - int processID = armnnUtils::Processes::GetCurrentId(); + int processID = arm::pipe::GetCurrentId(); std::stringstream ss; ss << processID; timelineUtils->MarkEntityWithLabel(networkGuid, ss.str(), LabelsAndEventClasses::PROCESS_ID_GUID); diff --git a/src/armnn/test/RuntimeTests.cpp b/src/armnn/test/RuntimeTests.cpp index 89a87197bd..fc16dbbad9 100644 --- a/src/armnn/test/RuntimeTests.cpp +++ b/src/armnn/test/RuntimeTests.cpp @@ -3,17 +3,20 @@ // SPDX-License-Identifier: MIT // -#include -#include -#include -#include #include #include -#include #include + +#include +#include +#include #include +#include + #include +#include + #include #include @@ -733,7 +736,7 @@ TEST_CASE("ProfilingEnableCpuRef") offset); // Process ID Label - int processID = armnnUtils::Processes::GetCurrentId(); + int processID = arm::pipe::GetCurrentId(); std::stringstream ss; ss << processID; std::string processIdLabel = ss.str(); -- cgit v1.2.1