Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/profiling/test/ProfilingGuidTest.cpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_profiling_guid_test_8cpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#func-members">Functions</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">ProfilingGuidTest.cpp File Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | <div class="textblock"><code>#include <<a class="el" href="_types_8hpp_source.xhtml">armnn/Types.hpp</a>></code><br /> |
| 104 | <code>#include "<a class="el" href="_labels_and_event_classes_8hpp_source.xhtml">LabelsAndEventClasses.hpp</a>"</code><br /> |
| 105 | <code>#include "<a class="el" href="_profiling_guid_generator_8hpp_source.xhtml">ProfilingGuidGenerator.hpp</a>"</code><br /> |
| 106 | <code>#include <set></code><br /> |
| 107 | <code>#include <boost/test/unit_test.hpp></code><br /> |
| 108 | <code>#include <boost/format.hpp></code><br /> |
| 109 | </div> |
| 110 | <p><a href="_profiling_guid_test_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 111 | <table class="memberdecls"> |
| 112 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 113 | Functions</h2></td></tr> |
| 114 | <tr class="memitem:a9c0695cb662d95cb3b336227b69198c0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#a9c0695cb662d95cb3b336227b69198c0">BOOST_AUTO_TEST_CASE</a> (GuidTest)</td></tr> |
| 115 | <tr class="separator:a9c0695cb662d95cb3b336227b69198c0"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a30af11d79ad0af14a7de8d26d77e93f2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#a30af11d79ad0af14a7de8d26d77e93f2">BOOST_AUTO_TEST_CASE</a> (StaticGuidTest)</td></tr> |
| 117 | <tr class="separator:a30af11d79ad0af14a7de8d26d77e93f2"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:affe8b527eb0348ec108a5a516f7cf190"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#affe8b527eb0348ec108a5a516f7cf190">BOOST_AUTO_TEST_CASE</a> (DynamicGuidTest)</td></tr> |
| 119 | <tr class="separator:affe8b527eb0348ec108a5a516f7cf190"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a9a903afe841d40eb02a7981501b6dbce"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#a9a903afe841d40eb02a7981501b6dbce">CheckStaticGuid</a> (uint64_t guid, uint64_t expectedGuid)</td></tr> |
| 121 | <tr class="separator:a9a903afe841d40eb02a7981501b6dbce"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a2d6b6f951fa2ee4f4a8fcc48b236c698"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#a2d6b6f951fa2ee4f4a8fcc48b236c698">CheckDynamicGuid</a> (uint64_t guid, uint64_t expectedGuid)</td></tr> |
| 123 | <tr class="separator:a2d6b6f951fa2ee4f4a8fcc48b236c698"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a357ce58a03678f3fd3def0b54e8122e7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#a357ce58a03678f3fd3def0b54e8122e7">BOOST_AUTO_TEST_CASE</a> (StaticGuidGeneratorCollisionTest)</td></tr> |
| 125 | <tr class="separator:a357ce58a03678f3fd3def0b54e8122e7"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a1d4843a25b987ecebb32ae3ae4e0f479"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#a1d4843a25b987ecebb32ae3ae4e0f479">BOOST_AUTO_TEST_CASE</a> (StaticGuidGeneratorTest)</td></tr> |
| 127 | <tr class="separator:a1d4843a25b987ecebb32ae3ae4e0f479"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a60d0e2a3b33c9e27d65c6c6a77169841"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_guid_test_8cpp.xhtml#a60d0e2a3b33c9e27d65c6c6a77169841">BOOST_AUTO_TEST_CASE</a> (DynamicGuidGeneratorTest)</td></tr> |
| 129 | <tr class="separator:a60d0e2a3b33c9e27d65c6c6a77169841"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | </table> |
| 131 | <h2 class="groupheader">Function Documentation</h2> |
| 132 | <a id="a9c0695cb662d95cb3b336227b69198c0"></a> |
| 133 | <h2 class="memtitle"><span class="permalink"><a href="#a9c0695cb662d95cb3b336227b69198c0">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/6]</span></h2> |
| 134 | |
| 135 | <div class="memitem"> |
| 136 | <div class="memproto"> |
| 137 | <table class="memname"> |
| 138 | <tr> |
| 139 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 140 | <td>(</td> |
| 141 | <td class="paramtype">GuidTest </td> |
| 142 | <td class="paramname"></td><td>)</td> |
| 143 | <td></td> |
| 144 | </tr> |
| 145 | </table> |
| 146 | </div><div class="memdoc"> |
| 147 | |
| 148 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00020">20</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 149 | <div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid.xhtml">ProfilingGuid</a> guid0(0);</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid.xhtml">ProfilingGuid</a> guid1(1);</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid.xhtml">ProfilingGuid</a> guid2(1);</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  BOOST_TEST(guid0 != guid1);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  BOOST_TEST(guid1 == guid2);</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  BOOST_TEST(guid0 < guid1);</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  BOOST_TEST(guid0 <= guid1);</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  BOOST_TEST(guid1 <= guid2);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  BOOST_TEST(guid1 > guid0);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  BOOST_TEST(guid1 >= guid0);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  BOOST_TEST(guid1 >= guid2);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid.xhtml">armnn::profiling::ProfilingGuid</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00252">Types.hpp:252</a></div></div> |
| 150 | </div><!-- fragment --> |
| 151 | </div> |
| 152 | </div> |
| 153 | <a id="a30af11d79ad0af14a7de8d26d77e93f2"></a> |
| 154 | <h2 class="memtitle"><span class="permalink"><a href="#a30af11d79ad0af14a7de8d26d77e93f2">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/6]</span></h2> |
| 155 | |
| 156 | <div class="memitem"> |
| 157 | <div class="memproto"> |
| 158 | <table class="memname"> |
| 159 | <tr> |
| 160 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 161 | <td>(</td> |
| 162 | <td class="paramtype">StaticGuidTest </td> |
| 163 | <td class="paramname"></td><td>)</td> |
| 164 | <td></td> |
| 165 | </tr> |
| 166 | </table> |
| 167 | </div><div class="memdoc"> |
| 168 | |
| 169 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00036">36</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 170 | <div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> guid0(0);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> guid1(1);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> guid2(1);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  BOOST_TEST(guid0 != guid1);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  BOOST_TEST(guid1 == guid2);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  BOOST_TEST(guid0 < guid1);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  BOOST_TEST(guid0 <= guid1);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  BOOST_TEST(guid1 <= guid2);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  BOOST_TEST(guid1 > guid0);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  BOOST_TEST(guid1 >= guid0);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  BOOST_TEST(guid1 >= guid2);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> }</div><div class="ttc" id="structarmnn_1_1profiling_1_1_profiling_static_guid_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">armnn::profiling::ProfilingStaticGuid</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00299">Types.hpp:299</a></div></div> |
| 171 | </div><!-- fragment --> |
| 172 | </div> |
| 173 | </div> |
| 174 | <a id="affe8b527eb0348ec108a5a516f7cf190"></a> |
| 175 | <h2 class="memtitle"><span class="permalink"><a href="#affe8b527eb0348ec108a5a516f7cf190">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[3/6]</span></h2> |
| 176 | |
| 177 | <div class="memitem"> |
| 178 | <div class="memproto"> |
| 179 | <table class="memname"> |
| 180 | <tr> |
| 181 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 182 | <td>(</td> |
| 183 | <td class="paramtype">DynamicGuidTest </td> |
| 184 | <td class="paramname"></td><td>)</td> |
| 185 | <td></td> |
| 186 | </tr> |
| 187 | </table> |
| 188 | </div><div class="memdoc"> |
| 189 | |
| 190 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00052">52</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 191 | <div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> {</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">ProfilingDynamicGuid</a> guid0(0);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">ProfilingDynamicGuid</a> guid1(1);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">ProfilingDynamicGuid</a> guid2(1);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  BOOST_TEST(guid0 != guid1);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  BOOST_TEST(guid1 == guid2);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  BOOST_TEST(guid0 < guid1);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  BOOST_TEST(guid0 <= guid1);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  BOOST_TEST(guid1 <= guid2);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  BOOST_TEST(guid1 > guid0);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  BOOST_TEST(guid1 >= guid0);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  BOOST_TEST(guid1 >= guid2);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> }</div><div class="ttc" id="structarmnn_1_1profiling_1_1_profiling_dynamic_guid_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">armnn::profiling::ProfilingDynamicGuid</a></div><div class="ttdoc">Strongly typed guids to distinguish between those generated at runtime, and those that are statically...</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00294">Types.hpp:294</a></div></div> |
| 192 | </div><!-- fragment --> |
| 193 | </div> |
| 194 | </div> |
| 195 | <a id="a357ce58a03678f3fd3def0b54e8122e7"></a> |
| 196 | <h2 class="memtitle"><span class="permalink"><a href="#a357ce58a03678f3fd3def0b54e8122e7">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[4/6]</span></h2> |
| 197 | |
| 198 | <div class="memitem"> |
| 199 | <div class="memproto"> |
| 200 | <table class="memname"> |
| 201 | <tr> |
| 202 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 203 | <td>(</td> |
| 204 | <td class="paramtype">StaticGuidGeneratorCollisionTest </td> |
| 205 | <td class="paramname"></td><td>)</td> |
| 206 | <td></td> |
| 207 | </tr> |
| 208 | </table> |
| 209 | </div><div class="memdoc"> |
| 210 | |
| 211 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00080">80</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 212 | |
| 213 | <p class="reference">References <a class="el" href="_profiling_guid_generator_8hpp_source.xhtml#l00038">ProfilingGuidGenerator::GenerateStaticId()</a>.</p> |
| 214 | <div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> {</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">ProfilingGuidGenerator</a> generator;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  std::set<uint64_t> guids;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i < 100000; ++i )</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  std::stringstream ss;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  ss << i;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  std::string str = ss.str();</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> guid = generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(str.c_str());</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">if</span> (guids.find(guid) != guids.end())</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>  BOOST_ERROR(boost::str(boost::format(<span class="stringliteral">"GUID collision occurred: %1% -> %2%"</span>) % str % guid));</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">break</span>;</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>  guids.insert(guid);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_generator_xhtml_afd19633513acfc3ae294aa90b1e13a04"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">armnn::profiling::ProfilingGuidGenerator::GenerateStaticId</a></div><div class="ttdeci">ProfilingStaticGuid GenerateStaticId(const std::string &str) override</div><div class="ttdoc">Create a ProfilingStaticGuid based on a hash of the string. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_generator_8hpp_source.xhtml#l00038">ProfilingGuidGenerator.hpp:38</a></div></div> |
| 215 | <div class="ttc" id="structarmnn_1_1profiling_1_1_profiling_static_guid_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">armnn::profiling::ProfilingStaticGuid</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00299">Types.hpp:299</a></div></div> |
| 216 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_generator_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">armnn::profiling::ProfilingGuidGenerator</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_generator_8hpp_source.xhtml#l00018">ProfilingGuidGenerator.hpp:18</a></div></div> |
| 217 | </div><!-- fragment --> |
| 218 | </div> |
| 219 | </div> |
| 220 | <a id="a1d4843a25b987ecebb32ae3ae4e0f479"></a> |
| 221 | <h2 class="memtitle"><span class="permalink"><a href="#a1d4843a25b987ecebb32ae3ae4e0f479">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[5/6]</span></h2> |
| 222 | |
| 223 | <div class="memitem"> |
| 224 | <div class="memproto"> |
| 225 | <table class="memname"> |
| 226 | <tr> |
| 227 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 228 | <td>(</td> |
| 229 | <td class="paramtype">StaticGuidGeneratorTest </td> |
| 230 | <td class="paramname"></td><td>)</td> |
| 231 | <td></td> |
| 232 | </tr> |
| 233 | </table> |
| 234 | </div><div class="memdoc"> |
| 235 | |
| 236 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00099">99</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 237 | |
| 238 | <p class="reference">References <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00068">CheckStaticGuid()</a>, <a class="el" href="_profiling_guid_generator_8hpp_source.xhtml#l00038">ProfilingGuidGenerator::GenerateStaticId()</a>, <a class="el" href="_labels_and_event_classes_8hpp_source.xhtml#l00029">LabelsAndEventClasses::INDEX_GUID</a>, <a class="el" href="_labels_and_event_classes_8hpp_source.xhtml#l00027">LabelsAndEventClasses::NAME_GUID</a>, and <a class="el" href="_labels_and_event_classes_8hpp_source.xhtml#l00028">LabelsAndEventClasses::TYPE_GUID</a>.</p> |
| 239 | <div class="fragment"><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> {</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">ProfilingGuidGenerator</a> generator;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> staticGuid0 = generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(<span class="stringliteral">"name"</span>);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <a class="code" href="_profiling_guid_test_8cpp.xhtml#a9a903afe841d40eb02a7981501b6dbce">CheckStaticGuid</a>(staticGuid0, LabelsAndEventClasses::NAME_GUID);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  BOOST_TEST(staticGuid0 != generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(<span class="stringliteral">"Name"</span>));</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>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> staticGuid1 = generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(<span class="stringliteral">"type"</span>);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="_profiling_guid_test_8cpp.xhtml#a9a903afe841d40eb02a7981501b6dbce">CheckStaticGuid</a>(staticGuid1, LabelsAndEventClasses::TYPE_GUID);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  BOOST_TEST(staticGuid1 != generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(<span class="stringliteral">"Type"</span>));</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> staticGuid2 = generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(<span class="stringliteral">"index"</span>);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="_profiling_guid_test_8cpp.xhtml#a9a903afe841d40eb02a7981501b6dbce">CheckStaticGuid</a>(staticGuid2, LabelsAndEventClasses::INDEX_GUID);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  BOOST_TEST(staticGuid2 != generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(<span class="stringliteral">"Index"</span>));</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</div><div class="ttc" id="_profiling_guid_test_8cpp_xhtml_a9a903afe841d40eb02a7981501b6dbce"><div class="ttname"><a href="_profiling_guid_test_8cpp.xhtml#a9a903afe841d40eb02a7981501b6dbce">CheckStaticGuid</a></div><div class="ttdeci">void CheckStaticGuid(uint64_t guid, uint64_t expectedGuid)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_test_8cpp_source.xhtml#l00068">ProfilingGuidTest.cpp:68</a></div></div> |
| 240 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_generator_xhtml_afd19633513acfc3ae294aa90b1e13a04"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#afd19633513acfc3ae294aa90b1e13a04">armnn::profiling::ProfilingGuidGenerator::GenerateStaticId</a></div><div class="ttdeci">ProfilingStaticGuid GenerateStaticId(const std::string &str) override</div><div class="ttdoc">Create a ProfilingStaticGuid based on a hash of the string. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_generator_8hpp_source.xhtml#l00038">ProfilingGuidGenerator.hpp:38</a></div></div> |
| 241 | <div class="ttc" id="structarmnn_1_1profiling_1_1_profiling_static_guid_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">armnn::profiling::ProfilingStaticGuid</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00299">Types.hpp:299</a></div></div> |
| 242 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_generator_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">armnn::profiling::ProfilingGuidGenerator</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_generator_8hpp_source.xhtml#l00018">ProfilingGuidGenerator.hpp:18</a></div></div> |
| 243 | </div><!-- fragment --> |
| 244 | </div> |
| 245 | </div> |
| 246 | <a id="a60d0e2a3b33c9e27d65c6c6a77169841"></a> |
| 247 | <h2 class="memtitle"><span class="permalink"><a href="#a60d0e2a3b33c9e27d65c6c6a77169841">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[6/6]</span></h2> |
| 248 | |
| 249 | <div class="memitem"> |
| 250 | <div class="memproto"> |
| 251 | <table class="memname"> |
| 252 | <tr> |
| 253 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 254 | <td>(</td> |
| 255 | <td class="paramtype">DynamicGuidGeneratorTest </td> |
| 256 | <td class="paramname"></td><td>)</td> |
| 257 | <td></td> |
| 258 | </tr> |
| 259 | </table> |
| 260 | </div><div class="memdoc"> |
| 261 | |
| 262 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00116">116</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 263 | |
| 264 | <p class="reference">References <a class="el" href="_profiler_tests_8cpp.xhtml#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00074">CheckDynamicGuid()</a>, and <a class="el" href="_profiling_guid_generator_8hpp_source.xhtml#l00025">ProfilingGuidGenerator::NextGuid()</a>.</p> |
| 265 | <div class="fragment"><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">ProfilingGuidGenerator</a> generator;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < 100; ++i)</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">ProfilingDynamicGuid</a> guid = generator.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#aeea32305626f921e1e9f99434dbf9049">NextGuid</a>();</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="_profiling_guid_test_8cpp.xhtml#a2d6b6f951fa2ee4f4a8fcc48b236c698">CheckDynamicGuid</a>(guid, i);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div><div class="ttc" id="structarmnn_1_1profiling_1_1_profiling_dynamic_guid_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">armnn::profiling::ProfilingDynamicGuid</a></div><div class="ttdoc">Strongly typed guids to distinguish between those generated at runtime, and those that are statically...</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00294">Types.hpp:294</a></div></div> |
| 266 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_generator_xhtml_aeea32305626f921e1e9f99434dbf9049"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml#aeea32305626f921e1e9f99434dbf9049">armnn::profiling::ProfilingGuidGenerator::NextGuid</a></div><div class="ttdeci">ProfilingDynamicGuid NextGuid() override</div><div class="ttdoc">Return the next random Guid in the sequence. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_generator_8hpp_source.xhtml#l00025">ProfilingGuidGenerator.hpp:25</a></div></div> |
| 267 | <div class="ttc" id="_profiling_guid_test_8cpp_xhtml_a2d6b6f951fa2ee4f4a8fcc48b236c698"><div class="ttname"><a href="_profiling_guid_test_8cpp.xhtml#a2d6b6f951fa2ee4f4a8fcc48b236c698">CheckDynamicGuid</a></div><div class="ttdeci">void CheckDynamicGuid(uint64_t guid, uint64_t expectedGuid)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_test_8cpp_source.xhtml#l00074">ProfilingGuidTest.cpp:74</a></div></div> |
| 268 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_generator_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">armnn::profiling::ProfilingGuidGenerator</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_generator_8hpp_source.xhtml#l00018">ProfilingGuidGenerator.hpp:18</a></div></div> |
| 269 | </div><!-- fragment --> |
| 270 | </div> |
| 271 | </div> |
| 272 | <a id="a2d6b6f951fa2ee4f4a8fcc48b236c698"></a> |
| 273 | <h2 class="memtitle"><span class="permalink"><a href="#a2d6b6f951fa2ee4f4a8fcc48b236c698">◆ </a></span>CheckDynamicGuid()</h2> |
| 274 | |
| 275 | <div class="memitem"> |
| 276 | <div class="memproto"> |
| 277 | <table class="memname"> |
| 278 | <tr> |
| 279 | <td class="memname">void CheckDynamicGuid </td> |
| 280 | <td>(</td> |
| 281 | <td class="paramtype">uint64_t </td> |
| 282 | <td class="paramname"><em>guid</em>, </td> |
| 283 | </tr> |
| 284 | <tr> |
| 285 | <td class="paramkey"></td> |
| 286 | <td></td> |
| 287 | <td class="paramtype">uint64_t </td> |
| 288 | <td class="paramname"><em>expectedGuid</em> </td> |
| 289 | </tr> |
| 290 | <tr> |
| 291 | <td></td> |
| 292 | <td>)</td> |
| 293 | <td></td><td></td> |
| 294 | </tr> |
| 295 | </table> |
| 296 | </div><div class="memdoc"> |
| 297 | |
| 298 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00074">74</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 299 | |
| 300 | <p class="reference">Referenced by <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00116">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 301 | <div class="fragment"><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  BOOST_TEST(guid == expectedGuid);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  BOOST_TEST(guid < MIN_STATIC_GUID);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> }</div></div><!-- fragment --> |
| 302 | </div> |
| 303 | </div> |
| 304 | <a id="a9a903afe841d40eb02a7981501b6dbce"></a> |
| 305 | <h2 class="memtitle"><span class="permalink"><a href="#a9a903afe841d40eb02a7981501b6dbce">◆ </a></span>CheckStaticGuid()</h2> |
| 306 | |
| 307 | <div class="memitem"> |
| 308 | <div class="memproto"> |
| 309 | <table class="memname"> |
| 310 | <tr> |
| 311 | <td class="memname">void CheckStaticGuid </td> |
| 312 | <td>(</td> |
| 313 | <td class="paramtype">uint64_t </td> |
| 314 | <td class="paramname"><em>guid</em>, </td> |
| 315 | </tr> |
| 316 | <tr> |
| 317 | <td class="paramkey"></td> |
| 318 | <td></td> |
| 319 | <td class="paramtype">uint64_t </td> |
| 320 | <td class="paramname"><em>expectedGuid</em> </td> |
| 321 | </tr> |
| 322 | <tr> |
| 323 | <td></td> |
| 324 | <td>)</td> |
| 325 | <td></td><td></td> |
| 326 | </tr> |
| 327 | </table> |
| 328 | </div><div class="memdoc"> |
| 329 | |
| 330 | <p class="definition">Definition at line <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00068">68</a> of file <a class="el" href="_profiling_guid_test_8cpp_source.xhtml">ProfilingGuidTest.cpp</a>.</p> |
| 331 | |
| 332 | <p class="reference">Referenced by <a class="el" href="_profiling_guid_test_8cpp_source.xhtml#l00099">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 333 | <div class="fragment"><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  BOOST_TEST(guid == expectedGuid);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  BOOST_TEST(guid >= MIN_STATIC_GUID);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> }</div></div><!-- fragment --> |
| 334 | </div> |
| 335 | </div> |
| 336 | </div><!-- contents --> |
| 337 | </div><!-- doc-content --> |
| 338 | <!-- start footer part --> |
| 339 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 340 | <ul> |
| 341 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_637c692f14729569dd2eac0c18e2a54a.xhtml">profiling</a></li><li class="navelem"><a class="el" href="dir_6b1198f6e738611120ec65b09506d2f8.xhtml">test</a></li><li class="navelem"><a class="el" href="_profiling_guid_test_8cpp.xhtml">ProfilingGuidTest.cpp</a></li> |
| 342 | <li class="footer">Generated on Fri Mar 13 2020 16:09:15 for ArmNN by |
| 343 | <a href="http://www.doxygen.org/index.html"> |
| 344 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 345 | </ul> |
| 346 | </div> |
| 347 | </body> |
| 348 | </html> |