Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/timelineDecoder/tests/TimelineTests.cpp Source File</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_timeline_tests_8cpp_source.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="headertitle"> |
| 98 | <div class="title">TimelineTests.cpp</div> </div> |
| 99 | </div><!--header--> |
| 100 | <div class="contents"> |
| 101 | <a href="_timeline_tests_8cpp.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2019 Arm Ltd. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <<a class="code" href="_timeline_capture_command_handler_8hpp.xhtml">TimelineCaptureCommandHandler.hpp</a>></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <<a class="code" href="_timeline_directory_capture_command_handler_8hpp.xhtml">TimelineDirectoryCaptureCommandHandler.hpp</a>></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <<a class="code" href="_timeline_decoder_8hpp.xhtml">TimelineDecoder.hpp</a>></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="code" href="_command_handler_functor_8hpp.xhtml">CommandHandlerFunctor.hpp</a>></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <<a class="code" href="_profiling_service_8hpp.xhtml">ProfilingService.hpp</a>></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <<a class="code" href="_packet_buffer_8hpp.xhtml">PacketBuffer.hpp</a>></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="_timeline_packet_writer_factory_8hpp.xhtml">TimelinePacketWriterFactory.hpp</a>></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <boost/test/test_tools.hpp></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <boost/test/unit_test_suite.hpp></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <a class="code" href="_output_shape_of_squeeze_8cpp.xhtml#ae3a6cb217a792718f2bd0e8f45e3ca9e">BOOST_AUTO_TEST_SUITE</a>(TimelineDecoderTests)</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">using namespace </span>timelinedecoder;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645"> 23</a></span> <span class="keywordtype">void</span> <a class="code" href="_timeline_tests_8cpp.xhtml#ac7f0a814e6156ecdbcfa323befed6645">SendTimelinePacketToCommandHandler</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* packetBuffer,</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="classarmnn_1_1profiling_1_1_command_handler_functor.xhtml">profiling::CommandHandlerFunctor</a> &<a class="code" href="classarmnn_1_1profiling_1_1_command_handler.xhtml">CommandHandler</a>)</div><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="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#a5d037fb2a573ca0e8b284ff0f4ba4b5b"> 46</a></span> <span class="keywordtype">void</span> <a class="code" href="_timeline_tests_8cpp.xhtml#a5d037fb2a573ca0e8b284ff0f4ba4b5b">PushEntity</a>(<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a>& model, <span class="keyword">const</span> <a class="code" href="struct_i_timeline_decoder_1_1_entity.xhtml">ITimelineDecoder::Entity</a> entity)</div><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="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#a3b3046bf976af84f1afaf90604fdb5a5"> 51</a></span> <span class="keywordtype">void</span> <a class="code" href="_timeline_tests_8cpp.xhtml#a3b3046bf976af84f1afaf90604fdb5a5">PushEventClass</a>(<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a>& model, <span class="keyword">const</span> <a class="code" href="struct_i_timeline_decoder_1_1_event_class.xhtml">ITimelineDecoder::EventClass</a> eventClass)</div><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="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#a152615febf988e6fc95d7e3284f0b139"> 56</a></span> <span class="keywordtype">void</span> <a class="code" href="_timeline_tests_8cpp.xhtml#a152615febf988e6fc95d7e3284f0b139">PushEvent</a>(<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a>& model, <span class="keyword">const</span> <a class="code" href="struct_i_timeline_decoder_1_1_event.xhtml">ITimelineDecoder::Event</a> event)</div><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="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#ad3941381c7ffa8b2804d4d5708abd488"> 61</a></span> <span class="keywordtype">void</span> <a class="code" href="_timeline_tests_8cpp.xhtml#ad3941381c7ffa8b2804d4d5708abd488">PushLabel</a>(<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a>& model, <span class="keyword">const</span> <a class="code" href="struct_i_timeline_decoder_1_1_label.xhtml">ITimelineDecoder::Label</a> label)</div><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="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#a5f9ab9422ed7d18bdc693338d3e5e6b6"> 66</a></span> <span class="keywordtype">void</span> <a class="code" href="_timeline_tests_8cpp.xhtml#a5f9ab9422ed7d18bdc693338d3e5e6b6">PushRelationship</a>(<a class="code" href="structarmnn_1_1timelinedecoder_1_1_timeline_decoder_1_1_model.xhtml">TimelineDecoder::Model</a>& model, <span class="keyword">const</span> <a class="code" href="struct_i_timeline_decoder_1_1_relationship.xhtml">ITimelineDecoder::Relationship</a> relationship)</div><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="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#a48319064222492223dfa27d2ea4b6774"> 71</a></span> <a class="code" href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(TimelineDirectoryTest)</div><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.<a class="code" href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml#a169a8836d1862bc9ed922e124e905302">GetSendTimelinePacket</a>();</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.<a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>();</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="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#aa50403517c534c8fb2ee7d6ff102a60f"> 140</a></span> <a class="code" href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(TimelineCaptureTest)</div><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.<a class="code" href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml#a169a8836d1862bc9ed922e124e905302">GetSendTimelinePacket</a>();</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.<a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()->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.<a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()->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.<a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()->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.<a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()->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 = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">profiling::ProfilingRelationshipType::DataLink</a>;</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.<a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()->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="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="_timeline_tests_8cpp.xhtml#a0c3d8093d05ab9aaef39f204123a5d80"> 251</a></span> <a class="code" href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(TimelineCaptureTestMultipleStringsInBuffer)</div><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.<a class="code" href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml#a169a8836d1862bc9ed922e124e905302">GetSendTimelinePacket</a>();</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 = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">profiling::ProfilingRelationshipType::DataLink</a>;</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.<a class="code" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()->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="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <a class="code" href="_profiler_tests_8cpp.xhtml#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END</a>()</div><div class="ttc" id="_output_shape_of_squeeze_8cpp_xhtml_ae3a6cb217a792718f2bd0e8f45e3ca9e"><div class="ttname"><a href="_output_shape_of_squeeze_8cpp.xhtml#ae3a6cb217a792718f2bd0e8f45e3ca9e">BOOST_AUTO_TEST_SUITE</a></div><div class="ttdeci">BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)</div></div> |
| 102 | <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> |
| 103 | <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> |
| 104 | <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> |
| 105 | <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> |
| 106 | <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> |
| 107 | <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> |
| 108 | <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> |
| 109 | <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> |
| 110 | <div class="ttc" id="_packet_buffer_8hpp_xhtml"><div class="ttname"><a href="_packet_buffer_8hpp.xhtml">PacketBuffer.hpp</a></div></div> |
| 111 | <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> |
| 112 | <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> |
| 113 | <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> |
| 114 | <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> |
| 115 | <div class="ttc" id="_timeline_decoder_8hpp_xhtml"><div class="ttname"><a href="_timeline_decoder_8hpp.xhtml">TimelineDecoder.hpp</a></div></div> |
| 116 | <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> |
| 117 | <div class="ttc" id="_command_handler_functor_8hpp_xhtml"><div class="ttname"><a href="_command_handler_functor_8hpp.xhtml">CommandHandlerFunctor.hpp</a></div></div> |
| 118 | <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> |
| 119 | <div class="ttc" id="struct_i_timeline_decoder_1_1_event_class_xhtml"><div class="ttname"><a href="struct_i_timeline_decoder_1_1_event_class.xhtml">ITimelineDecoder::EventClass</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_timeline_decoder_8hpp_source.xhtml#l00035">ITimelineDecoder.hpp:35</a></div></div> |
| 120 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 121 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::ProfilingRelationshipType::DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div></div> |
| 122 | <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> |
| 123 | <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> |
| 124 | <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> |
| 125 | <div class="ttc" id="struct_i_timeline_decoder_1_1_relationship_xhtml"><div class="ttname"><a href="struct_i_timeline_decoder_1_1_relationship.xhtml">ITimelineDecoder::Relationship</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_timeline_decoder_8hpp_source.xhtml#l00053">ITimelineDecoder.hpp:53</a></div></div> |
| 126 | <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> |
| 127 | <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> |
| 128 | <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> |
| 129 | <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> |
| 130 | <div class="ttc" id="classarmnn_1_1profiling_1_1_command_handler_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_command_handler.xhtml">armnn::profiling::CommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_command_handler_8hpp_source.xhtml#l00021">CommandHandler.hpp:21</a></div></div> |
| 131 | <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> |
| 132 | <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> |
| 133 | <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> |
| 134 | <div class="ttc" id="_timeline_capture_command_handler_8hpp_xhtml"><div class="ttname"><a href="_timeline_capture_command_handler_8hpp.xhtml">TimelineCaptureCommandHandler.hpp</a></div></div> |
| 135 | <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> |
| 136 | <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> |
| 137 | <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> |
| 138 | <div class="ttc" id="_timeline_packet_writer_factory_8hpp_xhtml"><div class="ttname"><a href="_timeline_packet_writer_factory_8hpp.xhtml">TimelinePacketWriterFactory.hpp</a></div></div> |
| 139 | <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> |
| 140 | <div class="ttc" id="namespacearmnn_xhtml_a10d15f3df1ab52b3b915a4be1dbf386b"><div class="ttname"><a href="namespacearmnn.xhtml#a10d15f3df1ab52b3b915a4be1dbf386b">armnn::BOOST_AUTO_TEST_CASE</a></div><div class="ttdeci">BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)</div><div class="ttdef"><b>Definition:</b> <a href="_const_tensor_layer_visitor_8cpp_source.xhtml#l00170">ConstTensorLayerVisitor.cpp:170</a></div></div> |
| 141 | <div class="ttc" id="classarmnn_1_1profiling_1_1_buffer_manager_xhtml_abce8709dc1b666a26f427ba7ff08b737"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">armnn::profiling::BufferManager::GetReadableBuffer</a></div><div class="ttdeci">IPacketBufferPtr GetReadableBuffer() override</div><div class="ttdef"><b>Definition:</b> <a href="_buffer_manager_8cpp_source.xhtml#l00089">BufferManager.cpp:89</a></div></div> |
| 142 | <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> |
| 143 | <div class="ttc" id="classarmnn_1_1profiling_1_1_command_handler_functor_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_command_handler_functor.xhtml">armnn::profiling::CommandHandlerFunctor</a></div><div class="ttdef"><b>Definition:</b> <a href="_command_handler_functor_8hpp_source.xhtml#l00020">CommandHandlerFunctor.hpp:20</a></div></div> |
| 144 | <div class="ttc" id="_timeline_directory_capture_command_handler_8hpp_xhtml"><div class="ttname"><a href="_timeline_directory_capture_command_handler_8hpp.xhtml">TimelineDirectoryCaptureCommandHandler.hpp</a></div></div> |
| 145 | <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> |
| 146 | <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> |
| 147 | <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> |
| 148 | <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> |
| 149 | <div class="ttc" id="_profiler_tests_8cpp_xhtml_af7f71af5c6c124222dd1c42c5df892f4"><div class="ttname"><a href="_profiler_tests_8cpp.xhtml#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END</a></div><div class="ttdeci">BOOST_AUTO_TEST_SUITE_END()</div></div> |
| 150 | <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> |
| 151 | <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> |
| 152 | <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> |
| 153 | <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> |
| 154 | <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> |
| 155 | <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> |
| 156 | <div class="ttc" id="struct_i_timeline_decoder_1_1_entity_xhtml"><div class="ttname"><a href="struct_i_timeline_decoder_1_1_entity.xhtml">ITimelineDecoder::Entity</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_timeline_decoder_8hpp_source.xhtml#l00030">ITimelineDecoder.hpp:30</a></div></div> |
| 157 | <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> |
| 158 | <div class="ttc" id="struct_i_timeline_decoder_1_1_event_xhtml"><div class="ttname"><a href="struct_i_timeline_decoder_1_1_event.xhtml">ITimelineDecoder::Event</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_timeline_decoder_8hpp_source.xhtml#l00040">ITimelineDecoder.hpp:40</a></div></div> |
| 159 | <div class="ttc" id="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory_xhtml_a169a8836d1862bc9ed922e124e905302"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml#a169a8836d1862bc9ed922e124e905302">armnn::profiling::TimelinePacketWriterFactory::GetSendTimelinePacket</a></div><div class="ttdeci">std::unique_ptr< ISendTimelinePacket > GetSendTimelinePacket() const</div><div class="ttdef"><b>Definition:</b> <a href="_timeline_packet_writer_factory_8cpp_source.xhtml#l00016">TimelinePacketWriterFactory.cpp:16</a></div></div> |
| 160 | <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> |
| 161 | <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> |
| 162 | <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> |
| 163 | <div class="ttc" id="struct_i_timeline_decoder_1_1_label_xhtml"><div class="ttname"><a href="struct_i_timeline_decoder_1_1_label.xhtml">ITimelineDecoder::Label</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_timeline_decoder_8hpp_source.xhtml#l00047">ITimelineDecoder.hpp:47</a></div></div> |
| 164 | <div class="ttc" id="_profiling_service_8hpp_xhtml"><div class="ttname"><a href="_profiling_service_8hpp.xhtml">ProfilingService.hpp</a></div></div> |
| 165 | <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> |
| 166 | </div><!-- fragment --></div><!-- contents --> |
| 167 | </div><!-- doc-content --> |
| 168 | <!-- start footer part --> |
| 169 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 170 | <ul> |
| 171 | <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> |
| 172 | <li class="footer">Generated on Fri Mar 13 2020 16:09:13 for ArmNN by |
| 173 | <a href="http://www.doxygen.org/index.html"> |
| 174 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 175 | </ul> |
| 176 | </div> |
| 177 | </body> |
| 178 | </html> |