20.02
|
#include "CounterDirectory.hpp"
#include "CounterIdMap.hpp"
#include "Holder.hpp"
#include "MockBackend.hpp"
#include "MockBackendId.hpp"
#include "PeriodicCounterCapture.hpp"
#include "PeriodicCounterSelectionCommandHandler.hpp"
#include "ProfilingStateMachine.hpp"
#include "ProfilingUtils.hpp"
#include "RequestCounterDirectoryCommandHandler.hpp"
#include <armnn/utility/IgnoreUnused.hpp>
#include <armnn/BackendId.hpp>
#include <armnn/Logging.hpp>
#include <armnn/profiling/ISendTimelinePacket.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <boost/test/unit_test.hpp>
#include <vector>
#include <cstdint>
#include <limits>
#include <backends/BackendProfiling.hpp>
Go to the source code of this file.
Functions | |
Packet | PacketWriter (uint32_t period, std::vector< uint16_t > countervalues) |
BOOST_AUTO_TEST_CASE (BackendProfilingCounterRegisterMockBackendTest) | |
BOOST_AUTO_TEST_CASE (TestBackendCounters) | |
BOOST_AUTO_TEST_CASE (TestBackendCounterLogging) | |
BOOST_AUTO_TEST_CASE (BackendProfilingContextGetSendTimelinePacket) | |
BOOST_AUTO_TEST_CASE (GetProfilingGuidGenerator) | |
BOOST_AUTO_TEST_CASE | ( | BackendProfilingCounterRegisterMockBackendTest | ) |
Definition at line 112 of file BackendProfilingTests.cpp.
References BOOST_CHECK(), ProfilingService::ConfigureProfilingService(), IRuntime::Create(), ProfilingService::GetCounterMappings(), ICounterMappings::GetGlobalId(), ProfilingService::Instance(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, IRuntime::CreationOptions::m_ProfilingOptions, armnn::MockBackendId(), options, profilingService, and ProfilingService::ResetExternalProfilingOptions().
BOOST_AUTO_TEST_CASE | ( | TestBackendCounters | ) |
Definition at line 137 of file BackendProfilingTests.cpp.
References armnn::profiling::Active, BOOST_CHECK(), armnn::CpuAcc, Version::GetEncodedValue(), armnn::GpuAcc, ProfilingService::Instance(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, IRuntime::CreationOptions::m_ProfilingOptions, armnn::profiling::NotConnected, options, PacketWriter(), profilingService, CounterIdMap::RegisterMapping(), PacketVersionResolver::ResolvePacketVersion(), ProfilingStateMachine::TransitionToState(), and armnn::profiling::WaitingForAck.
BOOST_AUTO_TEST_CASE | ( | TestBackendCounterLogging | ) |
Definition at line 367 of file BackendProfilingTests.cpp.
References armnn::profiling::Active, BOOST_CHECK(), armnn::CpuAcc, armnn::Fatal, Version::GetEncodedValue(), armnn::GpuAcc, ProfilingService::Instance(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, IRuntime::CreationOptions::m_ProfilingOptions, armnn::profiling::NotConnected, options, PacketWriter(), profilingService, PacketVersionResolver::ResolvePacketVersion(), armnn::SetAllLoggingSinks(), armnn::SetLogFilter(), ProfilingStateMachine::TransitionToState(), armnn::profiling::WaitingForAck, and armnn::Warning.
BOOST_AUTO_TEST_CASE | ( | BackendProfilingContextGetSendTimelinePacket | ) |
Definition at line 447 of file BackendProfilingTests.cpp.
References BOOST_CHECK(), ProfilingService::ConfigureProfilingService(), IRuntime::Create(), MockBackendProfilingContext::GetBackendProfiling(), MockBackendProfilingService::GetContext(), ProfilingService::Instance(), MockBackendProfilingService::Instance(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, IRuntime::CreationOptions::m_ProfilingOptions, options, profilingService, and ProfilingService::ResetExternalProfilingOptions().
BOOST_AUTO_TEST_CASE | ( | GetProfilingGuidGenerator | ) |
Definition at line 480 of file BackendProfilingTests.cpp.
References BOOST_AUTO_TEST_SUITE_END(), BOOST_CHECK(), ProfilingService::ConfigureProfilingService(), IRuntime::Create(), MockBackendProfilingContext::GetBackendProfiling(), MockBackendProfilingService::GetContext(), ProfilingService::Instance(), MockBackendProfilingService::Instance(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, IRuntime::CreationOptions::m_ProfilingOptions, IProfilingGuidGenerator::NextGuid(), options, profilingService, and ProfilingService::ResetExternalProfilingOptions().
Packet PacketWriter | ( | uint32_t | period, |
std::vector< uint16_t > | countervalues | ||
) |
Definition at line 91 of file BackendProfilingTests.cpp.
References BOOST_AUTO_TEST_SUITE(), armnn::profiling::WriteUint16(), and armnn::profiling::WriteUint32().
Referenced by BOOST_AUTO_TEST_CASE().