aboutsummaryrefslogtreecommitdiff
path: root/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2019-10-15 14:22:13 +0100
committerJim Flynn Arm <jim.flynn@arm.com>2019-10-21 16:52:03 +0000
commit15db745d59a796fd05e3bb5a8b735f25710bdf22 (patch)
tree01e5e320bd92cb152464adb82c02e3b37342b571 /tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp
parent422f2fb6c7ef13e48124991af6f27e78934b8ece (diff)
downloadarmnn-15db745d59a796fd05e3bb5a8b735f25710bdf22.tar.gz
IVGCVSW-3989 Create the Counter Directory Decoder
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: If388e60434eae39d82b639d2275680679963624c
Diffstat (limited to 'tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp')
-rw-r--r--tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp b/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp
index 90d52a7848..893351463f 100644
--- a/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp
+++ b/tests/profiling/gatordmock/PeriodicCounterCaptureCommandHandler.cpp
@@ -3,6 +3,7 @@
// SPDX-License-Identifier: MIT
//
+#include "MockUtils.hpp"
#include "PeriodicCounterCaptureCommandHandler.hpp"
#include <ProfilingUtils.hpp>
@@ -19,26 +20,6 @@ namespace gatordmock
using boost::numeric_cast;
-std::string CentreAlignFormatting(const std::string stringToPass, const int spacingWidth)
-{
- std::stringstream outputStream, centrePadding;
- int padding = spacingWidth - static_cast<int>(stringToPass.size());
-
- for (int i = 0; i < padding / 2; ++i)
- {
- centrePadding << " ";
- }
-
- outputStream << centrePadding.str() << stringToPass << centrePadding.str();
-
- if (padding > 0 && padding % 2 != 0)
- {
- outputStream << " ";
- }
-
- return outputStream.str();
-}
-
void PeriodicCounterCaptureCommandHandler::ParseData(const armnn::profiling::Packet& packet)
{
std::vector<uint16_t> counterIds;