| <!-- Copyright (c) 2020 ARM Limited. --> |
| <!-- --> |
| <!-- SPDX-License-Identifier: MIT --> |
| <!-- --> |
| <!-- HTML header for doxygen 1.8.13--> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.13"/> |
| <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>ArmNN: src/timelineDecoder/tests/TimelineTests.cpp File Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtreedata.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(initResizable); |
| </script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname"> |
|  <span id="projectnumber">20.02</span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.13 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| </script> |
| <div id="main-nav"></div> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| $(document).ready(function(){initNavTree('_timeline_tests_8cpp.xhtml','');}); |
| </script> |
| <div id="doc-content"> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div class="header"> |
| <div class="summary"> |
| <a href="#func-members">Functions</a> </div> |
| <div class="headertitle"> |
| <div class="title">TimelineTests.cpp File Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <div class="textblock"><code>#include <<a class="el" href="_timeline_capture_command_handler_8hpp_source.xhtml">TimelineCaptureCommandHandler.hpp</a>></code><br /> |
| <code>#include <<a class="el" href="_timeline_directory_capture_command_handler_8hpp_source.xhtml">TimelineDirectoryCaptureCommandHandler.hpp</a>></code><br /> |
| <code>#include <<a class="el" href="_timeline_decoder_8hpp_source.xhtml">TimelineDecoder.hpp</a>></code><br /> |
| <code>#include <<a class="el" href="_command_handler_functor_8hpp_source.xhtml">CommandHandlerFunctor.hpp</a>></code><br /> |
| <code>#include <<a class="el" href="_profiling_service_8hpp_source.xhtml">ProfilingService.hpp</a>></code><br /> |
| <code>#include <<a class="el" href="_packet_buffer_8hpp_source.xhtml">PacketBuffer.hpp</a>></code><br /> |
| <code>#include <<a class="el" href="_timeline_packet_writer_factory_8hpp_source.xhtml">TimelinePacketWriterFactory.hpp</a>></code><br /> |
| <code>#include <boost/test/test_tools.hpp></code><br /> |
| <code>#include <boost/test/unit_test_suite.hpp></code><br /> |
| </div> |
| <p><a href="_timeline_tests_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| Functions</h2></td></tr> |
| <tr class="memitem:ac7f0a814e6156ecdbcfa323befed6645"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a> (const unsigned char *packetBuffer, <a class="el" href="classarmnn_1_1profiling_1_1_command_handler_functor.xhtml">profiling::CommandHandlerFunctor</a> &<a class="el" href="classarmnn_1_1profiling_1_1_command_handler.xhtml">CommandHandler</a>)</td></tr> |
| <tr class="separator:ac7f0a814e6156ecdbcfa323befed6645"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5d037fb2a573ca0e8b284ff0f4ba4b5b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#a5d037fb2a573ca0e8b284ff0f4ba4b5b">PushEntity</a> (<a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> &model, const <a class="el" href="struct_i_timeline_decoder_1_1_entity.xhtml">ITimelineDecoder::Entity</a> entity)</td></tr> |
| <tr class="separator:a5d037fb2a573ca0e8b284ff0f4ba4b5b"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a3b3046bf976af84f1afaf90604fdb5a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#a3b3046bf976af84f1afaf90604fdb5a5">PushEventClass</a> (<a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> &model, const <a class="el" href="struct_i_timeline_decoder_1_1_event_class.xhtml">ITimelineDecoder::EventClass</a> eventClass)</td></tr> |
| <tr class="separator:a3b3046bf976af84f1afaf90604fdb5a5"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a152615febf988e6fc95d7e3284f0b139"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#a152615febf988e6fc95d7e3284f0b139">PushEvent</a> (<a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> &model, const <a class="el" href="struct_i_timeline_decoder_1_1_event.xhtml">ITimelineDecoder::Event</a> event)</td></tr> |
| <tr class="separator:a152615febf988e6fc95d7e3284f0b139"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ad3941381c7ffa8b2804d4d5708abd488"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#ad3941381c7ffa8b2804d4d5708abd488">PushLabel</a> (<a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> &model, const <a class="el" href="struct_i_timeline_decoder_1_1_label.xhtml">ITimelineDecoder::Label</a> label)</td></tr> |
| <tr class="separator:ad3941381c7ffa8b2804d4d5708abd488"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5f9ab9422ed7d18bdc693338d3e5e6b6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#a5f9ab9422ed7d18bdc693338d3e5e6b6">PushRelationship</a> (<a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> &model, const <a class="el" href="struct_i_timeline_decoder_1_1_relationship.xhtml">ITimelineDecoder::Relationship</a> relationship)</td></tr> |
| <tr class="separator:a5f9ab9422ed7d18bdc693338d3e5e6b6"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a48319064222492223dfa27d2ea4b6774"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#a48319064222492223dfa27d2ea4b6774">BOOST_AUTO_TEST_CASE</a> (TimelineDirectoryTest)</td></tr> |
| <tr class="separator:a48319064222492223dfa27d2ea4b6774"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa50403517c534c8fb2ee7d6ff102a60f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#aa50403517c534c8fb2ee7d6ff102a60f">BOOST_AUTO_TEST_CASE</a> (TimelineCaptureTest)</td></tr> |
| <tr class="separator:aa50403517c534c8fb2ee7d6ff102a60f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a0c3d8093d05ab9aaef39f204123a5d80"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_tests_8cpp.xhtml#a0c3d8093d05ab9aaef39f204123a5d80">BOOST_AUTO_TEST_CASE</a> (TimelineCaptureTestMultipleStringsInBuffer)</td></tr> |
| <tr class="separator:a0c3d8093d05ab9aaef39f204123a5d80"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <h2 class="groupheader">Function Documentation</h2> |
| <a id="a48319064222492223dfa27d2ea4b6774"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a48319064222492223dfa27d2ea4b6774">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/3]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| <td>(</td> |
| <td class="paramtype">TimelineDirectoryTest </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00071">71</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="_encode_version_8hpp_source.xhtml#l00045">Version::GetEncodedValue()</a>, <a class="el" href="_buffer_manager_8cpp_source.xhtml#l00089">BufferManager::GetReadableBuffer()</a>, <a class="el" href="_timeline_packet_writer_factory_8cpp_source.xhtml#l00016">TimelinePacketWriterFactory::GetSendTimelinePacket()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00042">SwTraceMessage::m_ArgNames</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00041">SwTraceMessage::m_ArgTypes</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00038">SwTraceMessage::m_Id</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00039">SwTraceMessage::m_Name</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00040">SwTraceMessage::m_UiName</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00320">armnn::profiling::ReadSwTraceMessage()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00218">armnn::profiling::ReadUint8()</a>, <a class="el" href="_packet_version_resolver_8cpp_source.xhtml#l00055">PacketVersionResolver::ResolvePacketVersion()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00023">SendTimelinePacketToCommandHandler()</a>, and <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">armnn::profiling::uint32_t_size</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  uint32_t uint8_t_size = <span class="keyword">sizeof</span>(uint8_t);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  uint32_t <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  uint32_t uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  uint32_t threadId_size = <span class="keyword">sizeof</span>(std::thread::id);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml">profiling::BufferManager</a> bufferManager(5);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml">profiling::TimelinePacketWriterFactory</a> timelinePacketWriterFactory(bufferManager);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  std::unique_ptr<profiling::ISendTimelinePacket> sendTimelinePacket =</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  timelinePacketWriterFactory.GetSendTimelinePacket();</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml">profiling::PacketVersionResolver</a> packetVersionResolver;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_directory_capture_command_handler.xhtml">TimelineDirectoryCaptureCommandHandler</a> timelineDirectoryCaptureCommandHandler(</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  1, 0, packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(1, 0).<a class="code" href="classarmnn_1_1profiling_1_1_version.xhtml#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>(), <span class="keyword">true</span>);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  sendTimelinePacket->SendTimelineMessageDirectoryPackage();</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  sendTimelinePacket->Commit();</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  std::vector<profiling::SwTraceMessage> swTraceBufferMessages;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = uint32_t_size * 2;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  std::unique_ptr<profiling::IPacketBuffer> packetBuffer = bufferManager.GetReadableBuffer();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  uint8_t readStreamVersion = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a74b483b652cc32f03151b10a1366d607">ReadUint8</a>(packetBuffer, offset);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readStreamVersion == 4);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  offset += uint8_t_size;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  uint8_t readPointerBytes = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a74b483b652cc32f03151b10a1366d607">ReadUint8</a>(packetBuffer, offset);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readPointerBytes == uint64_t_size);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  offset += uint8_t_size;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  uint8_t readThreadIdBytes = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a74b483b652cc32f03151b10a1366d607">ReadUint8</a>(packetBuffer, offset);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readThreadIdBytes == threadId_size);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  offset += uint8_t_size;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  uint32_t declarationSize = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">profiling::ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">for</span>(uint32_t i = 0; i < declarationSize; ++i)</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  swTraceBufferMessages.push_back(<a class="code" href="namespacearmnn_1_1profiling.xhtml#aaa7e58f376ab96ad3fb6dbd16074a5cb">profiling::ReadSwTraceMessage</a>(packetBuffer->GetReadableData(), offset));</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(packetBuffer->GetReadableData(), timelineDirectoryCaptureCommandHandler);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">for</span>(uint32_t index = 0; index < declarationSize; ++index)</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  {</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml">profiling::SwTraceMessage</a>& bufferMessage = swTraceBufferMessages[index];</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml">profiling::SwTraceMessage</a>& handlerMessage = timelineDirectoryCaptureCommandHandler.m_SwTraceMessages[index];</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab13844df5477a9ab8f13069e3d8abad6">m_Name</a> == handlerMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab13844df5477a9ab8f13069e3d8abad6">m_Name</a>);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a76824b89f32ec62fa7c74e40bd529502">m_UiName</a> == handlerMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a76824b89f32ec62fa7c74e40bd529502">m_UiName</a>);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a06ba83abe49bb158c4e07578223ac084">m_Id</a> == handlerMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a06ba83abe49bb158c4e07578223ac084">m_Id</a>);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a9c94f2a097b07a882c1b7fdedaaac846">m_ArgTypes</a>.size() == handlerMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a9c94f2a097b07a882c1b7fdedaaac846">m_ArgTypes</a>.size());</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">for</span>(uint32_t i = 0; i < bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a9c94f2a097b07a882c1b7fdedaaac846">m_ArgTypes</a>.size(); ++i)</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a9c94f2a097b07a882c1b7fdedaaac846">m_ArgTypes</a>[i] == handlerMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a9c94f2a097b07a882c1b7fdedaaac846">m_ArgTypes</a>[i]);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab3327c5b4232f372888d41886fafb366">m_ArgNames</a>.size() == handlerMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab3327c5b4232f372888d41886fafb366">m_ArgNames</a>.size());</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">for</span>(uint32_t i = 0; i < bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab3327c5b4232f372888d41886fafb366">m_ArgNames</a>.size(); ++i)</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(bufferMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab3327c5b4232f372888d41886fafb366">m_ArgNames</a>[i] == handlerMessage.<a class="code" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab3327c5b4232f372888d41886fafb366">m_ArgNames</a>[i]);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_version_xhtml_a0ab0d5a402c197d4093cbc5fdbf81214"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_version.xhtml#a0ab0d5a402c197d4093cbc5fdbf81214">armnn::profiling::Version::GetEncodedValue</a></div><div class="ttdeci">uint32_t GetEncodedValue()</div><div class="ttdef"><b>Definition:</b> <a href="_encode_version_8hpp_source.xhtml#l00045">EncodeVersion.hpp:45</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_ac7f0a814e6156ecdbcfa323befed6645"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a></div><div class="ttdeci">void SendTimelinePacketToCommandHandler(const unsigned char *packetBuffer, profiling::CommandHandlerFunctor &CommandHandler)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00023">TimelineTests.cpp:23</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_xhtml_ac8ad466123304f923e64997ac096926a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml#ac8ad466123304f923e64997ac096926a">armnn::profiling::PacketVersionResolver::ResolvePacketVersion</a></div><div class="ttdeci">Version ResolvePacketVersion(uint32_t familyId, uint32_t packetId) const</div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8cpp_source.xhtml#l00055">PacketVersionResolver.cpp:55</a></div></div> |
| <div class="ttc" id="structarmnn_1_1profiling_1_1_sw_trace_message_xhtml_a06ba83abe49bb158c4e07578223ac084"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a06ba83abe49bb158c4e07578223ac084">armnn::profiling::SwTraceMessage::m_Id</a></div><div class="ttdeci">uint32_t m_Id</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.xhtml#l00038">ProfilingUtils.hpp:38</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml">armnn::profiling::PacketVersionResolver</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8hpp_source.xhtml#l00036">PacketVersionResolver.hpp:36</a></div></div> |
| <div class="ttc" id="structarmnn_1_1profiling_1_1_sw_trace_message_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml">armnn::profiling::SwTraceMessage</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.xhtml#l00036">ProfilingUtils.hpp:36</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a74b483b652cc32f03151b10a1366d607"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a74b483b652cc32f03151b10a1366d607">armnn::profiling::ReadUint8</a></div><div class="ttdeci">uint8_t ReadUint8(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00218">ProfilingUtils.cpp:218</a></div></div> |
| <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aaa7e58f376ab96ad3fb6dbd16074a5cb"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aaa7e58f376ab96ad3fb6dbd16074a5cb">armnn::profiling::ReadSwTraceMessage</a></div><div class="ttdeci">SwTraceMessage ReadSwTraceMessage(const unsigned char *packetBuffer, unsigned int &offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00320">ProfilingUtils.cpp:320</a></div></div> |
| <div class="ttc" id="structarmnn_1_1profiling_1_1_sw_trace_message_xhtml_ab3327c5b4232f372888d41886fafb366"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab3327c5b4232f372888d41886fafb366">armnn::profiling::SwTraceMessage::m_ArgNames</a></div><div class="ttdeci">std::vector< std::string > m_ArgNames</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.xhtml#l00042">ProfilingUtils.hpp:42</a></div></div> |
| <div class="ttc" id="structarmnn_1_1profiling_1_1_sw_trace_message_xhtml_a9c94f2a097b07a882c1b7fdedaaac846"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a9c94f2a097b07a882c1b7fdedaaac846">armnn::profiling::SwTraceMessage::m_ArgTypes</a></div><div class="ttdeci">std::vector< char > m_ArgTypes</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.xhtml#l00041">ProfilingUtils.hpp:41</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00204">ProfilingUtils.cpp:204</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_directory_capture_command_handler_xhtml"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_directory_capture_command_handler.xhtml">armnn::timelinedecoder::TimelineDirectoryCaptureCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_directory_capture_command_handler_8hpp_source.xhtml#l00019">TimelineDirectoryCaptureCommandHandler.hpp:19</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml">armnn::profiling::TimelinePacketWriterFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_packet_writer_factory_8hpp_source.xhtml#l00019">TimelinePacketWriterFactory.hpp:19</a></div></div> |
| <div class="ttc" id="structarmnn_1_1profiling_1_1_sw_trace_message_xhtml_a76824b89f32ec62fa7c74e40bd529502"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#a76824b89f32ec62fa7c74e40bd529502">armnn::profiling::SwTraceMessage::m_UiName</a></div><div class="ttdeci">std::string m_UiName</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.xhtml#l00040">ProfilingUtils.hpp:40</a></div></div> |
| <div class="ttc" id="structarmnn_1_1profiling_1_1_sw_trace_message_xhtml_ab13844df5477a9ab8f13069e3d8abad6"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml#ab13844df5477a9ab8f13069e3d8abad6">armnn::profiling::SwTraceMessage::m_Name</a></div><div class="ttdeci">std::string m_Name</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.xhtml#l00039">ProfilingUtils.hpp:39</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_buffer_manager_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml">armnn::profiling::BufferManager</a></div><div class="ttdef"><b>Definition:</b> <a href="_buffer_manager_8hpp_source.xhtml#l00021">BufferManager.hpp:21</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="aa50403517c534c8fb2ee7d6ff102a60f"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#aa50403517c534c8fb2ee7d6ff102a60f">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/3]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| <td>(</td> |
| <td class="paramtype">TimelineCaptureTest </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00140">140</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::DataLink</a>, <a class="el" href="class_i_timeline_decoder.xhtml#afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b">ITimelineDecoder::DataLink</a>, <a class="el" href="_encode_version_8hpp_source.xhtml#l00045">Version::GetEncodedValue()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00068">TimelineDecoder::GetModel()</a>, <a class="el" href="_buffer_manager_8cpp_source.xhtml#l00089">BufferManager::GetReadableBuffer()</a>, <a class="el" href="_timeline_packet_writer_factory_8cpp_source.xhtml#l00016">TimelinePacketWriterFactory::GetSendTimelinePacket()</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00021">TimelineDecoder::Model::m_Entities</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00022">TimelineDecoder::Model::m_EventClasses</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00023">TimelineDecoder::Model::m_Events</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00024">TimelineDecoder::Model::m_Labels</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00025">TimelineDecoder::Model::m_Relationships</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00046">PushEntity()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00056">PushEvent()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00051">PushEventClass()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00061">PushLabel()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00066">PushRelationship()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_packet_version_resolver_8cpp_source.xhtml#l00055">PacketVersionResolver::ResolvePacketVersion()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00023">SendTimelinePacketToCommandHandler()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00073">TimelineDecoder::SetEntityCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00093">TimelineDecoder::SetEventCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00083">TimelineDecoder::SetEventClassCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00103">TimelineDecoder::SetLabelCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00113">TimelineDecoder::SetRelationshipCallback()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00089">armnn::profiling::WriteBytes()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> threadIdSize = <span class="keyword">sizeof</span>(std::thread::id);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml">profiling::BufferManager</a> bufferManager(50);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml">profiling::TimelinePacketWriterFactory</a> timelinePacketWriterFactory(bufferManager);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  std::unique_ptr<profiling::ISendTimelinePacket> sendTimelinePacket =</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  timelinePacketWriterFactory.GetSendTimelinePacket();</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml">profiling::PacketVersionResolver</a> packetVersionResolver;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml">TimelineDecoder</a> timelineDecoder;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a>& model = timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a1fedc5d6bd2dd5795e760abfb4c62a1b">GetModel</a>();</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_capture_command_handler.xhtml">TimelineCaptureCommandHandler</a> timelineCaptureCommandHandler(</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  1, 1, packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(1, 1).<a class="code" href="classarmnn_1_1profiling_1_1_version.xhtml#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>(), timelineDecoder, threadIdSize);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">using</span> <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> = <a class="code" href="class_i_timeline_decoder.xhtml#a7561a8de32d8a9ff3bfa7de7a89a590a">ITimelineDecoder::TimelineStatus</a>;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a6274842f34566b5d99bbad09dcdc65ff">SetEntityCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a5d037fb2a573ca0e8b284ff0f4ba4b5b">PushEntity</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a93a16fb5384fc547b965badf0255a09c">SetEventClassCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a3b3046bf976af84f1afaf90604fdb5a5">PushEventClass</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ac7a2cae3b6d92cf19f6dde52834220ab">SetEventCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a152615febf988e6fc95d7e3284f0b139">PushEvent</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a836f50363f5f1721c50394cd07f0c6cc">SetLabelCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#ad3941381c7ffa8b2804d4d5708abd488">PushLabel</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ae567c3874fc1734833b03a9e73461426">SetRelationshipCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a5f9ab9422ed7d18bdc693338d3e5e6b6">PushRelationship</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">const</span> uint64_t entityGuid = 111111u;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">const</span> uint64_t eventClassGuid = 22222u;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keyword">const</span> uint64_t timestamp = 33333u;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keyword">const</span> uint64_t eventGuid = 44444u;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keyword">const</span> std::thread::id threadId = std::this_thread::get_id();</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// need to do a bit of work here to extract the value from threadId</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* uCharThreadId = <span class="keyword">new</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>[threadIdSize]();;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  uint64_t uint64ThreadId;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af0cddaa4e116d294dacaaced90ca341c">profiling::WriteBytes</a>(uCharThreadId, 0, &threadId, threadIdSize);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">if</span> (threadIdSize == 4)</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  uint64ThreadId = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">profiling::ReadUint32</a>(uCharThreadId, 0);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  }</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (threadIdSize == 8)</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  {</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  uint64ThreadId = <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa4de2b511faa41accc2c35cadf051124">profiling::ReadUint64</a>(uCharThreadId, 0);</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  }</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">delete</span>[] uCharThreadId;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keyword">const</span> uint64_t labelGuid = 66666u;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  std::string labelName = <span class="stringliteral">"test_label"</span>;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 77777u;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keyword">const</span> uint64_t headGuid = 888888u;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keyword">const</span> uint64_t tailGuid = 999999u;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 10; ++i)</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  {</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="comment">// Send entity</span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  sendTimelinePacket->SendTimelineEntityBinaryPacket(entityGuid);</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  sendTimelinePacket->Commit();</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(bufferManager.GetReadableBuffer()->GetReadableData(),</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  timelineCaptureCommandHandler);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="comment">// Send event class</span></div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  sendTimelinePacket->SendTimelineEventClassBinaryPacket(eventClassGuid);</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  sendTimelinePacket->Commit();</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(bufferManager.GetReadableBuffer()->GetReadableData(),</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  timelineCaptureCommandHandler);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="comment">// Send event</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  sendTimelinePacket->SendTimelineEventBinaryPacket(timestamp, threadId, eventGuid);</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  sendTimelinePacket->Commit();</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(bufferManager.GetReadableBuffer()->GetReadableData(),</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  timelineCaptureCommandHandler);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="comment">// Send label</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  sendTimelinePacket->SendTimelineLabelBinaryPacket(labelGuid, labelName);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  sendTimelinePacket->Commit();</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(bufferManager.GetReadableBuffer()->GetReadableData(),</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  timelineCaptureCommandHandler);</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="comment">// Send relationship</span></div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">profiling::ProfilingRelationshipType</a> relationshipType = profiling::ProfilingRelationshipType::DataLink;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  sendTimelinePacket->SendTimelineRelationshipBinaryPacket(relationshipType,</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  relationshipGuid,</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  headGuid,</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  tailGuid);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  sendTimelinePacket->Commit();</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(bufferManager.GetReadableBuffer()->GetReadableData(),</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  timelineCaptureCommandHandler);</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 0; i < 10; ++i)</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  {</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#a1ff765d7e34414715e9aceb381f468aa">m_Entities</a>[i].m_Guid == entityGuid);</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#acda1daaa7f8a8a77e0cc496e97a294b1">m_EventClasses</a>[i].m_Guid == eventClassGuid);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">m_Events</a>[i].m_TimeStamp == timestamp);</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">m_Events</a>[i].m_ThreadId == uint64ThreadId);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">m_Events</a>[i].m_Guid == eventGuid);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">m_Labels</a>[i].m_Guid == labelGuid);</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">m_Labels</a>[i].m_Name == labelName);</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_RelationshipType == <a class="code" href="class_i_timeline_decoder.xhtml#afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b">ITimelineDecoder::RelationshipType::DataLink</a>);</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_Guid == relationshipGuid);</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_HeadGuid == headGuid);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_TailGuid == tailGuid);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  }</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_version_xhtml_a0ab0d5a402c197d4093cbc5fdbf81214"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_version.xhtml#a0ab0d5a402c197d4093cbc5fdbf81214">armnn::profiling::Version::GetEncodedValue</a></div><div class="ttdeci">uint32_t GetEncodedValue()</div><div class="ttdef"><b>Definition:</b> <a href="_encode_version_8hpp_source.xhtml#l00045">EncodeVersion.hpp:45</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_ac7f0a814e6156ecdbcfa323befed6645"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a></div><div class="ttdeci">void SendTimelinePacketToCommandHandler(const unsigned char *packetBuffer, profiling::CommandHandlerFunctor &CommandHandler)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00023">TimelineTests.cpp:23</a></div></div> |
| <div class="ttc" id="class_i_timeline_decoder_xhtml_afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b"><div class="ttname"><a href="class_i_timeline_decoder.xhtml#afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b">ITimelineDecoder::RelationshipType::DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_ae567c3874fc1734833b03a9e73461426"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ae567c3874fc1734833b03a9e73461426">armnn::timelinedecoder::TimelineDecoder::SetRelationshipCallback</a></div><div class="ttdeci">TimelineStatus SetRelationshipCallback(const OnNewRelationshipCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00113">TimelineDecoder.cpp:113</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_ae3b9190fdb419c136630efaaa4ba91b9"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">armnn::timelinedecoder::TimelineDecoder::Model::m_Labels</a></div><div class="ttdeci">std::vector< Label > m_Labels</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00024">TimelineDecoder.hpp:24</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_a1ff765d7e34414715e9aceb381f468aa"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#a1ff765d7e34414715e9aceb381f468aa">armnn::timelinedecoder::TimelineDecoder::Model::m_Entities</a></div><div class="ttdeci">std::vector< Entity > m_Entities</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00021">TimelineDecoder.hpp:21</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a3b3046bf976af84f1afaf90604fdb5a5"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a3b3046bf976af84f1afaf90604fdb5a5">PushEventClass</a></div><div class="ttdeci">void PushEventClass(TimelineDecoder::Model &model, const ITimelineDecoder::EventClass eventClass)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00051">TimelineTests.cpp:51</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa4de2b511faa41accc2c35cadf051124">armnn::profiling::ReadUint64</a></div><div class="ttdeci">uint64_t ReadUint64(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00197">ProfilingUtils.cpp:197</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_xhtml_ac8ad466123304f923e64997ac096926a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml#ac8ad466123304f923e64997ac096926a">armnn::profiling::PacketVersionResolver::ResolvePacketVersion</a></div><div class="ttdeci">Version ResolvePacketVersion(uint32_t familyId, uint32_t packetId) const</div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8cpp_source.xhtml#l00055">PacketVersionResolver.cpp:55</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_capture_command_handler_xhtml"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_capture_command_handler.xhtml">armnn::timelinedecoder::TimelineCaptureCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_capture_command_handler_8hpp_source.xhtml#l00020">TimelineCaptureCommandHandler.hpp:20</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml">armnn::profiling::PacketVersionResolver</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8hpp_source.xhtml#l00036">PacketVersionResolver.hpp:36</a></div></div> |
| <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">armnn::timelinedecoder::TimelineDecoder::Model</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00019">TimelineDecoder.hpp:19</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af0cddaa4e116d294dacaaced90ca341c"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af0cddaa4e116d294dacaaced90ca341c">armnn::profiling::WriteBytes</a></div><div class="ttdeci">void WriteBytes(const IPacketBufferPtr &packetBuffer, unsigned int offset, const void *value, unsigned int valueSize)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00089">ProfilingUtils.cpp:89</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a5f9ab9422ed7d18bdc693338d3e5e6b6"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a5f9ab9422ed7d18bdc693338d3e5e6b6">PushRelationship</a></div><div class="ttdeci">void PushRelationship(TimelineDecoder::Model &model, const ITimelineDecoder::Relationship relationship)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00066">TimelineTests.cpp:66</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a5d037fb2a573ca0e8b284ff0f4ba4b5b"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a5d037fb2a573ca0e8b284ff0f4ba4b5b">PushEntity</a></div><div class="ttdeci">void PushEntity(TimelineDecoder::Model &model, const ITimelineDecoder::Entity entity)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00046">TimelineTests.cpp:46</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a93a16fb5384fc547b965badf0255a09c"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a93a16fb5384fc547b965badf0255a09c">armnn::timelinedecoder::TimelineDecoder::SetEventClassCallback</a></div><div class="ttdeci">TimelineStatus SetEventClassCallback(const OnNewEventClassCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00083">TimelineDecoder.cpp:83</a></div></div> |
| <div class="ttc" id="namespacearmnn_xhtml_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a></div><div class="ttdeci">Status</div><div class="ttdoc">enumeration </div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00026">Types.hpp:26</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_aea0f48477f4db3a052d0c4074c68c8a7"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">armnn::timelinedecoder::TimelineDecoder::Model::m_Relationships</a></div><div class="ttdeci">std::vector< Relationship > m_Relationships</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00025">TimelineDecoder.hpp:25</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">armnn::profiling::ProfilingRelationshipType</a></div><div class="ttdeci">ProfilingRelationshipType</div><div class="ttdef"><b>Definition:</b> <a href="_i_send_timeline_packet_8hpp_source.xhtml#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml">armnn::timelinedecoder::TimelineDecoder</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00014">TimelineDecoder.hpp:14</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a152615febf988e6fc95d7e3284f0b139"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a152615febf988e6fc95d7e3284f0b139">PushEvent</a></div><div class="ttdeci">void PushEvent(TimelineDecoder::Model &model, const ITimelineDecoder::Event event)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00056">TimelineTests.cpp:56</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00204">ProfilingUtils.cpp:204</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_acda1daaa7f8a8a77e0cc496e97a294b1"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#acda1daaa7f8a8a77e0cc496e97a294b1">armnn::timelinedecoder::TimelineDecoder::Model::m_EventClasses</a></div><div class="ttdeci">std::vector< EventClass > m_EventClasses</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00022">TimelineDecoder.hpp:22</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_ad3941381c7ffa8b2804d4d5708abd488"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#ad3941381c7ffa8b2804d4d5708abd488">PushLabel</a></div><div class="ttdeci">void PushLabel(TimelineDecoder::Model &model, const ITimelineDecoder::Label label)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00061">TimelineTests.cpp:61</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a1fedc5d6bd2dd5795e760abfb4c62a1b"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a1fedc5d6bd2dd5795e760abfb4c62a1b">armnn::timelinedecoder::TimelineDecoder::GetModel</a></div><div class="ttdeci">const Model & GetModel()</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00068">TimelineDecoder.cpp:68</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml">armnn::profiling::TimelinePacketWriterFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_packet_writer_factory_8hpp_source.xhtml#l00019">TimelinePacketWriterFactory.hpp:19</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_buffer_manager_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml">armnn::profiling::BufferManager</a></div><div class="ttdef"><b>Definition:</b> <a href="_buffer_manager_8hpp_source.xhtml#l00021">BufferManager.hpp:21</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a836f50363f5f1721c50394cd07f0c6cc"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a836f50363f5f1721c50394cd07f0c6cc">armnn::timelinedecoder::TimelineDecoder::SetLabelCallback</a></div><div class="ttdeci">TimelineStatus SetLabelCallback(const OnNewLabelCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00103">TimelineDecoder.cpp:103</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_ae2efab5c61d58b33155822469b78f175"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">armnn::timelinedecoder::TimelineDecoder::Model::m_Events</a></div><div class="ttdeci">std::vector< Event > m_Events</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00023">TimelineDecoder.hpp:23</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a6274842f34566b5d99bbad09dcdc65ff"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a6274842f34566b5d99bbad09dcdc65ff">armnn::timelinedecoder::TimelineDecoder::SetEntityCallback</a></div><div class="ttdeci">TimelineStatus SetEntityCallback(const OnNewEntityCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00073">TimelineDecoder.cpp:73</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_ac7a2cae3b6d92cf19f6dde52834220ab"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ac7a2cae3b6d92cf19f6dde52834220ab">armnn::timelinedecoder::TimelineDecoder::SetEventCallback</a></div><div class="ttdeci">TimelineStatus SetEventCallback(const OnNewEventCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00093">TimelineDecoder.cpp:93</a></div></div> |
| <div class="ttc" id="class_i_timeline_decoder_xhtml_a7561a8de32d8a9ff3bfa7de7a89a590a"><div class="ttname"><a href="class_i_timeline_decoder.xhtml#a7561a8de32d8a9ff3bfa7de7a89a590a">ITimelineDecoder::TimelineStatus</a></div><div class="ttdeci">TimelineStatus</div><div class="ttdef"><b>Definition:</b> <a href="_i_timeline_decoder_8hpp_source.xhtml#l00016">ITimelineDecoder.hpp:16</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a0c3d8093d05ab9aaef39f204123a5d80"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a0c3d8093d05ab9aaef39f204123a5d80">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[3/3]</span></h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| <td>(</td> |
| <td class="paramtype">TimelineCaptureTestMultipleStringsInBuffer </td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00251">251</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_profiler_tests_8cpp.xhtml#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::DataLink</a>, <a class="el" href="class_i_timeline_decoder.xhtml#afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b">ITimelineDecoder::DataLink</a>, <a class="el" href="_encode_version_8hpp_source.xhtml#l00045">Version::GetEncodedValue()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00068">TimelineDecoder::GetModel()</a>, <a class="el" href="_buffer_manager_8cpp_source.xhtml#l00089">BufferManager::GetReadableBuffer()</a>, <a class="el" href="_timeline_packet_writer_factory_8cpp_source.xhtml#l00016">TimelinePacketWriterFactory::GetSendTimelinePacket()</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00021">TimelineDecoder::Model::m_Entities</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00022">TimelineDecoder::Model::m_EventClasses</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00023">TimelineDecoder::Model::m_Events</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00024">TimelineDecoder::Model::m_Labels</a>, <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00025">TimelineDecoder::Model::m_Relationships</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00046">PushEntity()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00056">PushEvent()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00051">PushEventClass()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00061">PushLabel()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00066">PushRelationship()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_packet_version_resolver_8cpp_source.xhtml#l00055">PacketVersionResolver::ResolvePacketVersion()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00023">SendTimelinePacketToCommandHandler()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00073">TimelineDecoder::SetEntityCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00093">TimelineDecoder::SetEventCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00083">TimelineDecoder::SetEventClassCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00103">TimelineDecoder::SetLabelCallback()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00113">TimelineDecoder::SetRelationshipCallback()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00089">armnn::profiling::WriteBytes()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> {</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> threadIdSize = <span class="keyword">sizeof</span>(std::thread::id);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml">profiling::BufferManager</a> bufferManager(50);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml">profiling::TimelinePacketWriterFactory</a> timelinePacketWriterFactory(bufferManager);</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  std::unique_ptr<profiling::ISendTimelinePacket> sendTimelinePacket =</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  timelinePacketWriterFactory.GetSendTimelinePacket();</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml">profiling::PacketVersionResolver</a> packetVersionResolver;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml">TimelineDecoder</a> timelineDecoder;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keyword">const</span> <a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a>& model = timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a1fedc5d6bd2dd5795e760abfb4c62a1b">GetModel</a>();</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_capture_command_handler.xhtml">TimelineCaptureCommandHandler</a> timelineCaptureCommandHandler(</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  1, 1, packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(1, 1).<a class="code" href="classarmnn_1_1profiling_1_1_version.xhtml#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>(), timelineDecoder, threadIdSize);</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keyword">using</span> <a class="code" href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">Status</a> = <a class="code" href="class_i_timeline_decoder.xhtml#a7561a8de32d8a9ff3bfa7de7a89a590a">ITimelineDecoder::TimelineStatus</a>;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a6274842f34566b5d99bbad09dcdc65ff">SetEntityCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a5d037fb2a573ca0e8b284ff0f4ba4b5b">PushEntity</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a93a16fb5384fc547b965badf0255a09c">SetEventClassCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a3b3046bf976af84f1afaf90604fdb5a5">PushEventClass</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ac7a2cae3b6d92cf19f6dde52834220ab">SetEventCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a152615febf988e6fc95d7e3284f0b139">PushEvent</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a836f50363f5f1721c50394cd07f0c6cc">SetLabelCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#ad3941381c7ffa8b2804d4d5708abd488">PushLabel</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(timelineDecoder.<a class="code" href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ae567c3874fc1734833b03a9e73461426">SetRelationshipCallback</a>(<a class="code" href="_timeline_tests_8cpp.xhtml#a5f9ab9422ed7d18bdc693338d3e5e6b6">PushRelationship</a>) == Status::TimelineStatus_Success);</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keyword">const</span> uint64_t entityGuid = 111111u;</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">const</span> uint64_t eventClassGuid = 22222u;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keyword">const</span> uint64_t timestamp = 33333u;</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keyword">const</span> uint64_t eventGuid = 44444u;</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span> </div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keyword">const</span> std::thread::id threadId = std::this_thread::get_id();</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="comment">// need to do a bit of work here to extract the value from threadId</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* uCharThreadId = <span class="keyword">new</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>[threadIdSize]();;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  uint64_t uint64ThreadId;</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af0cddaa4e116d294dacaaced90ca341c">profiling::WriteBytes</a>(uCharThreadId, 0, &threadId, threadIdSize);</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">if</span> ( threadIdSize == 4 )</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  {</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  uint64ThreadId = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">profiling::ReadUint32</a>(uCharThreadId, 0);</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( threadIdSize == 8 )</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  {</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  uint64ThreadId = <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa4de2b511faa41accc2c35cadf051124">profiling::ReadUint64</a>(uCharThreadId, 0);</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  }</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keyword">delete</span>[] uCharThreadId;</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">const</span> uint64_t labelGuid = 66666u;</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  std::string labelName = <span class="stringliteral">"test_label"</span>;</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  std::string labelName2 = <span class="stringliteral">"test_label2"</span>;</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  std::string labelName3 = <span class="stringliteral">"test_label32"</span>;</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 77777u;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keyword">const</span> uint64_t headGuid = 888888u;</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keyword">const</span> uint64_t tailGuid = 999999u;</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="comment">// Check with multiple messages in the same buffer</span></div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i < 9; ++i )</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  {</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="comment">// Send entity</span></div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  sendTimelinePacket->SendTimelineEntityBinaryPacket(entityGuid);</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="comment">// Send event class</span></div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  sendTimelinePacket->SendTimelineEventClassBinaryPacket(eventClassGuid);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="comment">// Send event</span></div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  sendTimelinePacket->SendTimelineEventBinaryPacket(timestamp, threadId, eventGuid);</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="comment">// Send label</span></div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  sendTimelinePacket->SendTimelineLabelBinaryPacket(labelGuid, labelName);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  sendTimelinePacket->SendTimelineLabelBinaryPacket(labelGuid, labelName2);</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  sendTimelinePacket->SendTimelineLabelBinaryPacket(labelGuid, labelName3);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="comment">// Send relationship</span></div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">profiling::ProfilingRelationshipType</a> relationshipType = profiling::ProfilingRelationshipType::DataLink;</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  sendTimelinePacket->SendTimelineRelationshipBinaryPacket(relationshipType,</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  relationshipGuid,</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  headGuid,</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  tailGuid);</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  }</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> </div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  sendTimelinePacket->Commit();</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(bufferManager.GetReadableBuffer()->GetReadableData(),</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  timelineCaptureCommandHandler);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span> </div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 0; i < 9; ++i )</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  {</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#a1ff765d7e34414715e9aceb381f468aa">m_Entities</a>[i].m_Guid == entityGuid);</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#acda1daaa7f8a8a77e0cc496e97a294b1">m_EventClasses</a>[i].m_Guid == eventClassGuid);</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span> </div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">m_Labels</a>[i].m_Guid == labelGuid);</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">m_Events</a>[i].m_TimeStamp == timestamp);</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">m_Events</a>[i].m_ThreadId == uint64ThreadId);</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">m_Events</a>[i].m_Guid == eventGuid);</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> </div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_RelationshipType == <a class="code" href="class_i_timeline_decoder.xhtml#afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b">ITimelineDecoder::RelationshipType::DataLink</a>);</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_Guid == relationshipGuid);</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_HeadGuid == headGuid);</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>[i].m_TailGuid == tailGuid);</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  }</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 0; i < 9; i += 3 )</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  {</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">m_Labels</a>[i].m_Name == labelName);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">m_Labels</a>[i+1].m_Name == labelName2);</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">m_Labels</a>[i+2].m_Name == labelName3);</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  }</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_version_xhtml_a0ab0d5a402c197d4093cbc5fdbf81214"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_version.xhtml#a0ab0d5a402c197d4093cbc5fdbf81214">armnn::profiling::Version::GetEncodedValue</a></div><div class="ttdeci">uint32_t GetEncodedValue()</div><div class="ttdef"><b>Definition:</b> <a href="_encode_version_8hpp_source.xhtml#l00045">EncodeVersion.hpp:45</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_ac7f0a814e6156ecdbcfa323befed6645"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a></div><div class="ttdeci">void SendTimelinePacketToCommandHandler(const unsigned char *packetBuffer, profiling::CommandHandlerFunctor &CommandHandler)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00023">TimelineTests.cpp:23</a></div></div> |
| <div class="ttc" id="class_i_timeline_decoder_xhtml_afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b"><div class="ttname"><a href="class_i_timeline_decoder.xhtml#afcec9ac4ebf3a53432bbd77a314b0667a77ac530ff577e3b84e0761fa02b2520b">ITimelineDecoder::RelationshipType::DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_ae567c3874fc1734833b03a9e73461426"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ae567c3874fc1734833b03a9e73461426">armnn::timelinedecoder::TimelineDecoder::SetRelationshipCallback</a></div><div class="ttdeci">TimelineStatus SetRelationshipCallback(const OnNewRelationshipCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00113">TimelineDecoder.cpp:113</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_ae3b9190fdb419c136630efaaa4ba91b9"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">armnn::timelinedecoder::TimelineDecoder::Model::m_Labels</a></div><div class="ttdeci">std::vector< Label > m_Labels</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00024">TimelineDecoder.hpp:24</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_a1ff765d7e34414715e9aceb381f468aa"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#a1ff765d7e34414715e9aceb381f468aa">armnn::timelinedecoder::TimelineDecoder::Model::m_Entities</a></div><div class="ttdeci">std::vector< Entity > m_Entities</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00021">TimelineDecoder.hpp:21</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a3b3046bf976af84f1afaf90604fdb5a5"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a3b3046bf976af84f1afaf90604fdb5a5">PushEventClass</a></div><div class="ttdeci">void PushEventClass(TimelineDecoder::Model &model, const ITimelineDecoder::EventClass eventClass)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00051">TimelineTests.cpp:51</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa4de2b511faa41accc2c35cadf051124">armnn::profiling::ReadUint64</a></div><div class="ttdeci">uint64_t ReadUint64(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00197">ProfilingUtils.cpp:197</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_xhtml_ac8ad466123304f923e64997ac096926a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml#ac8ad466123304f923e64997ac096926a">armnn::profiling::PacketVersionResolver::ResolvePacketVersion</a></div><div class="ttdeci">Version ResolvePacketVersion(uint32_t familyId, uint32_t packetId) const</div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8cpp_source.xhtml#l00055">PacketVersionResolver.cpp:55</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_capture_command_handler_xhtml"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_capture_command_handler.xhtml">armnn::timelinedecoder::TimelineCaptureCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_capture_command_handler_8hpp_source.xhtml#l00020">TimelineCaptureCommandHandler.hpp:20</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml">armnn::profiling::PacketVersionResolver</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8hpp_source.xhtml#l00036">PacketVersionResolver.hpp:36</a></div></div> |
| <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">armnn::timelinedecoder::TimelineDecoder::Model</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00019">TimelineDecoder.hpp:19</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af0cddaa4e116d294dacaaced90ca341c"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af0cddaa4e116d294dacaaced90ca341c">armnn::profiling::WriteBytes</a></div><div class="ttdeci">void WriteBytes(const IPacketBufferPtr &packetBuffer, unsigned int offset, const void *value, unsigned int valueSize)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00089">ProfilingUtils.cpp:89</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a5f9ab9422ed7d18bdc693338d3e5e6b6"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a5f9ab9422ed7d18bdc693338d3e5e6b6">PushRelationship</a></div><div class="ttdeci">void PushRelationship(TimelineDecoder::Model &model, const ITimelineDecoder::Relationship relationship)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00066">TimelineTests.cpp:66</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a5d037fb2a573ca0e8b284ff0f4ba4b5b"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a5d037fb2a573ca0e8b284ff0f4ba4b5b">PushEntity</a></div><div class="ttdeci">void PushEntity(TimelineDecoder::Model &model, const ITimelineDecoder::Entity entity)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00046">TimelineTests.cpp:46</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a93a16fb5384fc547b965badf0255a09c"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a93a16fb5384fc547b965badf0255a09c">armnn::timelinedecoder::TimelineDecoder::SetEventClassCallback</a></div><div class="ttdeci">TimelineStatus SetEventClassCallback(const OnNewEventClassCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00083">TimelineDecoder.cpp:83</a></div></div> |
| <div class="ttc" id="namespacearmnn_xhtml_a67a0db04d321a74b7e7fcfd3f1a3f70b"><div class="ttname"><a href="namespacearmnn.xhtml#a67a0db04d321a74b7e7fcfd3f1a3f70b">armnn::Status</a></div><div class="ttdeci">Status</div><div class="ttdoc">enumeration </div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00026">Types.hpp:26</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_aea0f48477f4db3a052d0c4074c68c8a7"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">armnn::timelinedecoder::TimelineDecoder::Model::m_Relationships</a></div><div class="ttdeci">std::vector< Relationship > m_Relationships</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00025">TimelineDecoder.hpp:25</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">armnn::profiling::ProfilingRelationshipType</a></div><div class="ttdeci">ProfilingRelationshipType</div><div class="ttdef"><b>Definition:</b> <a href="_i_send_timeline_packet_8hpp_source.xhtml#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml">armnn::timelinedecoder::TimelineDecoder</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00014">TimelineDecoder.hpp:14</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_a152615febf988e6fc95d7e3284f0b139"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#a152615febf988e6fc95d7e3284f0b139">PushEvent</a></div><div class="ttdeci">void PushEvent(TimelineDecoder::Model &model, const ITimelineDecoder::Event event)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00056">TimelineTests.cpp:56</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00204">ProfilingUtils.cpp:204</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_acda1daaa7f8a8a77e0cc496e97a294b1"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#acda1daaa7f8a8a77e0cc496e97a294b1">armnn::timelinedecoder::TimelineDecoder::Model::m_EventClasses</a></div><div class="ttdeci">std::vector< EventClass > m_EventClasses</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00022">TimelineDecoder.hpp:22</a></div></div> |
| <div class="ttc" id="_timeline_tests_8cpp_xhtml_ad3941381c7ffa8b2804d4d5708abd488"><div class="ttname"><a href="_timeline_tests_8cpp.xhtml#ad3941381c7ffa8b2804d4d5708abd488">PushLabel</a></div><div class="ttdeci">void PushLabel(TimelineDecoder::Model &model, const ITimelineDecoder::Label label)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_tests_8cpp_source.xhtml#l00061">TimelineTests.cpp:61</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a1fedc5d6bd2dd5795e760abfb4c62a1b"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a1fedc5d6bd2dd5795e760abfb4c62a1b">armnn::timelinedecoder::TimelineDecoder::GetModel</a></div><div class="ttdeci">const Model & GetModel()</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00068">TimelineDecoder.cpp:68</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml">armnn::profiling::TimelinePacketWriterFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_packet_writer_factory_8hpp_source.xhtml#l00019">TimelinePacketWriterFactory.hpp:19</a></div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_buffer_manager_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml">armnn::profiling::BufferManager</a></div><div class="ttdef"><b>Definition:</b> <a href="_buffer_manager_8hpp_source.xhtml#l00021">BufferManager.hpp:21</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a836f50363f5f1721c50394cd07f0c6cc"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a836f50363f5f1721c50394cd07f0c6cc">armnn::timelinedecoder::TimelineDecoder::SetLabelCallback</a></div><div class="ttdeci">TimelineStatus SetLabelCallback(const OnNewLabelCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00103">TimelineDecoder.cpp:103</a></div></div> |
| <div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_ae2efab5c61d58b33155822469b78f175"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">armnn::timelinedecoder::TimelineDecoder::Model::m_Events</a></div><div class="ttdeci">std::vector< Event > m_Events</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00023">TimelineDecoder.hpp:23</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_a6274842f34566b5d99bbad09dcdc65ff"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#a6274842f34566b5d99bbad09dcdc65ff">armnn::timelinedecoder::TimelineDecoder::SetEntityCallback</a></div><div class="ttdeci">TimelineStatus SetEntityCallback(const OnNewEntityCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00073">TimelineDecoder.cpp:73</a></div></div> |
| <div class="ttc" id="classarmnn_1_1timelinedecoder_1_1_timeline_decoder_xhtml_ac7a2cae3b6d92cf19f6dde52834220ab"><div class="ttname"><a href="classarmnn_1_1timelinedecoder_1_1_timeline_decoder.xhtml#ac7a2cae3b6d92cf19f6dde52834220ab">armnn::timelinedecoder::TimelineDecoder::SetEventCallback</a></div><div class="ttdeci">TimelineStatus SetEventCallback(const OnNewEventCallback)</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8cpp_source.xhtml#l00093">TimelineDecoder.cpp:93</a></div></div> |
| <div class="ttc" id="class_i_timeline_decoder_xhtml_a7561a8de32d8a9ff3bfa7de7a89a590a"><div class="ttname"><a href="class_i_timeline_decoder.xhtml#a7561a8de32d8a9ff3bfa7de7a89a590a">ITimelineDecoder::TimelineStatus</a></div><div class="ttdeci">TimelineStatus</div><div class="ttdef"><b>Definition:</b> <a href="_i_timeline_decoder_8hpp_source.xhtml#l00016">ITimelineDecoder.hpp:16</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a5d037fb2a573ca0e8b284ff0f4ba4b5b"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a5d037fb2a573ca0e8b284ff0f4ba4b5b">◆ </a></span>PushEntity()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void PushEntity </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> & </td> |
| <td class="paramname"><em>model</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">const <a class="el" href="struct_i_timeline_decoder_1_1_entity.xhtml">ITimelineDecoder::Entity</a> </td> |
| <td class="paramname"><em>entity</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00046">46</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00021">TimelineDecoder::Model::m_Entities</a>.</p> |
| |
| <p class="reference">Referenced by <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00140">BOOST_AUTO_TEST_CASE()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#a1ff765d7e34414715e9aceb381f468aa">m_Entities</a>.emplace_back(entity);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div><div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_a1ff765d7e34414715e9aceb381f468aa"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#a1ff765d7e34414715e9aceb381f468aa">armnn::timelinedecoder::TimelineDecoder::Model::m_Entities</a></div><div class="ttdeci">std::vector< Entity > m_Entities</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00021">TimelineDecoder.hpp:21</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a152615febf988e6fc95d7e3284f0b139"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a152615febf988e6fc95d7e3284f0b139">◆ </a></span>PushEvent()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void PushEvent </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> & </td> |
| <td class="paramname"><em>model</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">const <a class="el" href="struct_i_timeline_decoder_1_1_event.xhtml">ITimelineDecoder::Event</a> </td> |
| <td class="paramname"><em>event</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00056">56</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00023">TimelineDecoder::Model::m_Events</a>.</p> |
| |
| <p class="reference">Referenced by <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00140">BOOST_AUTO_TEST_CASE()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">m_Events</a>.emplace_back(event);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div><div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_ae2efab5c61d58b33155822469b78f175"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae2efab5c61d58b33155822469b78f175">armnn::timelinedecoder::TimelineDecoder::Model::m_Events</a></div><div class="ttdeci">std::vector< Event > m_Events</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00023">TimelineDecoder.hpp:23</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a3b3046bf976af84f1afaf90604fdb5a5"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a3b3046bf976af84f1afaf90604fdb5a5">◆ </a></span>PushEventClass()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void PushEventClass </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> & </td> |
| <td class="paramname"><em>model</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">const <a class="el" href="struct_i_timeline_decoder_1_1_event_class.xhtml">ITimelineDecoder::EventClass</a> </td> |
| <td class="paramname"><em>eventClass</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00051">51</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00022">TimelineDecoder::Model::m_EventClasses</a>.</p> |
| |
| <p class="reference">Referenced by <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00140">BOOST_AUTO_TEST_CASE()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#acda1daaa7f8a8a77e0cc496e97a294b1">m_EventClasses</a>.emplace_back(eventClass);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div><div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_acda1daaa7f8a8a77e0cc496e97a294b1"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#acda1daaa7f8a8a77e0cc496e97a294b1">armnn::timelinedecoder::TimelineDecoder::Model::m_EventClasses</a></div><div class="ttdeci">std::vector< EventClass > m_EventClasses</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00022">TimelineDecoder.hpp:22</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="ad3941381c7ffa8b2804d4d5708abd488"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ad3941381c7ffa8b2804d4d5708abd488">◆ </a></span>PushLabel()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void PushLabel </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> & </td> |
| <td class="paramname"><em>model</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">const <a class="el" href="struct_i_timeline_decoder_1_1_label.xhtml">ITimelineDecoder::Label</a> </td> |
| <td class="paramname"><em>label</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00061">61</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00024">TimelineDecoder::Model::m_Labels</a>.</p> |
| |
| <p class="reference">Referenced by <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00140">BOOST_AUTO_TEST_CASE()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">m_Labels</a>.emplace_back(label);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> }</div><div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_ae3b9190fdb419c136630efaaa4ba91b9"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#ae3b9190fdb419c136630efaaa4ba91b9">armnn::timelinedecoder::TimelineDecoder::Model::m_Labels</a></div><div class="ttdeci">std::vector< Label > m_Labels</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00024">TimelineDecoder.hpp:24</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="a5f9ab9422ed7d18bdc693338d3e5e6b6"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a5f9ab9422ed7d18bdc693338d3e5e6b6">◆ </a></span>PushRelationship()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void PushRelationship </td> |
| <td>(</td> |
| <td class="paramtype"><a class="el" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a> & </td> |
| <td class="paramname"><em>model</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">const <a class="el" href="struct_i_timeline_decoder_1_1_relationship.xhtml">ITimelineDecoder::Relationship</a> </td> |
| <td class="paramname"><em>relationship</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00066">66</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_timeline_decoder_8hpp_source.xhtml#l00025">TimelineDecoder::Model::m_Relationships</a>.</p> |
| |
| <p class="reference">Referenced by <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00140">BOOST_AUTO_TEST_CASE()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  model.<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">m_Relationships</a>.emplace_back(relationship);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> }</div><div class="ttc" id="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model_xhtml_aea0f48477f4db3a052d0c4074c68c8a7"><div class="ttname"><a href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml#aea0f48477f4db3a052d0c4074c68c8a7">armnn::timelinedecoder::TimelineDecoder::Model::m_Relationships</a></div><div class="ttdeci">std::vector< Relationship > m_Relationships</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_decoder_8hpp_source.xhtml#l00025">TimelineDecoder.hpp:25</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| <a id="ac7f0a814e6156ecdbcfa323befed6645"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#ac7f0a814e6156ecdbcfa323befed6645">◆ </a></span>SendTimelinePacketToCommandHandler()</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void SendTimelinePacketToCommandHandler </td> |
| <td>(</td> |
| <td class="paramtype">const unsigned char * </td> |
| <td class="paramname"><em>packetBuffer</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype"><a class="el" href="classarmnn_1_1profiling_1_1_command_handler_functor.xhtml">profiling::CommandHandlerFunctor</a> & </td> |
| <td class="paramname"><em>CommandHandler</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p class="definition">Definition at line <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00023">23</a> of file <a class="el" href="_timeline_tests_8cpp_source.xhtml">TimelineTests.cpp</a>.</p> |
| |
| <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">armnn::profiling::ReadUint32()</a>, and <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">armnn::profiling::uint32_t_size</a>.</p> |
| |
| <p class="reference">Referenced by <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00071">BOOST_AUTO_TEST_CASE()</a>.</p> |
| <div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  uint32_t <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  uint32_t header[2];</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  header[0] = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">profiling::ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  header[1] = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">profiling::ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  uint32_t PacketDataLength = header[1] & 0x00FFFFFF;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">auto</span> uniquePacketData = std::make_unique<unsigned char[]>(PacketDataLength);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  std::memcpy(uniquePacketData.get(), packetBuffer + offset, PacketDataLength);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet.xhtml">armnn::profiling::Packet</a> packet(header[0], PacketDataLength, uniquePacketData);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::memcmp(packetBuffer + offset, packet.GetData(), packet.GetLength()) == 0);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  CommandHandler(packet);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> }</div><div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet.xhtml">armnn::profiling::Packet</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_8hpp_source.xhtml#l00018">Packet.hpp:18</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00204">ProfilingUtils.cpp:204</a></div></div> |
| <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| </div><!-- fragment --> |
| </div> |
| </div> |
| </div><!-- contents --> |
| </div><!-- doc-content --> |
| <!-- start footer part --> |
| <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_4d9706f59620ec516301c65441ed077a.xhtml">timelineDecoder</a></li><li class="navelem"><a class="el" href="dir_227bf51455d630104e4cffac68337a28.xhtml">tests</a></li><li class="navelem"><a class="el" href="_timeline_tests_8cpp.xhtml">TimelineTests.cpp</a></li> |
| <li class="footer">Generated on Fri Mar 13 2020 16:09:16 for ArmNN by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |