aboutsummaryrefslogtreecommitdiff
path: root/src/profiling
diff options
context:
space:
mode:
authorDerek Lamberti <derek.lamberti@arm.com>2020-08-25 13:05:59 +0100
committerDerek Lamberti <derek.lamberti@arm.com>2020-08-27 13:57:27 +0000
commiteac4adb5bf493ba7d1b00ef6ecd6b56a42ea3f3d (patch)
treec95267339cabe7ff2b95ef93b53bc27857cc0ab0 /src/profiling
parent43528ac476836b225b076fbced7a73a8c87e277c (diff)
downloadarmnn-eac4adb5bf493ba7d1b00ef6ecd6b56a42ea3f3d.tar.gz
Export Armnn cmake
Change-Id: I3c317e835aba5feafda240393ca26b6aebe8d655 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src/profiling')
-rw-r--r--src/profiling/PeriodicCounterCapture.cpp2
-rw-r--r--src/profiling/backends/BackendProfiling.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/profiling/PeriodicCounterCapture.cpp b/src/profiling/PeriodicCounterCapture.cpp
index 8ff5e7e049..d914e85cfb 100644
--- a/src/profiling/PeriodicCounterCapture.cpp
+++ b/src/profiling/PeriodicCounterCapture.cpp
@@ -59,7 +59,7 @@ void PeriodicCounterCapture::DispatchPeriodicCounterCapturePacket(
const armnn::BackendId& backendId, const std::vector<Timestamp>& timestampValues)
{
// Report counter values
- for (const auto timestampInfo : timestampValues)
+ for (const auto& timestampInfo : timestampValues)
{
std::vector<CounterValue> backendCounterValues = timestampInfo.counterValues;
for_each(backendCounterValues.begin(), backendCounterValues.end(), [&](CounterValue& backendCounterValue)
diff --git a/src/profiling/backends/BackendProfiling.cpp b/src/profiling/backends/BackendProfiling.cpp
index 4e6de93062..135174b478 100644
--- a/src/profiling/backends/BackendProfiling.cpp
+++ b/src/profiling/backends/BackendProfiling.cpp
@@ -32,7 +32,7 @@ IProfilingGuidGenerator& BackendProfiling::GetProfilingGuidGenerator()
void BackendProfiling::ReportCounters(const std::vector<Timestamp>& timestamps)
{
- for (const auto timestampInfo : timestamps)
+ for (const auto& timestampInfo : timestamps)
{
std::vector<CounterValue> backendCounterValues = timestampInfo.counterValues;
for_each(backendCounterValues.begin(), backendCounterValues.end(), [&](CounterValue& backendCounterValue)