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 /tests | |
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 'tests')
-rw-r--r-- | tests/profiling/gatordmock/tests/GatordMockTests.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/profiling/gatordmock/tests/GatordMockTests.cpp b/tests/profiling/gatordmock/tests/GatordMockTests.cpp index 1556058ed3..ff007bbc63 100644 --- a/tests/profiling/gatordmock/tests/GatordMockTests.cpp +++ b/tests/profiling/gatordmock/tests/GatordMockTests.cpp @@ -3,6 +3,7 @@ // SPDX-License-Identifier: MIT // +#include <ArmNNProfilingServiceInitialiser.hpp> #include <DirectoryCaptureCommandHandler.hpp> #include <GatordMockService.hpp> #include <ProfilingService.hpp> @@ -254,7 +255,8 @@ TEST_CASE("GatorDMockEndToEnd") options.m_EnableProfiling = true; options.m_TimelineEnabled = true; - arm::pipe::ProfilingService profilingService; + armnn::ArmNNProfilingServiceInitialiser initialiser; + arm::pipe::ProfilingService profilingService(arm::pipe::MAX_ARMNN_COUNTER, initialiser); profilingService.ResetExternalProfilingOptions(options, true); // Bring the profiling service to the "WaitingForAck" state @@ -417,8 +419,8 @@ TEST_CASE("GatorDMockTimeLineActivation") FAIL("Failed to receive StreamMetaData"); } - armnn::MockBackendProfilingService mockProfilingService = armnn::MockBackendProfilingService::Instance(); - armnn::MockBackendProfilingContext *mockBackEndProfilingContext = mockProfilingService.GetContext(); + armnn::MockBackendProfilingService mockProfilingService = armnn::MockBackendProfilingService::Instance(); + armnn::MockBackendProfilingContext* mockBackEndProfilingContext = mockProfilingService.GetContext(); // Send Ack from GatorD mockService.SendConnectionAck(); |