aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/Holder.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-10-04 17:17:42 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-10-07 10:08:58 +0000
commite0e6efc1072358b843f47d2ffffc3d873a4889c6 (patch)
treef328699a6cbce13f0b64d74692ee92be2a22477a /src/profiling/Holder.hpp
parent8a837179ad883e9b5dd982a25cc5e94f245f79ed (diff)
downloadarmnn-e0e6efc1072358b843f47d2ffffc3d873a4889c6.tar.gz
IVGCVSW-3937 Refactor and improve the PeriodicCounterCapture class
* Conformed the PeriodicCounterCapture class to the other thread-based classes * Code refactoring * Renamed CounterValues file to ICounterValues * Removed no longer used file * Updated unit tests accordingly Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I8c42aa17e17a90cda5cf86eb8ac2d13501ecdadc
Diffstat (limited to 'src/profiling/Holder.hpp')
-rw-r--r--src/profiling/Holder.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/profiling/Holder.hpp b/src/profiling/Holder.hpp
index d8d1f5bfb4..72ca0914a9 100644
--- a/src/profiling/Holder.hpp
+++ b/src/profiling/Holder.hpp
@@ -2,6 +2,7 @@
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
+
#pragma once
#include <mutex>
@@ -17,11 +18,14 @@ class CaptureData
{
public:
CaptureData()
- : m_CapturePeriod(0), m_CounterIds() {};
+ : m_CapturePeriod(0)
+ , m_CounterIds() {}
CaptureData(uint32_t capturePeriod, std::vector<uint16_t>& counterIds)
- : m_CapturePeriod(capturePeriod), m_CounterIds(counterIds) {};
+ : m_CapturePeriod(capturePeriod)
+ , m_CounterIds(counterIds) {}
CaptureData(const CaptureData& captureData)
- : m_CapturePeriod(captureData.m_CapturePeriod), m_CounterIds(captureData.m_CounterIds) {};
+ : m_CapturePeriod(captureData.m_CapturePeriod)
+ , m_CounterIds(captureData.m_CounterIds) {}
CaptureData& operator= (const CaptureData& captureData);
@@ -39,7 +43,7 @@ class Holder
{
public:
Holder()
- : m_CaptureData() {};
+ : m_CaptureData() {}
CaptureData GetCaptureData() const;
void SetCaptureData(uint32_t capturePeriod, const std::vector<uint16_t>& counterIds);