Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: src/profiling/test/TimelinePacketTests.cpp File Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('_timeline_packet_tests_8cpp.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#func-members">Functions</a> </div> |
| 85 | <div class="headertitle"> |
| 86 | <div class="title">TimelinePacketTests.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include <<a class="el" href="_profiling_utils_8hpp_source.html">ProfilingUtils.hpp</a>></code><br /> |
| 90 | <code>#include <boost/test/unit_test.hpp></code><br /> |
| 91 | <code>#include <boost/numeric/conversion/cast.hpp></code><br /> |
| 92 | </div> |
| 93 | <p><a href="_timeline_packet_tests_8cpp_source.html">Go to the source code of this file.</a></p> |
| 94 | <table class="memberdecls"> |
| 95 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 96 | Functions</h2></td></tr> |
| 97 | <tr class="memitem:abf847dc1eacec585f759629dc322b640"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#abf847dc1eacec585f759629dc322b640">BOOST_AUTO_TEST_CASE</a> (TimelineLabelPacketTest1)</td></tr> |
| 98 | <tr class="separator:abf847dc1eacec585f759629dc322b640"><td class="memSeparator" colspan="2"> </td></tr> |
| 99 | <tr class="memitem:ae747b048e650a53e1d31341f13784ee1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ae747b048e650a53e1d31341f13784ee1">BOOST_AUTO_TEST_CASE</a> (TimelineLabelPacketTest2)</td></tr> |
| 100 | <tr class="separator:ae747b048e650a53e1d31341f13784ee1"><td class="memSeparator" colspan="2"> </td></tr> |
| 101 | <tr class="memitem:a51b51dc32e7b16e6b8cb2ad832c3e3d4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a51b51dc32e7b16e6b8cb2ad832c3e3d4">BOOST_AUTO_TEST_CASE</a> (TimelineLabelPacketTest3)</td></tr> |
| 102 | <tr class="separator:a51b51dc32e7b16e6b8cb2ad832c3e3d4"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 | <tr class="memitem:ad41d2ca6db5e931d4244a117d2f1a90c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ad41d2ca6db5e931d4244a117d2f1a90c">BOOST_AUTO_TEST_CASE</a> (TimelineLabelPacketTest4)</td></tr> |
| 104 | <tr class="separator:ad41d2ca6db5e931d4244a117d2f1a90c"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 | <tr class="memitem:a8e178ca43a1491efc83e9285eb778f7b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a8e178ca43a1491efc83e9285eb778f7b">BOOST_AUTO_TEST_CASE</a> (TimelineLabelPacketTest5)</td></tr> |
| 106 | <tr class="separator:a8e178ca43a1491efc83e9285eb778f7b"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:ae16374a141eeb3435ade8806091c8cb1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ae16374a141eeb3435ade8806091c8cb1">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketNullBufferTest)</td></tr> |
| 108 | <tr class="separator:ae16374a141eeb3435ade8806091c8cb1"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:a5184ef0ff51c346119d4cbf5330d6744"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a5184ef0ff51c346119d4cbf5330d6744">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketZeroBufferSizeTest)</td></tr> |
| 110 | <tr class="separator:a5184ef0ff51c346119d4cbf5330d6744"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:a54d7d1e7653a20cdc4b2375787652494"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a54d7d1e7653a20cdc4b2375787652494">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketSmallBufferSizeTest)</td></tr> |
| 112 | <tr class="separator:a54d7d1e7653a20cdc4b2375787652494"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:ab416af620457fd5b5daae72d92006ad6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ab416af620457fd5b5daae72d92006ad6">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketInvalidRelationTest)</td></tr> |
| 114 | <tr class="separator:ab416af620457fd5b5daae72d92006ad6"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a19ec863379c74395d23a077e8893c88b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a19ec863379c74395d23a077e8893c88b">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketTest)</td></tr> |
| 116 | <tr class="separator:a19ec863379c74395d23a077e8893c88b"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a86c9b01022510861736749e1232e117a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a86c9b01022510861736749e1232e117a">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketExecutionLinkTest)</td></tr> |
| 118 | <tr class="separator:a86c9b01022510861736749e1232e117a"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a2e73f40e0746338c55d43d1b6b15bcd2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a2e73f40e0746338c55d43d1b6b15bcd2">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketDataLinkTest)</td></tr> |
| 120 | <tr class="separator:a2e73f40e0746338c55d43d1b6b15bcd2"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:ab1ee0af6d295a3a66a35906749a6b519"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ab1ee0af6d295a3a66a35906749a6b519">BOOST_AUTO_TEST_CASE</a> (TimelineRelationshipPacketLabelLinkTest)</td></tr> |
| 122 | <tr class="separator:ab1ee0af6d295a3a66a35906749a6b519"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a4092d6dba43122a7039262a7bb51bf1f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a4092d6dba43122a7039262a7bb51bf1f">BOOST_AUTO_TEST_CASE</a> (TimelineMessageDirectoryPacketTest1)</td></tr> |
| 124 | <tr class="separator:a4092d6dba43122a7039262a7bb51bf1f"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:acdac9473c317db8a5a15e42148245394"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#acdac9473c317db8a5a15e42148245394">BOOST_AUTO_TEST_CASE</a> (TimelineMessageDirectoryPacketTest2)</td></tr> |
| 126 | <tr class="separator:acdac9473c317db8a5a15e42148245394"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:a00070eb95806c899023c60fd6588b2e4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a00070eb95806c899023c60fd6588b2e4">BOOST_AUTO_TEST_CASE</a> (TimelineMessageDirectoryPacketTest3)</td></tr> |
| 128 | <tr class="separator:a00070eb95806c899023c60fd6588b2e4"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:aa756f9128712ee04052964ab9a4f0669"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#aa756f9128712ee04052964ab9a4f0669">BOOST_AUTO_TEST_CASE</a> (TimelineEntityPacketTest1)</td></tr> |
| 130 | <tr class="separator:aa756f9128712ee04052964ab9a4f0669"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:ab9a4cc06f5b992e8da38c2c76ffcceaf"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ab9a4cc06f5b992e8da38c2c76ffcceaf">BOOST_AUTO_TEST_CASE</a> (TimelineEntityPacketTest2)</td></tr> |
| 132 | <tr class="separator:ab9a4cc06f5b992e8da38c2c76ffcceaf"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a79e10c67b5e425c583dceb7eed9e4e7f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a79e10c67b5e425c583dceb7eed9e4e7f">BOOST_AUTO_TEST_CASE</a> (TimelineEntityPacketTest3)</td></tr> |
| 134 | <tr class="separator:a79e10c67b5e425c583dceb7eed9e4e7f"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a3a8ca48313101832a516fe9d4c97ce61"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a3a8ca48313101832a516fe9d4c97ce61">BOOST_AUTO_TEST_CASE</a> (TimelineEntityPacketTest4)</td></tr> |
| 136 | <tr class="separator:a3a8ca48313101832a516fe9d4c97ce61"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:ac830fbb4c494722f69780d75660f095f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ac830fbb4c494722f69780d75660f095f">BOOST_AUTO_TEST_CASE</a> (TimelineEventClassTest1)</td></tr> |
| 138 | <tr class="separator:ac830fbb4c494722f69780d75660f095f"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:a1b71ea841c1a4599c1221dc8d5039c24"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a1b71ea841c1a4599c1221dc8d5039c24">BOOST_AUTO_TEST_CASE</a> (TimelineEventClassTest2)</td></tr> |
| 140 | <tr class="separator:a1b71ea841c1a4599c1221dc8d5039c24"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <tr class="memitem:a5c70a80185c9637ed592091d3f72b89a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a5c70a80185c9637ed592091d3f72b89a">BOOST_AUTO_TEST_CASE</a> (TimelineEventClassTest3)</td></tr> |
| 142 | <tr class="separator:a5c70a80185c9637ed592091d3f72b89a"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:ab552a4b5495010d3720cebcfce60fb70"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ab552a4b5495010d3720cebcfce60fb70">BOOST_AUTO_TEST_CASE</a> (TimelineEventClassTest4)</td></tr> |
| 144 | <tr class="separator:ab552a4b5495010d3720cebcfce60fb70"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <tr class="memitem:afa3d69eb68c8bb221dfd156d353c0cd2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#afa3d69eb68c8bb221dfd156d353c0cd2">BOOST_AUTO_TEST_CASE</a> (TimelineEventPacketTest1)</td></tr> |
| 146 | <tr class="separator:afa3d69eb68c8bb221dfd156d353c0cd2"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <tr class="memitem:a79287f03443df02717ddb54d39afe60c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a79287f03443df02717ddb54d39afe60c">BOOST_AUTO_TEST_CASE</a> (TimelineEventPacketTest2)</td></tr> |
| 148 | <tr class="separator:a79287f03443df02717ddb54d39afe60c"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:a714279122be5d2b0b80dd54f06bc7d43"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#a714279122be5d2b0b80dd54f06bc7d43">BOOST_AUTO_TEST_CASE</a> (TimelineEventPacketTest3)</td></tr> |
| 150 | <tr class="separator:a714279122be5d2b0b80dd54f06bc7d43"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | <tr class="memitem:ac658c471671417a04bf7ac02be83f786"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_timeline_packet_tests_8cpp.html#ac658c471671417a04bf7ac02be83f786">BOOST_AUTO_TEST_CASE</a> (TimelineEventPacketTest4)</td></tr> |
| 152 | <tr class="separator:ac658c471671417a04bf7ac02be83f786"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | </table> |
| 154 | <h2 class="groupheader">Function Documentation</h2> |
| 155 | <a id="abf847dc1eacec585f759629dc322b640"></a> |
| 156 | <h2 class="memtitle"><span class="permalink"><a href="#abf847dc1eacec585f759629dc322b640">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/28]</span></h2> |
| 157 | |
| 158 | <div class="memitem"> |
| 159 | <div class="memproto"> |
| 160 | <table class="memname"> |
| 161 | <tr> |
| 162 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 163 | <td>(</td> |
| 164 | <td class="paramtype">TimelineLabelPacketTest1 </td> |
| 165 | <td class="paramname"></td><td>)</td> |
| 166 | <td></td> |
| 167 | </tr> |
| 168 | </table> |
| 169 | </div><div class="memdoc"> |
| 170 | |
| 171 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00015">15</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 172 | |
| 173 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00454">armnn::profiling::WriteTimelineLabelBinaryPacket()</a>.</p> |
| 174 | <div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> {</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">const</span> std::string label = <span class="stringliteral">"some label"</span>;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">WriteTimelineLabelBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  label,</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  512u,</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  numberOfBytesWritten);</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 175 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab1c765a8fbdb497a4d5196f6e00a154a"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">armnn::profiling::WriteTimelineLabelBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string &label, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00454">ProfilingUtils.cpp:454</a></div></div> |
| 176 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 177 | </div><!-- fragment --> |
| 178 | </div> |
| 179 | </div> |
| 180 | <a id="ae747b048e650a53e1d31341f13784ee1"></a> |
| 181 | <h2 class="memtitle"><span class="permalink"><a href="#ae747b048e650a53e1d31341f13784ee1">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/28]</span></h2> |
| 182 | |
| 183 | <div class="memitem"> |
| 184 | <div class="memproto"> |
| 185 | <table class="memname"> |
| 186 | <tr> |
| 187 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 188 | <td>(</td> |
| 189 | <td class="paramtype">TimelineLabelPacketTest2 </td> |
| 190 | <td class="paramname"></td><td>)</td> |
| 191 | <td></td> |
| 192 | </tr> |
| 193 | </table> |
| 194 | </div><div class="memdoc"> |
| 195 | |
| 196 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00029">29</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 197 | |
| 198 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00454">armnn::profiling::WriteTimelineLabelBinaryPacket()</a>.</p> |
| 199 | <div class="fragment"><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">const</span> std::string label = <span class="stringliteral">"some label"</span>;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">WriteTimelineLabelBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  label,</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  buffer.data(),</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  0,</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  numberOfBytesWritten);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 200 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab1c765a8fbdb497a4d5196f6e00a154a"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">armnn::profiling::WriteTimelineLabelBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string &label, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00454">ProfilingUtils.cpp:454</a></div></div> |
| 201 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 202 | </div><!-- fragment --> |
| 203 | </div> |
| 204 | </div> |
| 205 | <a id="a51b51dc32e7b16e6b8cb2ad832c3e3d4"></a> |
| 206 | <h2 class="memtitle"><span class="permalink"><a href="#a51b51dc32e7b16e6b8cb2ad832c3e3d4">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[3/28]</span></h2> |
| 207 | |
| 208 | <div class="memitem"> |
| 209 | <div class="memproto"> |
| 210 | <table class="memname"> |
| 211 | <tr> |
| 212 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 213 | <td>(</td> |
| 214 | <td class="paramtype">TimelineLabelPacketTest3 </td> |
| 215 | <td class="paramname"></td><td>)</td> |
| 216 | <td></td> |
| 217 | </tr> |
| 218 | </table> |
| 219 | </div><div class="memdoc"> |
| 220 | |
| 221 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00045">45</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 222 | |
| 223 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00454">armnn::profiling::WriteTimelineLabelBinaryPacket()</a>.</p> |
| 224 | <div class="fragment"><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  std::vector<unsigned char> buffer(10, 0);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">const</span> std::string label = <span class="stringliteral">"some label"</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">WriteTimelineLabelBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  label,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  buffer.data(),</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  numberOfBytesWritten);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 225 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab1c765a8fbdb497a4d5196f6e00a154a"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">armnn::profiling::WriteTimelineLabelBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string &label, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00454">ProfilingUtils.cpp:454</a></div></div> |
| 226 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 227 | </div><!-- fragment --> |
| 228 | </div> |
| 229 | </div> |
| 230 | <a id="ad41d2ca6db5e931d4244a117d2f1a90c"></a> |
| 231 | <h2 class="memtitle"><span class="permalink"><a href="#ad41d2ca6db5e931d4244a117d2f1a90c">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[4/28]</span></h2> |
| 232 | |
| 233 | <div class="memitem"> |
| 234 | <div class="memproto"> |
| 235 | <table class="memname"> |
| 236 | <tr> |
| 237 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 238 | <td>(</td> |
| 239 | <td class="paramtype">TimelineLabelPacketTest4 </td> |
| 240 | <td class="paramname"></td><td>)</td> |
| 241 | <td></td> |
| 242 | </tr> |
| 243 | </table> |
| 244 | </div><div class="memdoc"> |
| 245 | |
| 246 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00061">61</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 247 | |
| 248 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0a902b0d55fddef6f8d651fe1035b7d4bd">armnn::profiling::Error</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00454">armnn::profiling::WriteTimelineLabelBinaryPacket()</a>.</p> |
| 249 | <div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  std::vector<unsigned char> buffer(512, 0);</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>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">const</span> std::string label = <span class="stringliteral">"s0m€ l@b€l"</span>;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">WriteTimelineLabelBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  label,</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  buffer.data(),</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  numberOfBytesWritten);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Error);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 250 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab1c765a8fbdb497a4d5196f6e00a154a"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">armnn::profiling::WriteTimelineLabelBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string &label, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00454">ProfilingUtils.cpp:454</a></div></div> |
| 251 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 252 | </div><!-- fragment --> |
| 253 | </div> |
| 254 | </div> |
| 255 | <a id="a8e178ca43a1491efc83e9285eb778f7b"></a> |
| 256 | <h2 class="memtitle"><span class="permalink"><a href="#a8e178ca43a1491efc83e9285eb778f7b">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[5/28]</span></h2> |
| 257 | |
| 258 | <div class="memitem"> |
| 259 | <div class="memproto"> |
| 260 | <table class="memname"> |
| 261 | <tr> |
| 262 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 263 | <td>(</td> |
| 264 | <td class="paramtype">TimelineLabelPacketTest5 </td> |
| 265 | <td class="paramname"></td><td>)</td> |
| 266 | <td></td> |
| 267 | </tr> |
| 268 | </table> |
| 269 | </div><div class="memdoc"> |
| 270 | |
| 271 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00077">77</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 272 | |
| 273 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00454">armnn::profiling::WriteTimelineLabelBinaryPacket()</a>.</p> |
| 274 | <div class="fragment"><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  std::vector<unsigned char> buffer(512, 0);</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>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">const</span> std::string label = <span class="stringliteral">"some label"</span>;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">WriteTimelineLabelBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  label,</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  buffer.data(),</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  numberOfBytesWritten);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 36);</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 28);</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>  <span class="comment">// Check decl_Id</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  uint32_t decl_Id = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(decl_Id == uint32_t(0));</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>  <span class="comment">// Check the profiling GUID</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  uint64_t readProfilingGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readProfilingGuid == profilingGuid);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="comment">// Check the SWTrace label</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  offset += uint64_t_size;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  uint32_t swTraceLabelLength = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(swTraceLabelLength == 11); <span class="comment">// Label length including the null-terminator</span></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>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::memcmp(buffer.data() + offset, <span class="comment">// Offset to the label in the buffer</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  label.data(), <span class="comment">// The original label</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  swTraceLabelLength - 1) == 0); <span class="comment">// The length of the label</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  offset += swTraceLabelLength * <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(buffer[offset] == <span class="charliteral">'\0'</span>); <span class="comment">// The null-terminator at the end of the SWTrace label</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 275 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 276 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 277 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab1c765a8fbdb497a4d5196f6e00a154a"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab1c765a8fbdb497a4d5196f6e00a154a">armnn::profiling::WriteTimelineLabelBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string &label, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00454">ProfilingUtils.cpp:454</a></div></div> |
| 278 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 279 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 280 | </div><!-- fragment --> |
| 281 | </div> |
| 282 | </div> |
| 283 | <a id="ae16374a141eeb3435ade8806091c8cb1"></a> |
| 284 | <h2 class="memtitle"><span class="permalink"><a href="#ae16374a141eeb3435ade8806091c8cb1">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[6/28]</span></h2> |
| 285 | |
| 286 | <div class="memitem"> |
| 287 | <div class="memproto"> |
| 288 | <table class="memname"> |
| 289 | <tr> |
| 290 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 291 | <td>(</td> |
| 292 | <td class="paramtype">TimelineRelationshipPacketNullBufferTest </td> |
| 293 | <td class="paramname"></td><td>)</td> |
| 294 | <td></td> |
| 295 | </tr> |
| 296 | </table> |
| 297 | </div><div class="memdoc"> |
| 298 | |
| 299 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00138">138</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 300 | |
| 301 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::DataLink</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 302 | <div class="fragment"><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> {</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <a class="code" href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">ProfilingRelationshipType::DataLink</a>;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  relationshipGuid,</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  headGuid,</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  tailGuid,</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  512u,</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  numberOfBytesWritten);</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 303 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 304 | <div class="ttc" id="_timeline_model_8h_html_afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305"><div class="ttname"><a href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div><div class="ttdef"><b>Definition:</b> <a href="_timeline_model_8h_source.html#l00021">TimelineModel.h:21</a></div></div> |
| 305 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 306 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 307 | </div><!-- fragment --> |
| 308 | </div> |
| 309 | </div> |
| 310 | <a id="a5184ef0ff51c346119d4cbf5330d6744"></a> |
| 311 | <h2 class="memtitle"><span class="permalink"><a href="#a5184ef0ff51c346119d4cbf5330d6744">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[7/28]</span></h2> |
| 312 | |
| 313 | <div class="memitem"> |
| 314 | <div class="memproto"> |
| 315 | <table class="memname"> |
| 316 | <tr> |
| 317 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 318 | <td>(</td> |
| 319 | <td class="paramtype">TimelineRelationshipPacketZeroBufferSizeTest </td> |
| 320 | <td class="paramname"></td><td>)</td> |
| 321 | <td></td> |
| 322 | </tr> |
| 323 | </table> |
| 324 | </div><div class="memdoc"> |
| 325 | |
| 326 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00156">156</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 327 | |
| 328 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::DataLink</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 329 | <div class="fragment"><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> {</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <a class="code" href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">ProfilingRelationshipType::DataLink</a>;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  relationshipGuid,</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  headGuid,</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  tailGuid,</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  buffer.data(),</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  0,</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  numberOfBytesWritten);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 330 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 331 | <div class="ttc" id="_timeline_model_8h_html_afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305"><div class="ttname"><a href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div><div class="ttdef"><b>Definition:</b> <a href="_timeline_model_8h_source.html#l00021">TimelineModel.h:21</a></div></div> |
| 332 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 333 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 334 | </div><!-- fragment --> |
| 335 | </div> |
| 336 | </div> |
| 337 | <a id="a54d7d1e7653a20cdc4b2375787652494"></a> |
| 338 | <h2 class="memtitle"><span class="permalink"><a href="#a54d7d1e7653a20cdc4b2375787652494">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[8/28]</span></h2> |
| 339 | |
| 340 | <div class="memitem"> |
| 341 | <div class="memproto"> |
| 342 | <table class="memname"> |
| 343 | <tr> |
| 344 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 345 | <td>(</td> |
| 346 | <td class="paramtype">TimelineRelationshipPacketSmallBufferSizeTest </td> |
| 347 | <td class="paramname"></td><td>)</td> |
| 348 | <td></td> |
| 349 | </tr> |
| 350 | </table> |
| 351 | </div><div class="memdoc"> |
| 352 | |
| 353 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00176">176</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 354 | |
| 355 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::DataLink</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 356 | <div class="fragment"><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> {</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  std::vector<unsigned char> buffer(10, 0);</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <a class="code" href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">ProfilingRelationshipType::DataLink</a>;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result =</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  relationshipGuid,</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  headGuid,</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  tailGuid,</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  buffer.data(),</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  numberOfBytesWritten);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 357 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 358 | <div class="ttc" id="_timeline_model_8h_html_afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305"><div class="ttname"><a href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div><div class="ttdef"><b>Definition:</b> <a href="_timeline_model_8h_source.html#l00021">TimelineModel.h:21</a></div></div> |
| 359 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 360 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 361 | </div><!-- fragment --> |
| 362 | </div> |
| 363 | </div> |
| 364 | <a id="ab416af620457fd5b5daae72d92006ad6"></a> |
| 365 | <h2 class="memtitle"><span class="permalink"><a href="#ab416af620457fd5b5daae72d92006ad6">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[9/28]</span></h2> |
| 366 | |
| 367 | <div class="memitem"> |
| 368 | <div class="memproto"> |
| 369 | <table class="memname"> |
| 370 | <tr> |
| 371 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 372 | <td>(</td> |
| 373 | <td class="paramtype">TimelineRelationshipPacketInvalidRelationTest </td> |
| 374 | <td class="paramname"></td><td>)</td> |
| 375 | <td></td> |
| 376 | </tr> |
| 377 | </table> |
| 378 | </div><div class="memdoc"> |
| 379 | |
| 380 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00197">197</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 381 | |
| 382 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 383 | <div class="fragment"><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> {</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <span class="keyword">static_cast<</span><a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a><span class="keyword">></span>(5);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  BOOST_CHECK_THROW(<a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  relationshipGuid,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  headGuid,</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  tailGuid,</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  buffer.data(),</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  numberOfBytesWritten),</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a>);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 384 | <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div> |
| 385 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 386 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 387 | </div><!-- fragment --> |
| 388 | </div> |
| 389 | </div> |
| 390 | <a id="a19ec863379c74395d23a077e8893c88b"></a> |
| 391 | <h2 class="memtitle"><span class="permalink"><a href="#a19ec863379c74395d23a077e8893c88b">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[10/28]</span></h2> |
| 392 | |
| 393 | <div class="memitem"> |
| 394 | <div class="memproto"> |
| 395 | <table class="memname"> |
| 396 | <tr> |
| 397 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 398 | <td>(</td> |
| 399 | <td class="paramtype">TimelineRelationshipPacketTest </td> |
| 400 | <td class="paramname"></td><td>)</td> |
| 401 | <td></td> |
| 402 | </tr> |
| 403 | </table> |
| 404 | </div><div class="memdoc"> |
| 405 | |
| 406 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00218">218</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 407 | |
| 408 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2afc04d023850b425f3b9c62b3a55dc110">armnn::profiling::RetentionLink</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 409 | <div class="fragment"><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>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <a class="code" href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667aeabb89c07f596ab9289315c4bb4809f9">ProfilingRelationshipType::RetentionLink</a>;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result =</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  relationshipGuid,</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  headGuid,</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  tailGuid,</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  buffer.data(),</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  numberOfBytesWritten);</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 40);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</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>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</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>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 32);</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>  <span class="comment">// Check the decl_id</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  uint32_t readDeclId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readDeclId == 3);</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>  <span class="comment">// Check the relationship type</span></div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  uint32_t readRelationshipType = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipType == 0);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="comment">// Check the relationship GUID</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  uint64_t readRelationshipGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipGuid == relationshipGuid);</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="comment">// Check the head GUID</span></div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  offset += uint64_t_size;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  uint64_t readHeadGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readHeadGuid == headGuid);</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="comment">// Check the tail GUID</span></div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  offset += uint64_t_size;</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  uint64_t readTailGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readTailGuid == tailGuid);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 410 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 411 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 412 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 413 | <div class="ttc" id="_timeline_model_8h_html_afcec9ac4ebf3a53432bbd77a314b0667aeabb89c07f596ab9289315c4bb4809f9"><div class="ttname"><a href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667aeabb89c07f596ab9289315c4bb4809f9">RetentionLink</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_model_8h_source.html#l00019">TimelineModel.h:19</a></div></div> |
| 414 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 415 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 416 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 417 | </div><!-- fragment --> |
| 418 | </div> |
| 419 | </div> |
| 420 | <a id="a86c9b01022510861736749e1232e117a"></a> |
| 421 | <h2 class="memtitle"><span class="permalink"><a href="#a86c9b01022510861736749e1232e117a">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[11/28]</span></h2> |
| 422 | |
| 423 | <div class="memitem"> |
| 424 | <div class="memproto"> |
| 425 | <table class="memname"> |
| 426 | <tr> |
| 427 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 428 | <td>(</td> |
| 429 | <td class="paramtype">TimelineRelationshipPacketExecutionLinkTest </td> |
| 430 | <td class="paramname"></td><td>)</td> |
| 431 | <td></td> |
| 432 | </tr> |
| 433 | </table> |
| 434 | </div><div class="memdoc"> |
| 435 | |
| 436 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00286">286</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 437 | |
| 438 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2a5265db1a79410fbe447a3faa98e7b914">armnn::profiling::ExecutionLink</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 439 | <div class="fragment"><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>  std::vector<unsigned char> buffer(512, 0);</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>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <a class="code" href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a2233b7e46ae0bb484844a7e7ce033686">ProfilingRelationshipType::ExecutionLink</a>;</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result =</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  relationshipGuid,</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  headGuid,</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  tailGuid,</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  buffer.data(),</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  numberOfBytesWritten);</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 40);</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="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</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">// Check the packet header</span></div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 32);</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="comment">// Check the decl_id</span></div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  uint32_t readDeclId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readDeclId == 3);</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>  <span class="comment">// Check the relationship type</span></div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  uint32_t readRelationshipType = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipType == 1);</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="comment">// Check the relationship GUID</span></div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  uint64_t readRelationshipGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipGuid == relationshipGuid);</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>  <span class="comment">// Check the head GUID</span></div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  offset += uint64_t_size;</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  uint64_t readHeadGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readHeadGuid == headGuid);</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="comment">// Check the tail GUID</span></div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  offset += uint64_t_size;</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  uint64_t readTailGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readTailGuid == tailGuid);</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 440 | <div class="ttc" id="_timeline_model_8h_html_afcec9ac4ebf3a53432bbd77a314b0667a2233b7e46ae0bb484844a7e7ce033686"><div class="ttname"><a href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a2233b7e46ae0bb484844a7e7ce033686">ExecutionLink</a></div><div class="ttdoc">Head retains(parents) Tail. </div><div class="ttdef"><b>Definition:</b> <a href="_timeline_model_8h_source.html#l00020">TimelineModel.h:20</a></div></div> |
| 441 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 442 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 443 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 444 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 445 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 446 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 447 | </div><!-- fragment --> |
| 448 | </div> |
| 449 | </div> |
| 450 | <a id="a2e73f40e0746338c55d43d1b6b15bcd2"></a> |
| 451 | <h2 class="memtitle"><span class="permalink"><a href="#a2e73f40e0746338c55d43d1b6b15bcd2">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[12/28]</span></h2> |
| 452 | |
| 453 | <div class="memitem"> |
| 454 | <div class="memproto"> |
| 455 | <table class="memname"> |
| 456 | <tr> |
| 457 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 458 | <td>(</td> |
| 459 | <td class="paramtype">TimelineRelationshipPacketDataLinkTest </td> |
| 460 | <td class="paramname"></td><td>)</td> |
| 461 | <td></td> |
| 462 | </tr> |
| 463 | </table> |
| 464 | </div><div class="memdoc"> |
| 465 | |
| 466 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00355">355</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 467 | |
| 468 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::DataLink</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 469 | <div class="fragment"><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> {</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <a class="code" href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">ProfilingRelationshipType::DataLink</a>;</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result =</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  relationshipGuid,</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  headGuid,</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  tailGuid,</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  buffer.data(),</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  numberOfBytesWritten);</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 40);</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> </div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span> </div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span> </div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 32);</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span> </div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="comment">// Check the decl_id</span></div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  uint32_t readDeclId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readDeclId == 3);</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="comment">// Check the relationship type</span></div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  uint32_t readRelationshipType = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipType == 2);</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> </div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="comment">// Check the relationship GUID</span></div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  uint64_t readRelationshipGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipGuid == relationshipGuid);</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="comment">// Check the head GUID</span></div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  offset += uint64_t_size;</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  uint64_t readHeadGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readHeadGuid == headGuid);</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span> </div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="comment">// Check the tail GUID</span></div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  offset += uint64_t_size;</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  uint64_t readTailGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readTailGuid == tailGuid);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 470 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 471 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 472 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 473 | <div class="ttc" id="_timeline_model_8h_html_afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305"><div class="ttname"><a href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667a760ab1e8631c34dd99faeb64b91b5305">DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div><div class="ttdef"><b>Definition:</b> <a href="_timeline_model_8h_source.html#l00021">TimelineModel.h:21</a></div></div> |
| 474 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 475 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 476 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 477 | </div><!-- fragment --> |
| 478 | </div> |
| 479 | </div> |
| 480 | <a id="ab1ee0af6d295a3a66a35906749a6b519"></a> |
| 481 | <h2 class="memtitle"><span class="permalink"><a href="#ab1ee0af6d295a3a66a35906749a6b519">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[13/28]</span></h2> |
| 482 | |
| 483 | <div class="memitem"> |
| 484 | <div class="memproto"> |
| 485 | <table class="memname"> |
| 486 | <tr> |
| 487 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 488 | <td>(</td> |
| 489 | <td class="paramtype">TimelineRelationshipPacketLabelLinkTest </td> |
| 490 | <td class="paramname"></td><td>)</td> |
| 491 | <td></td> |
| 492 | </tr> |
| 493 | </table> |
| 494 | </div><div class="memdoc"> |
| 495 | |
| 496 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00424">424</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 497 | |
| 498 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2a47d6c060a0aa40c6fd018f12b7c96f1f">armnn::profiling::LabelLink</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00587">armnn::profiling::WriteTimelineRelationshipBinaryPacket()</a>.</p> |
| 499 | <div class="fragment"><div class="line"><a name="l00425"></a><span class="lineno"> 425</span> {</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType = <a class="code" href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667ae022eb1c159e218951b903868244e295">ProfilingRelationshipType::LabelLink</a>;</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keyword">const</span> uint64_t relationshipGuid = 123456u;</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <span class="keyword">const</span> uint64_t headGuid = 234567u;</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <span class="keyword">const</span> uint64_t tailGuid = 345678u;</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result =</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">WriteTimelineRelationshipBinaryPacket</a>(relationshipType,</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  relationshipGuid,</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  headGuid,</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  tailGuid,</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  buffer.data(),</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  numberOfBytesWritten);</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 40);</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span> </div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span> </div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 32);</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span> </div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="comment">// Check the decl_id</span></div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  uint32_t readDeclId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readDeclId == 3);</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span> </div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="comment">// Check the relationship type</span></div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  uint32_t readRelationshipType = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipType == 3);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span> </div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="comment">// Check the relationship GUID</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  uint64_t readRelationshipGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readRelationshipGuid == relationshipGuid);</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="comment">// Check the head GUID</span></div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  offset += uint64_t_size;</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  uint64_t readHeadGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readHeadGuid == headGuid);</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <span class="comment">// Check the tail GUID</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  offset += uint64_t_size;</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  uint64_t readTailGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readTailGuid == tailGuid);</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 500 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab805f5aa9f101e7f6d971daba044c3c2"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00019">ISendTimelinePacket.hpp:19</a></div></div> |
| 501 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 502 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 503 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ab297a168716434d0c968b817d7c1559f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ab297a168716434d0c968b817d7c1559f">armnn::profiling::WriteTimelineRelationshipBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinaryPacket(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00587">ProfilingUtils.cpp:587</a></div></div> |
| 504 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 505 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 506 | <div class="ttc" id="_timeline_model_8h_html_afcec9ac4ebf3a53432bbd77a314b0667ae022eb1c159e218951b903868244e295"><div class="ttname"><a href="_timeline_model_8h.html#afcec9ac4ebf3a53432bbd77a314b0667ae022eb1c159e218951b903868244e295">LabelLink</a></div><div class="ttdoc">Head uses data of Tail. </div><div class="ttdef"><b>Definition:</b> <a href="_timeline_model_8h_source.html#l00022">TimelineModel.h:22</a></div></div> |
| 507 | </div><!-- fragment --> |
| 508 | </div> |
| 509 | </div> |
| 510 | <a id="a4092d6dba43122a7039262a7bb51bf1f"></a> |
| 511 | <h2 class="memtitle"><span class="permalink"><a href="#a4092d6dba43122a7039262a7bb51bf1f">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[14/28]</span></h2> |
| 512 | |
| 513 | <div class="memitem"> |
| 514 | <div class="memproto"> |
| 515 | <table class="memname"> |
| 516 | <tr> |
| 517 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 518 | <td>(</td> |
| 519 | <td class="paramtype">TimelineMessageDirectoryPacketTest1 </td> |
| 520 | <td class="paramname"></td><td>)</td> |
| 521 | <td></td> |
| 522 | </tr> |
| 523 | </table> |
| 524 | </div><div class="memdoc"> |
| 525 | |
| 526 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00492">492</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 527 | |
| 528 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00674">armnn::profiling::WriteTimelineMessageDirectoryPackage()</a>.</p> |
| 529 | <div class="fragment"><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> {</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a1387f84f47e9232fa4044a0b7ac1649c">WriteTimelineMessageDirectoryPackage</a>(<span class="keyword">nullptr</span>,</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  512u,</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  numberOfBytesWritten);</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 530 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 531 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a1387f84f47e9232fa4044a0b7ac1649c"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a1387f84f47e9232fa4044a0b7ac1649c">armnn::profiling::WriteTimelineMessageDirectoryPackage</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineMessageDirectoryPackage(unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00674">ProfilingUtils.cpp:674</a></div></div> |
| 532 | </div><!-- fragment --> |
| 533 | </div> |
| 534 | </div> |
| 535 | <a id="acdac9473c317db8a5a15e42148245394"></a> |
| 536 | <h2 class="memtitle"><span class="permalink"><a href="#acdac9473c317db8a5a15e42148245394">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[15/28]</span></h2> |
| 537 | |
| 538 | <div class="memitem"> |
| 539 | <div class="memproto"> |
| 540 | <table class="memname"> |
| 541 | <tr> |
| 542 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 543 | <td>(</td> |
| 544 | <td class="paramtype">TimelineMessageDirectoryPacketTest2 </td> |
| 545 | <td class="paramname"></td><td>)</td> |
| 546 | <td></td> |
| 547 | </tr> |
| 548 | </table> |
| 549 | </div><div class="memdoc"> |
| 550 | |
| 551 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00502">502</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 552 | |
| 553 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00674">armnn::profiling::WriteTimelineMessageDirectoryPackage()</a>.</p> |
| 554 | <div class="fragment"><div class="line"><a name="l00503"></a><span class="lineno"> 503</span> {</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span> </div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a1387f84f47e9232fa4044a0b7ac1649c">WriteTimelineMessageDirectoryPackage</a>(buffer.data(),</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  0,</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  numberOfBytesWritten);</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 555 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 556 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a1387f84f47e9232fa4044a0b7ac1649c"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a1387f84f47e9232fa4044a0b7ac1649c">armnn::profiling::WriteTimelineMessageDirectoryPackage</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineMessageDirectoryPackage(unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00674">ProfilingUtils.cpp:674</a></div></div> |
| 557 | </div><!-- fragment --> |
| 558 | </div> |
| 559 | </div> |
| 560 | <a id="a00070eb95806c899023c60fd6588b2e4"></a> |
| 561 | <h2 class="memtitle"><span class="permalink"><a href="#a00070eb95806c899023c60fd6588b2e4">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[16/28]</span></h2> |
| 562 | |
| 563 | <div class="memitem"> |
| 564 | <div class="memproto"> |
| 565 | <table class="memname"> |
| 566 | <tr> |
| 567 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 568 | <td>(</td> |
| 569 | <td class="paramtype">TimelineMessageDirectoryPacketTest3 </td> |
| 570 | <td class="paramname"></td><td>)</td> |
| 571 | <td></td> |
| 572 | </tr> |
| 573 | </table> |
| 574 | </div><div class="memdoc"> |
| 575 | |
| 576 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00514">514</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 577 | |
| 578 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00218">armnn::profiling::ReadUint8()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00674">armnn::profiling::WriteTimelineMessageDirectoryPackage()</a>.</p> |
| 579 | <div class="fragment"><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> {</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a1387f84f47e9232fa4044a0b7ac1649c">WriteTimelineMessageDirectoryPackage</a>(buffer.data(),</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  numberOfBytesWritten);</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span> </div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 427);</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span> </div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint8_t_size = <span class="keyword">sizeof</span>(uint8_t);</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> threadId_size = <span class="keyword">sizeof</span>(std::thread::id);</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 0);</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span> </div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 419);</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span> </div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="comment">// Check the stream header</span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  uint8_t readStreamVersion = <a class="code" href="namespacearmnn_1_1profiling.html#a74b483b652cc32f03151b10a1366d607">ReadUint8</a>(buffer.data(), offset);</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readStreamVersion == 4);</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  offset += uint8_t_size;</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  uint8_t readPointerBytes = <a class="code" href="namespacearmnn_1_1profiling.html#a74b483b652cc32f03151b10a1366d607">ReadUint8</a>(buffer.data(), offset);</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readPointerBytes == uint64_t_size);</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  offset += uint8_t_size;</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  uint8_t readThreadIdBytes = <a class="code" href="namespacearmnn_1_1profiling.html#a74b483b652cc32f03151b10a1366d607">ReadUint8</a>(buffer.data(), offset);</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readThreadIdBytes == threadId_size);</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> </div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <span class="comment">// Check the number of declarations</span></div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  offset += uint8_t_size;</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  uint32_t declCount = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(declCount == 5);</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span> </div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="comment">// Check the decl_id</span></div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  uint32_t readDeclId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readDeclId == 0);</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span> </div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  <span class="comment">// SWTrace "namestring" format</span></div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="comment">// length of the string (first 4 bytes) + string + null terminator</span></div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span> </div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <span class="comment">// Check the decl_name</span></div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  uint32_t swTraceDeclNameLength = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(swTraceDeclNameLength == 13); <span class="comment">// decl_name length including the null-terminator</span></div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span> </div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  std::string label = <span class="stringliteral">"declareLabel"</span>;</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::memcmp(buffer.data() + offset, <span class="comment">// Offset to the label in the buffer</span></div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  label.data(), <span class="comment">// The original label</span></div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  swTraceDeclNameLength - 1) == 0); <span class="comment">// The length of the label</span></div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span> </div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  <span class="comment">// Check the ui_name</span></div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  std::vector<uint32_t> swTraceString;</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  StringToSwTraceString<SwTraceCharPolicy>(label, swTraceString);</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  offset += (boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(swTraceString.size()) - 1) * <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  uint32_t swTraceUINameLength = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(swTraceUINameLength == 14); <span class="comment">// ui_name length including the null-terminator</span></div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span> </div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  label = <span class="stringliteral">"declare label"</span>;</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::memcmp(buffer.data() + offset, <span class="comment">// Offset to the label in the buffer</span></div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  label.data(), <span class="comment">// The original label</span></div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  swTraceUINameLength - 1) == 0); <span class="comment">// The length of the label</span></div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span> </div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  <span class="comment">// Check arg_types</span></div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  StringToSwTraceString<SwTraceCharPolicy>(label, swTraceString);</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  offset += (boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(swTraceString.size()) - 1) * <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  uint32_t swTraceArgTypesLength = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(swTraceArgTypesLength == 3); <span class="comment">// arg_types length including the null-terminator</span></div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span> </div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  label = <span class="stringliteral">"ps"</span>;</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::memcmp(buffer.data() + offset, <span class="comment">// Offset to the label in the buffer</span></div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  label.data(), <span class="comment">// The original label</span></div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  swTraceArgTypesLength - 1) == 0); <span class="comment">// The length of the label</span></div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span> </div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <span class="comment">// Check arg_names</span></div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  StringToSwTraceString<SwTraceCharPolicy>(label, swTraceString);</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  offset += (boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(swTraceString.size()) - 1) * <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  uint32_t swTraceArgNamesLength = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(swTraceArgNamesLength == 11); <span class="comment">// arg_names length including the null-terminator</span></div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span> </div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  label = <span class="stringliteral">"guid,value"</span>;</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::memcmp(buffer.data() + offset, <span class="comment">// Offset to the label in the buffer</span></div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  label.data(), <span class="comment">// The original label</span></div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  swTraceArgNamesLength - 1) == 0); <span class="comment">// The length of the label</span></div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span> </div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <span class="comment">// Check second message decl_id</span></div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  StringToSwTraceString<SwTraceCharPolicy>(label, swTraceString);</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  offset += (boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(swTraceString.size()) - 1) * <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  readDeclId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readDeclId == 1);</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span> </div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <span class="comment">// Check second decl_name</span></div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  swTraceDeclNameLength = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(swTraceDeclNameLength == 14); <span class="comment">// decl_name length including the null-terminator</span></div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span> </div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  label = <span class="stringliteral">"declareEntity"</span>;</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::memcmp(buffer.data() + offset, <span class="comment">// Offset to the label in the buffer</span></div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  label.data(), <span class="comment">// The original label</span></div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  swTraceDeclNameLength - 1) == 0); <span class="comment">// The length of the label</span></div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 580 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 581 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 582 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 583 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a74b483b652cc32f03151b10a1366d607"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00218">ProfilingUtils.cpp:218</a></div></div> |
| 584 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a1387f84f47e9232fa4044a0b7ac1649c"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a1387f84f47e9232fa4044a0b7ac1649c">armnn::profiling::WriteTimelineMessageDirectoryPackage</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineMessageDirectoryPackage(unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00674">ProfilingUtils.cpp:674</a></div></div> |
| 585 | </div><!-- fragment --> |
| 586 | </div> |
| 587 | </div> |
| 588 | <a id="aa756f9128712ee04052964ab9a4f0669"></a> |
| 589 | <h2 class="memtitle"><span class="permalink"><a href="#aa756f9128712ee04052964ab9a4f0669">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[17/28]</span></h2> |
| 590 | |
| 591 | <div class="memitem"> |
| 592 | <div class="memproto"> |
| 593 | <table class="memname"> |
| 594 | <tr> |
| 595 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 596 | <td>(</td> |
| 597 | <td class="paramtype">TimelineEntityPacketTest1 </td> |
| 598 | <td class="paramname"></td><td>)</td> |
| 599 | <td></td> |
| 600 | </tr> |
| 601 | </table> |
| 602 | </div><div class="memdoc"> |
| 603 | |
| 604 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00639">639</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 605 | |
| 606 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00530">armnn::profiling::WriteTimelineEntityBinaryPacket()</a>.</p> |
| 607 | <div class="fragment"><div class="line"><a name="l00640"></a><span class="lineno"> 640</span> {</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">WriteTimelineEntityBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>  512u,</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  numberOfBytesWritten);</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_a285612831904352ec84245e0790099fb"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">armnn::profiling::WriteTimelineEntityBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEntityBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00530">ProfilingUtils.cpp:530</a></div></div> |
| 608 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 609 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 610 | </div><!-- fragment --> |
| 611 | </div> |
| 612 | </div> |
| 613 | <a id="ab9a4cc06f5b992e8da38c2c76ffcceaf"></a> |
| 614 | <h2 class="memtitle"><span class="permalink"><a href="#ab9a4cc06f5b992e8da38c2c76ffcceaf">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[18/28]</span></h2> |
| 615 | |
| 616 | <div class="memitem"> |
| 617 | <div class="memproto"> |
| 618 | <table class="memname"> |
| 619 | <tr> |
| 620 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 621 | <td>(</td> |
| 622 | <td class="paramtype">TimelineEntityPacketTest2 </td> |
| 623 | <td class="paramname"></td><td>)</td> |
| 624 | <td></td> |
| 625 | </tr> |
| 626 | </table> |
| 627 | </div><div class="memdoc"> |
| 628 | |
| 629 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00651">651</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 630 | |
| 631 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00530">armnn::profiling::WriteTimelineEntityBinaryPacket()</a>.</p> |
| 632 | <div class="fragment"><div class="line"><a name="l00652"></a><span class="lineno"> 652</span> {</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span> </div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">WriteTimelineEntityBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  buffer.data(),</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  0,</div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  numberOfBytesWritten);</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_a285612831904352ec84245e0790099fb"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">armnn::profiling::WriteTimelineEntityBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEntityBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00530">ProfilingUtils.cpp:530</a></div></div> |
| 633 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 634 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 635 | </div><!-- fragment --> |
| 636 | </div> |
| 637 | </div> |
| 638 | <a id="a79e10c67b5e425c583dceb7eed9e4e7f"></a> |
| 639 | <h2 class="memtitle"><span class="permalink"><a href="#a79e10c67b5e425c583dceb7eed9e4e7f">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[19/28]</span></h2> |
| 640 | |
| 641 | <div class="memitem"> |
| 642 | <div class="memproto"> |
| 643 | <table class="memname"> |
| 644 | <tr> |
| 645 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 646 | <td>(</td> |
| 647 | <td class="paramtype">TimelineEntityPacketTest3 </td> |
| 648 | <td class="paramname"></td><td>)</td> |
| 649 | <td></td> |
| 650 | </tr> |
| 651 | </table> |
| 652 | </div><div class="memdoc"> |
| 653 | |
| 654 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00665">665</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 655 | |
| 656 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00530">armnn::profiling::WriteTimelineEntityBinaryPacket()</a>.</p> |
| 657 | <div class="fragment"><div class="line"><a name="l00666"></a><span class="lineno"> 666</span> {</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  std::vector<unsigned char> buffer(10, 0);</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span> </div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">WriteTimelineEntityBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  buffer.data(),</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  numberOfBytesWritten);</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_a285612831904352ec84245e0790099fb"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">armnn::profiling::WriteTimelineEntityBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEntityBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00530">ProfilingUtils.cpp:530</a></div></div> |
| 658 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 659 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 660 | </div><!-- fragment --> |
| 661 | </div> |
| 662 | </div> |
| 663 | <a id="a3a8ca48313101832a516fe9d4c97ce61"></a> |
| 664 | <h2 class="memtitle"><span class="permalink"><a href="#a3a8ca48313101832a516fe9d4c97ce61">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[20/28]</span></h2> |
| 665 | |
| 666 | <div class="memitem"> |
| 667 | <div class="memproto"> |
| 668 | <table class="memname"> |
| 669 | <tr> |
| 670 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 671 | <td>(</td> |
| 672 | <td class="paramtype">TimelineEntityPacketTest4 </td> |
| 673 | <td class="paramname"></td><td>)</td> |
| 674 | <td></td> |
| 675 | </tr> |
| 676 | </table> |
| 677 | </div><div class="memdoc"> |
| 678 | |
| 679 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00679">679</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 680 | |
| 681 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00530">armnn::profiling::WriteTimelineEntityBinaryPacket()</a>.</p> |
| 682 | <div class="fragment"><div class="line"><a name="l00680"></a><span class="lineno"> 680</span> {</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span> </div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">WriteTimelineEntityBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  buffer.data(),</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  numberOfBytesWritten);</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 20);</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span> </div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span> </div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span> </div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 12);</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span> </div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <span class="comment">// Check decl_Id</span></div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  uint32_t decl_Id = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(decl_Id == uint32_t(1));</div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span> </div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  <span class="comment">// Check the profiling GUID</span></div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  uint64_t readProfilingGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readProfilingGuid == profilingGuid);</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 683 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 684 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a285612831904352ec84245e0790099fb"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a285612831904352ec84245e0790099fb">armnn::profiling::WriteTimelineEntityBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEntityBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00530">ProfilingUtils.cpp:530</a></div></div> |
| 685 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 686 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 687 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 688 | </div><!-- fragment --> |
| 689 | </div> |
| 690 | </div> |
| 691 | <a id="ac830fbb4c494722f69780d75660f095f"></a> |
| 692 | <h2 class="memtitle"><span class="permalink"><a href="#ac830fbb4c494722f69780d75660f095f">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[21/28]</span></h2> |
| 693 | |
| 694 | <div class="memitem"> |
| 695 | <div class="memproto"> |
| 696 | <table class="memname"> |
| 697 | <tr> |
| 698 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 699 | <td>(</td> |
| 700 | <td class="paramtype">TimelineEventClassTest1 </td> |
| 701 | <td class="paramname"></td><td>)</td> |
| 702 | <td></td> |
| 703 | </tr> |
| 704 | </table> |
| 705 | </div><div class="memdoc"> |
| 706 | |
| 707 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00724">724</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 708 | |
| 709 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00802">armnn::profiling::WriteTimelineEventClassBinaryPacket()</a>.</p> |
| 710 | <div class="fragment"><div class="line"><a name="l00725"></a><span class="lineno"> 725</span> {</div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">WriteTimelineEventClassBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span>  512u,</div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  numberOfBytesWritten);</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_afe1694f6aa8b9b638050db6e6b217327"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">armnn::profiling::WriteTimelineEventClassBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventClassBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00802">ProfilingUtils.cpp:802</a></div></div> |
| 711 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 712 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 713 | </div><!-- fragment --> |
| 714 | </div> |
| 715 | </div> |
| 716 | <a id="a1b71ea841c1a4599c1221dc8d5039c24"></a> |
| 717 | <h2 class="memtitle"><span class="permalink"><a href="#a1b71ea841c1a4599c1221dc8d5039c24">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[22/28]</span></h2> |
| 718 | |
| 719 | <div class="memitem"> |
| 720 | <div class="memproto"> |
| 721 | <table class="memname"> |
| 722 | <tr> |
| 723 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 724 | <td>(</td> |
| 725 | <td class="paramtype">TimelineEventClassTest2 </td> |
| 726 | <td class="paramname"></td><td>)</td> |
| 727 | <td></td> |
| 728 | </tr> |
| 729 | </table> |
| 730 | </div><div class="memdoc"> |
| 731 | |
| 732 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00736">736</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 733 | |
| 734 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00802">armnn::profiling::WriteTimelineEventClassBinaryPacket()</a>.</p> |
| 735 | <div class="fragment"><div class="line"><a name="l00737"></a><span class="lineno"> 737</span> {</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span> </div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">WriteTimelineEventClassBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  buffer.data(),</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  0,</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  numberOfBytesWritten);</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_afe1694f6aa8b9b638050db6e6b217327"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">armnn::profiling::WriteTimelineEventClassBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventClassBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00802">ProfilingUtils.cpp:802</a></div></div> |
| 736 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 737 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 738 | </div><!-- fragment --> |
| 739 | </div> |
| 740 | </div> |
| 741 | <a id="a5c70a80185c9637ed592091d3f72b89a"></a> |
| 742 | <h2 class="memtitle"><span class="permalink"><a href="#a5c70a80185c9637ed592091d3f72b89a">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[23/28]</span></h2> |
| 743 | |
| 744 | <div class="memitem"> |
| 745 | <div class="memproto"> |
| 746 | <table class="memname"> |
| 747 | <tr> |
| 748 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 749 | <td>(</td> |
| 750 | <td class="paramtype">TimelineEventClassTest3 </td> |
| 751 | <td class="paramname"></td><td>)</td> |
| 752 | <td></td> |
| 753 | </tr> |
| 754 | </table> |
| 755 | </div><div class="memdoc"> |
| 756 | |
| 757 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00750">750</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 758 | |
| 759 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00802">armnn::profiling::WriteTimelineEventClassBinaryPacket()</a>.</p> |
| 760 | <div class="fragment"><div class="line"><a name="l00751"></a><span class="lineno"> 751</span> {</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  std::vector<unsigned char> buffer(10, 0);</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span> </div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">WriteTimelineEventClassBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  buffer.data(),</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  numberOfBytesWritten);</div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_afe1694f6aa8b9b638050db6e6b217327"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">armnn::profiling::WriteTimelineEventClassBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventClassBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00802">ProfilingUtils.cpp:802</a></div></div> |
| 761 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 762 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 763 | </div><!-- fragment --> |
| 764 | </div> |
| 765 | </div> |
| 766 | <a id="ab552a4b5495010d3720cebcfce60fb70"></a> |
| 767 | <h2 class="memtitle"><span class="permalink"><a href="#ab552a4b5495010d3720cebcfce60fb70">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[24/28]</span></h2> |
| 768 | |
| 769 | <div class="memitem"> |
| 770 | <div class="memproto"> |
| 771 | <table class="memname"> |
| 772 | <tr> |
| 773 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 774 | <td>(</td> |
| 775 | <td class="paramtype">TimelineEventClassTest4 </td> |
| 776 | <td class="paramname"></td><td>)</td> |
| 777 | <td></td> |
| 778 | </tr> |
| 779 | </table> |
| 780 | </div><div class="memdoc"> |
| 781 | |
| 782 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00764">764</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 783 | |
| 784 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00802">armnn::profiling::WriteTimelineEventClassBinaryPacket()</a>.</p> |
| 785 | <div class="fragment"><div class="line"><a name="l00765"></a><span class="lineno"> 765</span> {</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span> </div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">WriteTimelineEventClassBinaryPacket</a>(profilingGuid,</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  buffer.data(),</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  numberOfBytesWritten);</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 20);</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span> </div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span> </div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span> </div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 12);</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span> </div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span>  <span class="comment">// Check the decl_id</span></div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>  uint32_t declId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(declId == uint32_t(2));</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span> </div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  <span class="comment">// Check the profiling GUID</span></div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span>  uint64_t readProfilingGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readProfilingGuid == profilingGuid);</div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 786 | <div class="ttc" id="namespacearmnn_1_1profiling_html_afe1694f6aa8b9b638050db6e6b217327"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#afe1694f6aa8b9b638050db6e6b217327">armnn::profiling::WriteTimelineEventClassBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventClassBinaryPacket(uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00802">ProfilingUtils.cpp:802</a></div></div> |
| 787 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 788 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 789 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 790 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 791 | </div><!-- fragment --> |
| 792 | </div> |
| 793 | </div> |
| 794 | <a id="afa3d69eb68c8bb221dfd156d353c0cd2"></a> |
| 795 | <h2 class="memtitle"><span class="permalink"><a href="#afa3d69eb68c8bb221dfd156d353c0cd2">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[25/28]</span></h2> |
| 796 | |
| 797 | <div class="memitem"> |
| 798 | <div class="memproto"> |
| 799 | <table class="memname"> |
| 800 | <tr> |
| 801 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 802 | <td>(</td> |
| 803 | <td class="paramtype">TimelineEventPacketTest1 </td> |
| 804 | <td class="paramname"></td><td>)</td> |
| 805 | <td></td> |
| 806 | </tr> |
| 807 | </table> |
| 808 | </div><div class="memdoc"> |
| 809 | |
| 810 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00809">809</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 811 | |
| 812 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00859">armnn::profiling::WriteTimelineEventBinaryPacket()</a>.</p> |
| 813 | <div class="fragment"><div class="line"><a name="l00810"></a><span class="lineno"> 810</span> {</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>  <span class="keyword">const</span> uint64_t timestamp = 456789u;</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  <span class="keyword">const</span> std::thread::id threadId = std::this_thread::get_id();</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">WriteTimelineEventBinaryPacket</a>(timestamp,</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  threadId,</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  profilingGuid,</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  <span class="keyword">nullptr</span>,</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  512u,</div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  numberOfBytesWritten);</div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 814 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 815 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a300bd2a63db4f48bc02a14b15351ecf8"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">armnn::profiling::WriteTimelineEventBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventBinaryPacket(uint64_t timestamp, std::thread::id threadId, uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00859">ProfilingUtils.cpp:859</a></div></div> |
| 816 | </div><!-- fragment --> |
| 817 | </div> |
| 818 | </div> |
| 819 | <a id="a79287f03443df02717ddb54d39afe60c"></a> |
| 820 | <h2 class="memtitle"><span class="permalink"><a href="#a79287f03443df02717ddb54d39afe60c">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[26/28]</span></h2> |
| 821 | |
| 822 | <div class="memitem"> |
| 823 | <div class="memproto"> |
| 824 | <table class="memname"> |
| 825 | <tr> |
| 826 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 827 | <td>(</td> |
| 828 | <td class="paramtype">TimelineEventPacketTest2 </td> |
| 829 | <td class="paramname"></td><td>)</td> |
| 830 | <td></td> |
| 831 | </tr> |
| 832 | </table> |
| 833 | </div><div class="memdoc"> |
| 834 | |
| 835 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00825">825</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 836 | |
| 837 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00859">armnn::profiling::WriteTimelineEventBinaryPacket()</a>.</p> |
| 838 | <div class="fragment"><div class="line"><a name="l00826"></a><span class="lineno"> 826</span> {</div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span> </div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  <span class="keyword">const</span> uint64_t timestamp = 456789u;</div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  <span class="keyword">const</span> std::thread::id threadId = std::this_thread::get_id();</div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">WriteTimelineEventBinaryPacket</a>(timestamp,</div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  threadId,</div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  profilingGuid,</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  buffer.data(),</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  0,</div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  numberOfBytesWritten);</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 839 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 840 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a300bd2a63db4f48bc02a14b15351ecf8"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">armnn::profiling::WriteTimelineEventBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventBinaryPacket(uint64_t timestamp, std::thread::id threadId, uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00859">ProfilingUtils.cpp:859</a></div></div> |
| 841 | </div><!-- fragment --> |
| 842 | </div> |
| 843 | </div> |
| 844 | <a id="a714279122be5d2b0b80dd54f06bc7d43"></a> |
| 845 | <h2 class="memtitle"><span class="permalink"><a href="#a714279122be5d2b0b80dd54f06bc7d43">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[27/28]</span></h2> |
| 846 | |
| 847 | <div class="memitem"> |
| 848 | <div class="memproto"> |
| 849 | <table class="memname"> |
| 850 | <tr> |
| 851 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 852 | <td>(</td> |
| 853 | <td class="paramtype">TimelineEventPacketTest3 </td> |
| 854 | <td class="paramname"></td><td>)</td> |
| 855 | <td></td> |
| 856 | </tr> |
| 857 | </table> |
| 858 | </div><div class="memdoc"> |
| 859 | |
| 860 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00843">843</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 861 | |
| 862 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00859">armnn::profiling::WriteTimelineEventBinaryPacket()</a>.</p> |
| 863 | <div class="fragment"><div class="line"><a name="l00844"></a><span class="lineno"> 844</span> {</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  std::vector<unsigned char> buffer(10, 0);</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span> </div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  <span class="keyword">const</span> uint64_t timestamp = 456789u;</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  <span class="keyword">const</span> std::thread::id threadId = std::this_thread::get_id();</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">WriteTimelineEventBinaryPacket</a>(timestamp,</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  threadId,</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  profilingGuid,</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>  buffer.data(),</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  numberOfBytesWritten);</div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::BufferExhaustion);</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 0);</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 864 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 865 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a300bd2a63db4f48bc02a14b15351ecf8"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">armnn::profiling::WriteTimelineEventBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventBinaryPacket(uint64_t timestamp, std::thread::id threadId, uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00859">ProfilingUtils.cpp:859</a></div></div> |
| 866 | </div><!-- fragment --> |
| 867 | </div> |
| 868 | </div> |
| 869 | <a id="ac658c471671417a04bf7ac02be83f786"></a> |
| 870 | <h2 class="memtitle"><span class="permalink"><a href="#ac658c471671417a04bf7ac02be83f786">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[28/28]</span></h2> |
| 871 | |
| 872 | <div class="memitem"> |
| 873 | <div class="memproto"> |
| 874 | <table class="memname"> |
| 875 | <tr> |
| 876 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 877 | <td>(</td> |
| 878 | <td class="paramtype">TimelineEventPacketTest4 </td> |
| 879 | <td class="paramname"></td><td>)</td> |
| 880 | <td></td> |
| 881 | </tr> |
| 882 | </table> |
| 883 | </div><div class="memdoc"> |
| 884 | |
| 885 | <p class="definition">Definition at line <a class="el" href="_timeline_packet_tests_8cpp_source.html#l00861">861</a> of file <a class="el" href="_timeline_packet_tests_8cpp_source.html">TimelinePacketTests.cpp</a>.</p> |
| 886 | |
| 887 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00190">armnn::profiling::ReadBytes()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00197">armnn::profiling::ReadUint64()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.html#l00021">armnn::profiling::uint32_t_size</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00859">armnn::profiling::WriteTimelineEventBinaryPacket()</a>.</p> |
| 888 | <div class="fragment"><div class="line"><a name="l00862"></a><span class="lineno"> 862</span> {</div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  std::vector<unsigned char> buffer(512, 0);</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span> </div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  <span class="keyword">const</span> uint64_t timestamp = 456789u;</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  <span class="keyword">const</span> std::thread::id threadId = std::this_thread::get_id();</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  <span class="keyword">const</span> uint64_t profilingGuid = 123456u;</div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 789u;</div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  <a class="code" href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">WriteTimelineEventBinaryPacket</a>(timestamp,</div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  threadId,</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  profilingGuid,</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  buffer.data(),</div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(buffer.size()),</div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  numberOfBytesWritten);</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(result == TimelinePacketStatus::Ok);</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(numberOfBytesWritten == 36);</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span> </div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> threadId_size = <span class="keyword">sizeof</span>(std::thread::id);</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span> </div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  <span class="comment">// Check the packet header</span></div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  uint32_t packetHeaderWord0 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  uint32_t packetFamily = (packetHeaderWord0 >> 26) & 0x0000003F;</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  uint32_t packetClass = (packetHeaderWord0 >> 19) & 0x0000007F;</div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  uint32_t packetType = (packetHeaderWord0 >> 16) & 0x00000007;</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  uint32_t streamId = (packetHeaderWord0 >> 0) & 0x00000007;</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetFamily == 1);</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetClass == 0);</div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(packetType == 1);</div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(streamId == 0);</div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span> </div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  uint32_t packetHeaderWord1 = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>  uint32_t sequenceNumbered = (packetHeaderWord1 >> 24) & 0x00000001;</div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  uint32_t dataLength = (packetHeaderWord1 >> 0) & 0x00FFFFFF;</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(sequenceNumbered == 0);</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(dataLength == 28);</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span> </div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  <span class="comment">// Check the decl_id</span></div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  uint32_t readDeclId = <a class="code" href="namespacearmnn_1_1profiling.html#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer.data(), offset);</div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readDeclId == 4);</div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span> </div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  <span class="comment">// Check the timestamp</span></div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.html#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  uint64_t readTimestamp = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readTimestamp == timestamp);</div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span> </div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  <span class="comment">// Check the thread id</span></div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span>  offset += uint64_t_size;</div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  std::vector<uint8_t> readThreadId(threadId_size, 0);</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  <a class="code" href="namespacearmnn_1_1profiling.html#a097646e1b460c992b553061a3436fb47">ReadBytes</a>(buffer.data(), offset, threadId_size, readThreadId.data());</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readThreadId == threadId);</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span> </div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  <span class="comment">// Check the profiling GUID</span></div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  offset += threadId_size;</div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  uint64_t readProfilingGuid = <a class="code" href="namespacearmnn_1_1profiling.html#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a>(buffer.data(), offset);</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(readProfilingGuid == profilingGuid);</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_aa4de2b511faa41accc2c35cadf051124"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00197">ProfilingUtils.cpp:197</a></div></div> |
| 889 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 890 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.html#l00194">ProfilingUtils.hpp:194</a></div></div> |
| 891 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 892 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#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.html#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 893 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a300bd2a63db4f48bc02a14b15351ecf8"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a300bd2a63db4f48bc02a14b15351ecf8">armnn::profiling::WriteTimelineEventBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventBinaryPacket(uint64_t timestamp, std::thread::id threadId, uint64_t profilingGuid, unsigned char *buffer, unsigned int bufferSize, unsigned int &numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00859">ProfilingUtils.cpp:859</a></div></div> |
| 894 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a097646e1b460c992b553061a3436fb47"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a097646e1b460c992b553061a3436fb47">armnn::profiling::ReadBytes</a></div><div class="ttdeci">void ReadBytes(const IPacketBufferPtr &packetBuffer, unsigned int offset, unsigned int valueSize, uint8_t outValue[])</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00190">ProfilingUtils.cpp:190</a></div></div> |
| 895 | </div><!-- fragment --> |
| 896 | </div> |
| 897 | </div> |
| 898 | </div><!-- contents --> |
| 899 | </div><!-- doc-content --> |
| 900 | <!-- start footer part --> |
| 901 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 902 | <ul> |
| 903 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_637c692f14729569dd2eac0c18e2a54a.html">profiling</a></li><li class="navelem"><a class="el" href="dir_6b1198f6e738611120ec65b09506d2f8.html">test</a></li><li class="navelem"><a class="el" href="_timeline_packet_tests_8cpp.html">TimelinePacketTests.cpp</a></li> |
| 904 | <li class="footer">Generated on Fri Mar 13 2020 16:07:01 for ArmNN by |
| 905 | <a href="http://www.doxygen.org/index.html"> |
| 906 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 907 | </ul> |
| 908 | </div> |
| 909 | </body> |
| 910 | </html> |