diff options
Diffstat (limited to 'src/profiling')
-rw-r--r-- | src/profiling/CommandHandler.cpp | 4 | ||||
-rw-r--r-- | src/profiling/PeriodicCounterCapture.cpp | 7 | ||||
-rw-r--r-- | src/profiling/ProfilingService.cpp | 7 | ||||
-rw-r--r-- | src/profiling/test/ProfilingTests.hpp | 3 |
4 files changed, 12 insertions, 9 deletions
diff --git a/src/profiling/CommandHandler.cpp b/src/profiling/CommandHandler.cpp index d9722b3183..bb60ac18f0 100644 --- a/src/profiling/CommandHandler.cpp +++ b/src/profiling/CommandHandler.cpp @@ -6,7 +6,7 @@ #include "CommandHandler.hpp" #include "ProfilingService.hpp" -#include <boost/log/trivial.hpp> +#include <armnn/Logging.hpp> namespace armnn { @@ -75,7 +75,7 @@ void CommandHandler::HandleCommands(IProfilingConnection& profilingConnection) catch (const Exception& e) { // Log the error and continue - BOOST_LOG_TRIVIAL(warning) << "An error has occurred when handling a command: " << e.what() << std::endl; + ARMNN_LOG(warning) << "An error has occurred when handling a command: " << e.what(); // Did we get here because the socket failed? if ( !profilingConnection.IsOpen() ) { diff --git a/src/profiling/PeriodicCounterCapture.cpp b/src/profiling/PeriodicCounterCapture.cpp index 12e58f2800..f3bb5e9202 100644 --- a/src/profiling/PeriodicCounterCapture.cpp +++ b/src/profiling/PeriodicCounterCapture.cpp @@ -5,7 +5,8 @@ #include "PeriodicCounterCapture.hpp" -#include <boost/log/trivial.hpp> +#include <armnn/Logging.hpp> + #include <iostream> namespace armnn @@ -85,8 +86,8 @@ void PeriodicCounterCapture::Capture(const IReadCounterValues& readCounterValues catch (const Exception& e) { // Report the error and continue - BOOST_LOG_TRIVIAL(warning) << "An error has occurred when getting a counter value: " - << e.what() << std::endl; + ARMNN_LOG(warning) << "An error has occurred when getting a counter value: " + << e.what(); continue; } values.emplace_back(std::make_pair(requestedId, counterValue)); diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp index ddd4d80b06..409e71dfa0 100644 --- a/src/profiling/ProfilingService.cpp +++ b/src/profiling/ProfilingService.cpp @@ -5,7 +5,8 @@ #include "ProfilingService.hpp" -#include <boost/log/trivial.hpp> +#include <armnn/Logging.hpp> + #include <boost/format.hpp> namespace armnn @@ -118,8 +119,8 @@ void ProfilingService::Update() } catch (const Exception& e) { - BOOST_LOG_TRIVIAL(warning) << "An error has occurred when creating the profiling connection: " - << e.what() << std::endl; + ARMNN_LOG(warning) << "An error has occurred when creating the profiling connection: " + << e.what(); } // Move to the next state diff --git a/src/profiling/test/ProfilingTests.hpp b/src/profiling/test/ProfilingTests.hpp index 65c182b622..cfac691cff 100644 --- a/src/profiling/test/ProfilingTests.hpp +++ b/src/profiling/test/ProfilingTests.hpp @@ -7,9 +7,10 @@ #include "SendCounterPacketTests.hpp" +#include <armnn/Logging.hpp> + #include <CommandHandlerFunctor.hpp> #include <IProfilingConnection.hpp> -#include <Logging.hpp> #include <ProfilingService.hpp> #include <boost/polymorphic_cast.hpp> |