diff options
author | Jim Flynn <jim.flynn@arm.com> | 2019-10-24 18:07:44 +0100 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2019-10-25 12:26:00 +0100 |
commit | 8b20065e8e139901f09e2da1a761c6225048102a (patch) | |
tree | 39bff65b9ca07caff094585176fb576497fe42ae /src/profiling/test | |
parent | 00f3aaf282c53b47f4cebfa4b29d7039da883bc1 (diff) | |
download | armnn-8b20065e8e139901f09e2da1a761c6225048102a.tar.gz |
IVGCVSW-4028 Add TimelinePacketWriterFactory to ProfilingService
Change-Id: I1baf6ff49fc591577efab8190352f2ae5a7dc5e5
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/test')
-rw-r--r-- | src/profiling/test/SendTimelinePacketTests.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/profiling/test/SendTimelinePacketTests.cpp b/src/profiling/test/SendTimelinePacketTests.cpp index 4045d263fa..9b144bb3d3 100644 --- a/src/profiling/test/SendTimelinePacketTests.cpp +++ b/src/profiling/test/SendTimelinePacketTests.cpp @@ -403,4 +403,15 @@ BOOST_AUTO_TEST_CASE(GetGuidsFromProfilingService) BOOST_CHECK(dynamicGuid == expectedDynamicValue); } +BOOST_AUTO_TEST_CASE(GetTimelinePackerWriterFromProfilingService) +{ + armnn::Runtime::CreationOptions::ExternalProfilingOptions options; + options.m_EnableProfiling = true; + ProfilingService& profilingService = ProfilingService::Instance(); + profilingService.ResetExternalProfilingOptions(options, true); + + std::unique_ptr<ISendTimelinePacket> writer = profilingService.GetSendTimelinePacket(); + BOOST_CHECK(writer != nullptr); +} + BOOST_AUTO_TEST_SUITE_END() |