20.02
|
#include "ProfilingMocks.hpp"
#include <BufferManager.hpp>
#include <ProfilingService.hpp>
#include <ProfilingUtils.hpp>
#include <SendTimelinePacket.hpp>
#include <TimelinePacketWriterFactory.hpp>
#include <boost/test/unit_test.hpp>
#include <LabelsAndEventClasses.hpp>
#include <functional>
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (SendTimelineMessageDirectoryPackageTest) | |
BOOST_AUTO_TEST_CASE (SendTimelineEntityWithEventClassPacketTest) | |
BOOST_AUTO_TEST_CASE (SendEventClassAfterTimelineEntityPacketTest) | |
BOOST_AUTO_TEST_CASE (SendTimelinePacketTests2) | |
BOOST_AUTO_TEST_CASE (SendTimelinePacketTests3) | |
BOOST_AUTO_TEST_CASE (GetGuidsFromProfilingService) | |
BOOST_AUTO_TEST_CASE (GetTimelinePackerWriterFromProfilingService) | |
BOOST_AUTO_TEST_CASE (CheckStaticGuidsAndEvents) | |
BOOST_AUTO_TEST_CASE | ( | SendTimelineMessageDirectoryPackageTest | ) |
Definition at line 23 of file SendTimelinePacketTests.cpp.
References BOOST_CHECK(), MockBufferManager::GetReadableBuffer(), TimelinePacketWriterFactory::GetSendTimelinePacket(), SwTraceMessage::m_ArgNames, SwTraceMessage::m_ArgTypes, SwTraceMessage::m_Id, SwTraceMessage::m_Name, SwTraceMessage::m_UiName, armnn::profiling::ReadSwTraceMessage(), armnn::profiling::ReadUint32(), armnn::profiling::ReadUint8(), and armnn::profiling::uint32_t_size.
BOOST_AUTO_TEST_CASE | ( | SendTimelineEntityWithEventClassPacketTest | ) |
Definition at line 137 of file SendTimelinePacketTests.cpp.
References BOOST_CHECK(), MockBufferManager::GetReadableBuffer(), TimelinePacketWriterFactory::GetSendTimelinePacket(), MockBufferManager::MarkRead(), armnn::profiling::ReadUint32(), armnn::profiling::ReadUint64(), and armnn::profiling::uint32_t_size.
BOOST_AUTO_TEST_CASE | ( | SendEventClassAfterTimelineEntityPacketTest | ) |
Definition at line 209 of file SendTimelinePacketTests.cpp.
References BOOST_CHECK(), MockBufferManager::GetReadableBuffer(), TimelinePacketWriterFactory::GetSendTimelinePacket(), MockBufferManager::MarkRead(), armnn::profiling::ReadBytes(), armnn::profiling::ReadUint32(), armnn::profiling::ReadUint64(), and armnn::profiling::uint32_t_size.
BOOST_AUTO_TEST_CASE | ( | SendTimelinePacketTests2 | ) |
Definition at line 364 of file SendTimelinePacketTests.cpp.
References TimelinePacketWriterFactory::GetSendTimelinePacket().
BOOST_AUTO_TEST_CASE | ( | SendTimelinePacketTests3 | ) |
Definition at line 374 of file SendTimelinePacketTests.cpp.
References MockBufferManager::GetReadableBuffer(), and TimelinePacketWriterFactory::GetSendTimelinePacket().
BOOST_AUTO_TEST_CASE | ( | GetGuidsFromProfilingService | ) |
Definition at line 396 of file SendTimelinePacketTests.cpp.
References BOOST_CHECK(), ProfilingService::GenerateStaticId(), ProfilingService::Instance(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, ProfilingService::NextGuid(), options, profilingService, and ProfilingService::ResetExternalProfilingOptions().
BOOST_AUTO_TEST_CASE | ( | GetTimelinePackerWriterFromProfilingService | ) |
Definition at line 415 of file SendTimelinePacketTests.cpp.
References BOOST_CHECK(), ProfilingService::GetSendTimelinePacket(), ProfilingService::Instance(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, options, profilingService, and ProfilingService::ResetExternalProfilingOptions().
BOOST_AUTO_TEST_CASE | ( | CheckStaticGuidsAndEvents | ) |
Definition at line 426 of file SendTimelinePacketTests.cpp.
References LabelsAndEventClasses::ARMNN_PROFILING_EOL_EVENT_CLASS, LabelsAndEventClasses::ARMNN_PROFILING_SOL_EVENT_CLASS, BOOST_AUTO_TEST_SUITE_END(), BOOST_CHECK(), LabelsAndEventClasses::INDEX_GUID, LabelsAndEventClasses::INDEX_LABEL, LabelsAndEventClasses::NAME_GUID, LabelsAndEventClasses::NAME_LABEL, LabelsAndEventClasses::TYPE_GUID, and LabelsAndEventClasses::TYPE_LABEL.