From 344302581b66677a748a456f370752db75adde21 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 4 Mar 2022 15:03:58 +0000 Subject: IVGCVSW-6816 Inject counter registration into ProfilingService Change-Id: I87ce3a1306eced9fc347cc383d9c7bc8994f0b0c Signed-off-by: Jim Flynn --- tests/profiling/gatordmock/tests/GatordMockTests.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/profiling') 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 #include #include #include @@ -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(); -- cgit v1.2.1