diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-04 15:03:58 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-06 19:12:00 +0000 |
commit | 344302581b66677a748a456f370752db75adde21 (patch) | |
tree | 6463b11c70c501e46a2a93d7d57f4f68e4b78cb6 /src/profiling/test/ProfilingTestUtils.hpp | |
parent | 9c315305aaa31a3d1610738cd40f558381f8c687 (diff) | |
download | armnn-344302581b66677a748a456f370752db75adde21.tar.gz |
IVGCVSW-6816 Inject counter registration into ProfilingService
Change-Id: I87ce3a1306eced9fc347cc383d9c7bc8994f0b0c
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/test/ProfilingTestUtils.hpp')
-rw-r--r-- | src/profiling/test/ProfilingTestUtils.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/profiling/test/ProfilingTestUtils.hpp b/src/profiling/test/ProfilingTestUtils.hpp index 32a156ee42..323a762918 100644 --- a/src/profiling/test/ProfilingTestUtils.hpp +++ b/src/profiling/test/ProfilingTestUtils.hpp @@ -71,19 +71,21 @@ namespace pipe class ProfilingServiceRuntimeHelper : public ProfilingService { public: - ProfilingServiceRuntimeHelper(IProfilingService& profilingService) - : m_ProfilingService(profilingService) {} + ProfilingServiceRuntimeHelper(uint16_t maxGlobalCounterId, + IInitialiseProfilingService& initialiser, + arm::pipe::IProfilingService& profilingService) + : ProfilingService(maxGlobalCounterId, initialiser), m_ProfilingService(profilingService) {} ~ProfilingServiceRuntimeHelper() = default; BufferManager& GetProfilingBufferManager() { - return GetBufferManager(static_cast<ProfilingService&>(m_ProfilingService)); + return GetBufferManager(static_cast<arm::pipe::ProfilingService&>(m_ProfilingService)); } - IProfilingService& m_ProfilingService; + arm::pipe::IProfilingService& m_ProfilingService; void ForceTransitionToState(ProfilingState newState) { - TransitionToState(static_cast<ProfilingService&>(m_ProfilingService), newState); + TransitionToState(static_cast<arm::pipe::ProfilingService&>(m_ProfilingService), newState); } }; |