aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/Runtime.cpp
diff options
context:
space:
mode:
authorDerek Lamberti <derek.lamberti@arm.com>2020-06-19 14:33:05 +0100
committerDerek Lamberti <derek.lamberti@arm.com>2020-06-25 11:36:51 +0100
commita08d29b815987e98e7f45519e6a55eee0f085e5f (patch)
treec098756dd4d067ad3500b6d89cae32a3f4299193 /src/armnn/Runtime.cpp
parentd5ba9aad6fa12345744d442ba0d865686ae3aea3 (diff)
downloadarmnn-a08d29b815987e98e7f45519e6a55eee0f085e5f.tar.gz
Minor improvement of inference profiling
* Start inference profiling at the actual beginning * Add profiling events for EnqueueInputs and EnqueueOutputs * Add profiling event for working memory allocation * Refactor Execute body to remove code duplication * forward arguments to constructors rather than copy Change-Id: Iacab85f0a02e88e2423885f86f97e4dba4037319 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src/armnn/Runtime.cpp')
-rw-r--r--src/armnn/Runtime.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/armnn/Runtime.cpp b/src/armnn/Runtime.cpp
index 5692494836..28e2df22ab 100644
--- a/src/armnn/Runtime.cpp
+++ b/src/armnn/Runtime.cpp
@@ -308,6 +308,7 @@ Status Runtime::EnqueueWorkload(NetworkId networkId,
const InputTensors& inputTensors,
const OutputTensors& outputTensors)
{
+ ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "EnqueueWorkload");
LoadedNetwork* loadedNetwork = GetLoadedNetworkPtr(networkId);
static thread_local NetworkId lastId = networkId;