20.08
|
#include "ProfilingMocks.hpp"
#include <BufferManager.hpp>
#include <LabelsAndEventClasses.hpp>
#include <ProfilingService.hpp>
#include <ProfilingUtils.hpp>
#include <SendTimelinePacket.hpp>
#include <Threads.hpp>
#include <TimelinePacketWriterFactory.hpp>
#include <common/include/SwTrace.hpp>
#include <boost/test/unit_test.hpp>
#include <functional>
#include <Runtime.hpp>
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 27 of file SendTimelinePacketTests.cpp.
References MockBufferManager::GetReadableBuffer(), TimelinePacketWriterFactory::GetSendTimelinePacket(), armnn::profiling::ReadUint32(), armnn::profiling::ReadUint8(), armnn::profiling::ThreadIdSize, and armnn::profiling::uint32_t_size.
BOOST_AUTO_TEST_CASE | ( | SendTimelineEntityWithEventClassPacketTest | ) |
Definition at line 154 of file SendTimelinePacketTests.cpp.
References 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 232 of file SendTimelinePacketTests.cpp.
References armnnUtils::Threads::GetCurrentThreadId(), MockBufferManager::GetReadableBuffer(), TimelinePacketWriterFactory::GetSendTimelinePacket(), MockBufferManager::MarkRead(), armnn::profiling::ReadBytes(), armnn::profiling::ReadUint32(), armnn::profiling::ReadUint64(), armnn::profiling::ThreadIdSize, and armnn::profiling::uint32_t_size.
BOOST_AUTO_TEST_CASE | ( | SendTimelinePacketTests2 | ) |
Definition at line 392 of file SendTimelinePacketTests.cpp.
References TimelinePacketWriterFactory::GetSendTimelinePacket().
BOOST_AUTO_TEST_CASE | ( | SendTimelinePacketTests3 | ) |
Definition at line 402 of file SendTimelinePacketTests.cpp.
References MockBufferManager::GetReadableBuffer(), and TimelinePacketWriterFactory::GetSendTimelinePacket().
BOOST_AUTO_TEST_CASE | ( | GetGuidsFromProfilingService | ) |
Definition at line 426 of file SendTimelinePacketTests.cpp.
References ProfilingService::GetNextGuid(), ProfilingService::GetStaticId(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, IRuntime::CreationOptions::m_ProfilingOptions, and ProfilingService::ResetExternalProfilingOptions().
BOOST_AUTO_TEST_CASE | ( | GetTimelinePackerWriterFromProfilingService | ) |
Definition at line 447 of file SendTimelinePacketTests.cpp.
References ProfilingService::GetSendTimelinePacket(), IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling, and ProfilingService::ResetExternalProfilingOptions().
BOOST_AUTO_TEST_CASE | ( | CheckStaticGuidsAndEvents | ) |
Definition at line 458 of file SendTimelinePacketTests.cpp.
References LabelsAndEventClasses::ARMNN_PROFILING_EOL_EVENT_CLASS, LabelsAndEventClasses::ARMNN_PROFILING_SOL_EVENT_CLASS, BOOST_AUTO_TEST_SUITE_END(), LabelsAndEventClasses::INDEX_GUID, LabelsAndEventClasses::INDEX_LABEL, LabelsAndEventClasses::NAME_GUID, LabelsAndEventClasses::NAME_LABEL, LabelsAndEventClasses::TYPE_GUID, and LabelsAndEventClasses::TYPE_LABEL.