aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/LoadedNetwork.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2020-07-14 09:50:59 +0100
committerJim Flynn <jim.flynn@arm.com>2020-07-14 17:20:04 +0100
commitf7713212f080771e0c6d53d939da59a9ea2e7da0 (patch)
treec176d4448ed36804b6bac3806d55c74f113e2256 /src/armnn/LoadedNetwork.cpp
parent6da6a45d09ac8d7ea956c09ba241c9e0840ecb25 (diff)
downloadarmnn-f7713212f080771e0c6d53d939da59a9ea2e7da0.tar.gz
IVGCVSW-5101 Add a SOL/EOL and a process ID label to Network
Change-Id: I6261f46404a3aab5c069bca40586994d31d26fe8 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/armnn/LoadedNetwork.cpp')
-rw-r--r--src/armnn/LoadedNetwork.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/armnn/LoadedNetwork.cpp b/src/armnn/LoadedNetwork.cpp
index 0dd75aa649..593539d3ee 100644
--- a/src/armnn/LoadedNetwork.cpp
+++ b/src/armnn/LoadedNetwork.cpp
@@ -7,6 +7,7 @@
#include "Layer.hpp"
#include "Graph.hpp"
#include "Network.hpp"
+#include <Processes.hpp>
#include "Runtime.hpp"
#include "Profiling.hpp"
#include "HeapProfiling.hpp"
@@ -196,6 +197,13 @@ LoadedNetwork::LoadedNetwork(std::unique_ptr<OptimizedNetwork> net,
if (timelineUtils)
{
timelineUtils->CreateTypedEntity(networkGuid, LabelsAndEventClasses::NETWORK_GUID);
+ // 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();
+ std::stringstream ss;
+ ss << processID;
+ timelineUtils->MarkEntityWithLabel(networkGuid, ss.str(), LabelsAndEventClasses::PROCESS_ID_GUID);
}
//Then create workloads.
@@ -298,6 +306,11 @@ void LoadedNetwork::SendNetworkStructure()
timelineUtils->Commit();
}
+profiling::ProfilingGuid LoadedNetwork::GetNetworkGuid()
+{
+ return m_OptimizedNetwork->GetGuid();
+}
+
TensorInfo LoadedNetwork::GetInputTensorInfo(LayerBindingId layerId) const
{
for (auto&& inputLayer : m_OptimizedNetwork->GetGraph().GetInputLayers())