diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-02-27 16:21:41 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-03-18 12:59:19 +0000 |
commit | e6a2ccd09060ba93203ddc5a7f79260cedf2c147 (patch) | |
tree | c542464311f16acde42fbe01df9f4d8a78feff64 /src/timelineDecoder/TimelineCaptureCommandHandler.hpp | |
parent | eba482e691bb314e1379d29f267ec3b46a082d01 (diff) | |
download | armnn-e6a2ccd09060ba93203ddc5a7f79260cedf2c147.tar.gz |
IVGCVSW-4161 Provide for per model call back registration
!armnn:2810
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: Idf56d42bd767baa5df0059a2f489f75281f8ac71
Diffstat (limited to 'src/timelineDecoder/TimelineCaptureCommandHandler.hpp')
-rw-r--r-- | src/timelineDecoder/TimelineCaptureCommandHandler.hpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/timelineDecoder/TimelineCaptureCommandHandler.hpp b/src/timelineDecoder/TimelineCaptureCommandHandler.hpp index b69e615b56..e143b5f6e5 100644 --- a/src/timelineDecoder/TimelineCaptureCommandHandler.hpp +++ b/src/timelineDecoder/TimelineCaptureCommandHandler.hpp @@ -5,9 +5,9 @@ #pragma once -#include <CommandHandlerFunctor.hpp> #include "armnn/profiling/ITimelineDecoder.hpp" +#include <CommandHandlerFunctor.hpp> #include <Packet.hpp> #include <ProfilingUtils.hpp> @@ -31,11 +31,11 @@ public: uint32_t packetId, uint32_t version, ITimelineDecoder& timelineDecoder, - uint32_t threadId_size) - : CommandHandlerFunctor(familyId, packetId, version), - m_TimelineDecoder(timelineDecoder), - m_ThreadIdSize(threadId_size), - m_PacketLength(0) + uint32_t threadIdSize = 0) + : CommandHandlerFunctor(familyId, packetId, version) + , m_TimelineDecoder(timelineDecoder) + , m_ThreadIdSize(threadIdSize) + , m_PacketLength(0) {} void operator()(const armnn::profiling::Packet& packet) override; @@ -46,12 +46,13 @@ public: void ReadRelationship(const unsigned char* data, uint32_t& offset); void ReadEvent(const unsigned char* data, uint32_t& offset); + void SetThreadIdSize(uint32_t size); + private: void ParseData(const armnn::profiling::Packet& packet); ITimelineDecoder& m_TimelineDecoder; - - const uint32_t m_ThreadIdSize; + uint32_t m_ThreadIdSize; unsigned int m_PacketLength; static const ReadFunction m_ReadFunctions[]; |