From 3184c907b2420e6c66485529f336251b2b62aecf Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Wed, 18 Mar 2020 10:57:30 +0000 Subject: IVGCVSW-4463 Change ProfilingService to a member of runtime from a singleton Signed-off-by: Sadik Armagan Change-Id: I345c39a10a4693a500aa1687d9a5cee76da791c3 --- src/profiling/test/FileOnlyProfilingDecoratorTests.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/profiling/test/FileOnlyProfilingDecoratorTests.cpp') diff --git a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp index 7db42de416..baadb8555d 100644 --- a/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp +++ b/src/profiling/test/FileOnlyProfilingDecoratorTests.cpp @@ -30,8 +30,9 @@ class FileOnlyHelperService : public ProfilingService // Wait for a notification from the send thread bool WaitForPacketsSent(uint32_t timeout = 1000) { - return ProfilingService::WaitForPacketSent(ProfilingService::Instance(), timeout); + return ProfilingService::WaitForPacketSent(m_ProfilingService, timeout); } + armnn::profiling::ProfilingService m_ProfilingService; }; BOOST_AUTO_TEST_SUITE(FileOnlyProfilingDecoratorTests) @@ -52,7 +53,7 @@ BOOST_AUTO_TEST_CASE(DumpOutgoingValidFileEndToEnd, * boost::unit_test::disabled FileOnlyHelperService helper; // Enable the profiling service - ProfilingService& profilingService = ProfilingService::Instance(); + armnn::profiling::ProfilingService profilingService; profilingService.ResetExternalProfilingOptions(options, true); // Bring the profiling service to the "WaitingForAck" state profilingService.Update(); -- cgit v1.2.1