aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ISendCounterPacket.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-09-05 12:02:04 +0100
committerJim Flynn Arm <jim.flynn@arm.com>2019-09-18 16:24:39 +0000
commit42f9d9e8fdb15f418240a64a7b089df611a015a0 (patch)
tree7fa74bb038d1b58f45789fe533ba6a422e2bd6df /src/profiling/ISendCounterPacket.hpp
parent8355ec982eb3ff51a6a8042fe760138638ca550b (diff)
downloadarmnn-42f9d9e8fdb15f418240a64a7b089df611a015a0.tar.gz
IVGCVSW-3691 Implement SendCounterPacket.SendCounterDirectoryPacket() function
* Changed the signature of SendCounterDirectoryPacket to accept any ICounterDirectory object * Added helper methods to the SendCounterPacket class for creating the records * Created mock classes for testing * Added unit tests for both SendCounterDirectoryPacket and the helper methods * Added unit tests for the SWTrace utility functions * Added ReadUint8 utility function for getting single byte out of a buffer * Disabled extra sign-conversion warning in the conversion macro Change-Id: Ie2dddcd6824ed07b623f0cd78d9b7d05c5b70c39 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src/profiling/ISendCounterPacket.hpp')
-rw-r--r--src/profiling/ISendCounterPacket.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiling/ISendCounterPacket.hpp b/src/profiling/ISendCounterPacket.hpp
index a64e0dd0f3..d666f8bc36 100644
--- a/src/profiling/ISendCounterPacket.hpp
+++ b/src/profiling/ISendCounterPacket.hpp
@@ -5,7 +5,7 @@
#pragma once
-#include "CounterDirectory.hpp"
+#include "ICounterDirectory.hpp"
namespace armnn
{
@@ -24,7 +24,7 @@ public:
virtual void SendStreamMetaDataPacket() = 0;
/// Create and write a CounterDirectoryPacket from the parameters to the buffer.
- virtual void SendCounterDirectoryPacket(const CounterDirectory& counterDirectory) = 0;
+ virtual void SendCounterDirectoryPacket(const ICounterDirectory& counterDirectory) = 0;
/// Create and write a PeriodicCounterCapturePacket from the parameters to the buffer.
virtual void SendPeriodicCounterCapturePacket(uint64_t timestamp, const IndexValuePairsVector& values) = 0;