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: tests/profiling/gatordmock/tests/GatordMockTests.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('_gatord_mock_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">GatordMockTests.cpp File Reference</div> </div> |
| 87 | </div><!--header--> |
| 88 | <div class="contents"> |
| 89 | <div class="textblock"><code>#include <<a class="el" href="_command_handler_registry_8hpp_source.html">CommandHandlerRegistry.hpp</a>></code><br /> |
| 90 | <code>#include <<a class="el" href="_directory_capture_command_handler_8hpp_source.html">DirectoryCaptureCommandHandler.hpp</a>></code><br /> |
| 91 | <code>#include <<a class="el" href="_profiling_service_8hpp_source.html">ProfilingService.hpp</a>></code><br /> |
| 92 | <code>#include <<a class="el" href="_gatord_mock_service_8hpp_source.html">GatordMockService.hpp</a>></code><br /> |
| 93 | <code>#include <<a class="el" href="_periodic_counter_capture_command_handler_8hpp_source.html">PeriodicCounterCaptureCommandHandler.hpp</a>></code><br /> |
| 94 | <code>#include <<a class="el" href="_stream_metadata_command_handler_8hpp_source.html">StreamMetadataCommandHandler.hpp</a>></code><br /> |
| 95 | <code>#include <<a class="el" href="_timeline_directory_capture_command_handler_8hpp_source.html">TimelineDirectoryCaptureCommandHandler.hpp</a>></code><br /> |
| 96 | <code>#include <<a class="el" href="_profiling_mocks_8hpp_source.html">test/ProfilingMocks.hpp</a>></code><br /> |
| 97 | <code>#include <boost/cast.hpp></code><br /> |
| 98 | <code>#include <boost/test/test_tools.hpp></code><br /> |
| 99 | <code>#include <boost/test/unit_test_suite.hpp></code><br /> |
| 100 | </div> |
| 101 | <p><a href="_gatord_mock_tests_8cpp_source.html">Go to the source code of this file.</a></p> |
| 102 | <table class="memberdecls"> |
| 103 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 104 | Functions</h2></td></tr> |
| 105 | <tr class="memitem:a8b02cdd10cf4143333b67a42304a5e76"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_gatord_mock_tests_8cpp.html#a8b02cdd10cf4143333b67a42304a5e76">BOOST_AUTO_TEST_CASE</a> (CounterCaptureHandlingTest)</td></tr> |
| 106 | <tr class="separator:a8b02cdd10cf4143333b67a42304a5e76"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:a95b346e0dd2dec2ca7426bbb4d4f73dc"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_gatord_mock_tests_8cpp.html#a95b346e0dd2dec2ca7426bbb4d4f73dc">BOOST_AUTO_TEST_CASE</a> (GatorDMockEndToEnd)</td></tr> |
| 108 | <tr class="separator:a95b346e0dd2dec2ca7426bbb4d4f73dc"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | </table> |
| 110 | <h2 class="groupheader">Function Documentation</h2> |
| 111 | <a id="a8b02cdd10cf4143333b67a42304a5e76"></a> |
| 112 | <h2 class="memtitle"><span class="permalink"><a href="#a8b02cdd10cf4143333b67a42304a5e76">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/2]</span></h2> |
| 113 | |
| 114 | <div class="memitem"> |
| 115 | <div class="memproto"> |
| 116 | <table class="memname"> |
| 117 | <tr> |
| 118 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 119 | <td>(</td> |
| 120 | <td class="paramtype">CounterCaptureHandlingTest </td> |
| 121 | <td class="paramname"></td><td>)</td> |
| 122 | <td></td> |
| 123 | </tr> |
| 124 | </table> |
| 125 | </div><div class="memdoc"> |
| 126 | |
| 127 | <p class="definition">Definition at line <a class="el" href="_gatord_mock_tests_8cpp_source.html#l00026">26</a> of file <a class="el" href="_gatord_mock_tests_8cpp_source.html">GatordMockTests.cpp</a>.</p> |
| 128 | |
| 129 | <p class="reference">References <a class="el" href="_encode_version_8hpp_source.html#l00045">Version::GetEncodedValue()</a>, <a class="el" href="_periodic_counter_capture_command_handler_8hpp_source.html#l00046">PeriodicCounterCaptureCommandHandler::m_CounterCaptureValues</a>, <a class="el" href="_periodic_counter_capture_command_handler_8hpp_source.html#l00048">PeriodicCounterCaptureCommandHandler::m_CurrentPeriodValue</a>, <a class="el" href="_periodic_counter_capture_command_handler_8hpp_source.html#l00022">CounterCaptureValues::m_Uids</a>, <a class="el" href="_packet_version_resolver_8cpp_source.html#l00055">PacketVersionResolver::ResolvePacketVersion()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00126">armnn::profiling::WriteUint16()</a>, <a class="el" href="_profiling_utils_8cpp_source.html#l00119">armnn::profiling::WriteUint32()</a>, and <a class="el" href="_profiling_utils_8cpp_source.html#l00112">armnn::profiling::WriteUint64()</a>.</p> |
| 130 | <div class="fragment"><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">using</span> boost::numeric_cast;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.html">profiling::PacketVersionResolver</a> packetVersionResolver;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// Data with timestamp, counter idx & counter values</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  std::vector<std::pair<uint16_t, uint32_t>> indexValuePairs;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  indexValuePairs.reserve(5);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t>(0, 100));</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t>(1, 200));</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t>(2, 300));</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t>(3, 400));</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  indexValuePairs.emplace_back(std::make_pair<uint16_t, uint32_t>(4, 500));</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// ((uint16_t (2 bytes) + uint32_t (4 bytes)) * 5) + word1 + word2</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  uint32_t dataLength = 38;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="comment">// Simulate two different packets incoming 500 ms apart</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  uint64_t time = <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now().time_since_epoch())</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  .count());</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>  uint64_t time2 = time + 5000;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">// UniqueData required for Packet class</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  std::unique_ptr<unsigned char[]> uniqueData1 = std::make_unique<unsigned char[]>(dataLength);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* data1 = <span class="keyword">reinterpret_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*<span class="keyword">></span>(uniqueData1.get());</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  std::unique_ptr<unsigned char[]> uniqueData2 = std::make_unique<unsigned char[]>(dataLength);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* data2 = <span class="keyword">reinterpret_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*<span class="keyword">></span>(uniqueData2.get());</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>  uint32_t sizeOfUint64 = numeric_cast<uint32_t>(<span class="keyword">sizeof</span>(uint64_t));</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  uint32_t sizeOfUint32 = numeric_cast<uint32_t>(<span class="keyword">sizeof</span>(uint32_t));</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  uint32_t sizeOfUint16 = numeric_cast<uint32_t>(<span class="keyword">sizeof</span>(uint16_t));</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">// Offset index to point to mem address</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  uint32_t offset = 0;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="namespacearmnn_1_1profiling.html#a79be042e55fdf16ca562f14cd15d9aa6">profiling::WriteUint64</a>(data1, offset, time);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  offset += sizeOfUint64;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& pair : indexValuePairs)</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ae5ace88c65e65ab7cf5572613601a60d">profiling::WriteUint16</a>(data1, offset, pair.first);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  offset += sizeOfUint16;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="namespacearmnn_1_1profiling.html#a3e638748a39d46e2943dfcef94dcb828">profiling::WriteUint32</a>(data1, offset, pair.second);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  offset += sizeOfUint32;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  offset = 0;</div><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>  <a class="code" href="namespacearmnn_1_1profiling.html#a79be042e55fdf16ca562f14cd15d9aa6">profiling::WriteUint64</a>(data2, offset, time2);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  offset += sizeOfUint64;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& pair : indexValuePairs)</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="namespacearmnn_1_1profiling.html#ae5ace88c65e65ab7cf5572613601a60d">profiling::WriteUint16</a>(data2, offset, pair.first);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  offset += sizeOfUint16;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="namespacearmnn_1_1profiling.html#a3e638748a39d46e2943dfcef94dcb828">profiling::WriteUint32</a>(data2, offset, pair.second);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  offset += sizeOfUint32;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  }</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>  uint32_t headerWord1 = packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.html#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(0, 4).<a class="code" href="classarmnn_1_1profiling_1_1_version.html#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>();</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="comment">// Create packet to send through to the command functor</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet.html">profiling::Packet</a> packet1(headerWord1, dataLength, uniqueData1);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet.html">profiling::Packet</a> packet2(headerWord1, dataLength, uniqueData2);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.html">gatordmock::PeriodicCounterCaptureCommandHandler</a> commandHandler(0, 4, headerWord1, <span class="keyword">true</span>);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// Simulate two separate packets coming in to calculate period</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  commandHandler(packet1);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  commandHandler(packet2);</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>  BOOST_ASSERT(commandHandler.m_CurrentPeriodValue == 5000);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < commandHandler.m_CounterCaptureValues.m_Uids.size(); ++i)</div><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>  BOOST_ASSERT(commandHandler.m_CounterCaptureValues.m_Uids[i] == i);</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> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_html_ac8ad466123304f923e64997ac096926a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.html#ac8ad466123304f923e64997ac096926a">armnn::profiling::PacketVersionResolver::ResolvePacketVersion</a></div><div class="ttdeci">Version ResolvePacketVersion(uint32_t familyId, uint32_t packetId) const</div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8cpp_source.html#l00055">PacketVersionResolver.cpp:55</a></div></div> |
| 131 | <div class="ttc" id="classarmnn_1_1profiling_1_1_version_html_a0ab0d5a402c197d4093cbc5fdbf81214"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_version.html#a0ab0d5a402c197d4093cbc5fdbf81214">armnn::profiling::Version::GetEncodedValue</a></div><div class="ttdeci">uint32_t GetEncodedValue()</div><div class="ttdef"><b>Definition:</b> <a href="_encode_version_8hpp_source.html#l00045">EncodeVersion.hpp:45</a></div></div> |
| 132 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a79be042e55fdf16ca562f14cd15d9aa6"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a79be042e55fdf16ca562f14cd15d9aa6">armnn::profiling::WriteUint64</a></div><div class="ttdeci">void WriteUint64(const std::unique_ptr< IPacketBuffer > &packetBuffer, unsigned int offset, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00112">ProfilingUtils.cpp:112</a></div></div> |
| 133 | <div class="ttc" id="namespacearmnn_1_1profiling_html_ae5ace88c65e65ab7cf5572613601a60d"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#ae5ace88c65e65ab7cf5572613601a60d">armnn::profiling::WriteUint16</a></div><div class="ttdeci">void WriteUint16(const IPacketBufferPtr &packetBuffer, unsigned int offset, uint16_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00126">ProfilingUtils.cpp:126</a></div></div> |
| 134 | <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet.html">armnn::profiling::Packet</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_8hpp_source.html#l00018">Packet.hpp:18</a></div></div> |
| 135 | <div class="ttc" id="classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler_html"><div class="ttname"><a href="classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.html">armnn::gatordmock::PeriodicCounterCaptureCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_periodic_counter_capture_command_handler_8hpp_source.html#l00026">PeriodicCounterCaptureCommandHandler.hpp:26</a></div></div> |
| 136 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a3e638748a39d46e2943dfcef94dcb828"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a3e638748a39d46e2943dfcef94dcb828">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(const IPacketBufferPtr &packetBuffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00119">ProfilingUtils.cpp:119</a></div></div> |
| 137 | <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.html">armnn::profiling::PacketVersionResolver</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8hpp_source.html#l00036">PacketVersionResolver.hpp:36</a></div></div> |
| 138 | </div><!-- fragment --> |
| 139 | </div> |
| 140 | </div> |
| 141 | <a id="a95b346e0dd2dec2ca7426bbb4d4f73dc"></a> |
| 142 | <h2 class="memtitle"><span class="permalink"><a href="#a95b346e0dd2dec2ca7426bbb4d4f73dc">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/2]</span></h2> |
| 143 | |
| 144 | <div class="memitem"> |
| 145 | <div class="memproto"> |
| 146 | <table class="memname"> |
| 147 | <tr> |
| 148 | <td class="memname">BOOST_AUTO_TEST_CASE </td> |
| 149 | <td>(</td> |
| 150 | <td class="paramtype">GatorDMockEndToEnd </td> |
| 151 | <td class="paramname"></td><td>)</td> |
| 152 | <td></td> |
| 153 | </tr> |
| 154 | </table> |
| 155 | </div><div class="memdoc"> |
| 156 | |
| 157 | <p class="definition">Definition at line <a class="el" href="_gatord_mock_tests_8cpp_source.html#l00105">105</a> of file <a class="el" href="_gatord_mock_tests_8cpp_source.html">GatordMockTests.cpp</a>.</p> |
| 158 | |
| 159 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.html#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">armnn::profiling::Active</a>, <a class="el" href="_gatord_mock_service_8cpp_source.html#l00058">GatordMockService::BlockForOneClient()</a>, <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="classarmnn_1_1profiling_1_1_i_counter_directory.html#a718a75d4c178cf3f687b3f27b8f55091">ICounterDirectory::GetCategories()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ab43b0472c37fe51694977ae9b4132404">ICounterDirectory::GetCategoryCount()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a81881e3910b23455b46ec30c8420c695">ICounterDirectory::GetCounter()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#acab78d0987a9cca5a9cac957be610a7d">ICounterDirectory::GetCounterCount()</a>, <a class="el" href="_profiling_service_8cpp_source.html#l00193">ProfilingService::GetCounterDirectory()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ad9fa9b8364fcaa2c940ef8e78eff8df2">ICounterDirectory::GetCounters()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aef59fdca57a5bb822e22cacfc5836fab">ICounterDirectory::GetCounterSetCount()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a8908490db3b8a0003a639ac56b956cee">ICounterDirectory::GetCounterSets()</a>, <a class="el" href="_profiling_service_8cpp_source.html#l00203">ProfilingService::GetCurrentState()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aecd5912045fd41fe41dc96c9844f6deb">ICounterDirectory::GetDeviceCount()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a98e6769cb933d30bfd3ca25f61bd8438">ICounterDirectory::GetDevices()</a>, <a class="el" href="_encode_version_8hpp_source.html#l00045">Version::GetEncodedValue()</a>, <a class="el" href="_profiling_service_8hpp_source.html#l00052">ProfilingService::Instance()</a>, <a class="el" href="_gatord_mock_service_8cpp_source.html#l00149">GatordMockService::LaunchReceivingThread()</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00131">Counter::m_Class</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00140">Counter::m_CounterSetUid</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00135">Counter::m_Description</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00139">Counter::m_DeviceUid</a>, <a class="el" href="_i_runtime_8hpp_source.html#l00070">IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00132">Counter::m_Interpolation</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00133">Counter::m_Multiplier</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00134">Counter::m_Name</a>, <a class="el" href="_i_counter_directory_8hpp_source.html#l00136">Counter::m_Units</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">armnn::profiling::NotConnected</a>, <a class="el" href="_gatord_mock_service_8cpp_source.html#l00027">GatordMockService::OpenListeningSocket()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.html#l00045">options</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.html#l00055">profilingService</a>, <a class="el" href="_command_handler_registry_8cpp_source.html#l00017">CommandHandlerRegistry::RegisterFunctor()</a>, <a class="el" href="_profiling_service_8cpp_source.html#l00019">ProfilingService::ResetExternalProfilingOptions()</a>, <a class="el" href="_packet_version_resolver_8cpp_source.html#l00055">PacketVersionResolver::ResolvePacketVersion()</a>, <a class="el" href="_gatord_mock_service_8cpp_source.html#l00129">GatordMockService::SendConnectionAck()</a>, <a class="el" href="namespacearmnn_1_1profiling.html#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">armnn::profiling::Uninitialised</a>, <a class="el" href="_profiling_service_8cpp_source.html#l00088">ProfilingService::Update()</a>, <a class="el" href="_gatord_mock_service_8cpp_source.html#l00166">GatordMockService::WaitForReceivingThread()</a>, <a class="el" href="_gatord_mock_service_8cpp_source.html#l00069">GatordMockService::WaitForStreamMetaData()</a>, and <a class="el" href="namespacearmnn_1_1profiling.html#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">armnn::profiling::WaitingForAck</a>.</p> |
| 160 | <div class="fragment"><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>  <span class="comment">// The purpose of this test is to setup both sides of the profiling service and get to the point of receiving</span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// performance data.</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">//These variables are used to wait for the profiling service</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  uint32_t timeout = 2000;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  uint32_t sleepTime = 50;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  uint32_t timeSlept = 0;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.html">profiling::PacketVersionResolver</a> packetVersionResolver;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// Create the Command Handler Registry</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="classarmnn_1_1profiling_1_1_command_handler_registry.html">profiling::CommandHandlerRegistry</a> registry;</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="comment">// Update with derived functors</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="classarmnn_1_1gatordmock_1_1_stream_metadata_command_handler.html">gatordmock::StreamMetadataCommandHandler</a> streamMetadataCommandHandler(</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  0, 0, packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.html#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(0, 0).<a class="code" href="classarmnn_1_1profiling_1_1_version.html#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>(), <span class="keyword">true</span>);</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>  <a class="code" href="classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.html">gatordmock::PeriodicCounterCaptureCommandHandler</a> counterCaptureCommandHandler(</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  0, 4, packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.html#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(0, 4).<a class="code" href="classarmnn_1_1profiling_1_1_version.html#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>(), <span class="keyword">true</span>);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="classarmnn_1_1profiling_1_1_directory_capture_command_handler.html">profiling::DirectoryCaptureCommandHandler</a> directoryCaptureCommandHandler(</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  0, 2, packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.html#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(0, 2).<a class="code" href="classarmnn_1_1profiling_1_1_version.html#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>(), <span class="keyword">true</span>);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="classarmnn_1_1gatordmock_1_1_timeline_directory_capture_command_handler.html">gatordmock::TimelineDirectoryCaptureCommandHandler</a> timelineDirectoryCaptureCommandHandler(</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  1, 0, packetVersionResolver.<a class="code" href="classarmnn_1_1profiling_1_1_packet_version_resolver.html#ac8ad466123304f923e64997ac096926a">ResolvePacketVersion</a>(1, 0).<a class="code" href="classarmnn_1_1profiling_1_1_version.html#a0ab0d5a402c197d4093cbc5fdbf81214">GetEncodedValue</a>(), <span class="keyword">true</span>);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// Register different derived functors</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  registry.<a class="code" href="classarmnn_1_1profiling_1_1_command_handler_registry.html#a7875d60ac5ca76c70f599367ec61261a">RegisterFunctor</a>(&streamMetadataCommandHandler);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  registry.<a class="code" href="classarmnn_1_1profiling_1_1_command_handler_registry.html#a7875d60ac5ca76c70f599367ec61261a">RegisterFunctor</a>(&counterCaptureCommandHandler);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  registry.<a class="code" href="classarmnn_1_1profiling_1_1_command_handler_registry.html#a7875d60ac5ca76c70f599367ec61261a">RegisterFunctor</a>(&directoryCaptureCommandHandler);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  registry.<a class="code" href="classarmnn_1_1profiling_1_1_command_handler_registry.html#a7875d60ac5ca76c70f599367ec61261a">RegisterFunctor</a>(&timelineDirectoryCaptureCommandHandler);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="comment">// Setup the mock service to bind to the UDS.</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  std::string udsNamespace = <span class="stringliteral">"gatord_namespace"</span>;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="classarmnn_1_1gatordmock_1_1_gatord_mock_service.html">gatordmock::GatordMockService</a> mockService(registry, <span class="keyword">false</span>);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  mockService.OpenListeningSocket(udsNamespace);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="comment">// Enable the profiling service.</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html">armnn::IRuntime::CreationOptions::ExternalProfilingOptions</a> <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a26d42007440bb01a1a6d0ab3b5a657ee">m_EnableProfiling</a> = <span class="keyword">true</span>;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html">profiling::ProfilingService</a>& <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a5ff5630fd34b2ac9c090f05c010e6839">profilingService</a> = profiling::ProfilingService::Instance();</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#ae7a3588986b93e13fda47c7ce4b0627c">ResetExternalProfilingOptions</a>(options, <span class="keyword">true</span>);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="comment">// Bring the profiling service to the "WaitingForAck" state</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#ad8d263669817cf577760710ff6c96bb9">GetCurrentState</a>() == profiling::ProfilingState::Uninitialised);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#aec0783b5a136e042adcc47bae4fe5291">Update</a>();</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>(profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#ad8d263669817cf577760710ff6c96bb9">GetCurrentState</a>() == profiling::ProfilingState::NotConnected);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#aec0783b5a136e042adcc47bae4fe5291">Update</a>();</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="comment">// Connect the profiling service to the mock Gatord.</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">int</span> clientFd = mockService.BlockForOneClient();</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">if</span> (-1 == clientFd)</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  {</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  BOOST_FAIL(<span class="stringliteral">"Failed to connect client"</span>);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  }</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="comment">// Give the profiling service sending thread time start executing and send the stream metadata.</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">while</span> (profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#ad8d263669817cf577760710ff6c96bb9">GetCurrentState</a>() != profiling::ProfilingState::WaitingForAck)</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  {</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">if</span> (timeSlept >= timeout)</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  BOOST_FAIL(<span class="stringliteral">"Timeout: Profiling service did not switch to WaitingForAck state"</span>);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  }</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  std::this_thread::sleep_for(std::chrono::milliseconds(sleepTime));</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  timeSlept += sleepTime;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  }</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#aec0783b5a136e042adcc47bae4fe5291">Update</a>();</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="comment">// Read the stream metadata on the mock side.</span></div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">if</span> (!mockService.WaitForStreamMetaData())</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  {</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  BOOST_FAIL(<span class="stringliteral">"Failed to receive StreamMetaData"</span>);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  }</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="comment">// Send Ack from GatorD</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  mockService.SendConnectionAck();</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  timeSlept = 0;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">while</span> (profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#ad8d263669817cf577760710ff6c96bb9">GetCurrentState</a>() != profiling::ProfilingState::Active)</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  {</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">if</span> (timeSlept >= timeout)</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  BOOST_FAIL(<span class="stringliteral">"Timeout: Profiling service did not switch to Active state"</span>);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  }</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  std::this_thread::sleep_for(std::chrono::milliseconds(sleepTime));</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  timeSlept += sleepTime;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  mockService.LaunchReceivingThread();</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="comment">// As part of the default startup of the profiling service a counter directory packet will be sent.</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  timeSlept = 0;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">while</span> (!directoryCaptureCommandHandler.ParsedCounterDirectory())</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  {</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">if</span> (timeSlept >= timeout)</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  {</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  BOOST_FAIL(<span class="stringliteral">"Timeout: MockGatord did not receive counter directory packet"</span>);</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  std::this_thread::sleep_for(std::chrono::milliseconds(sleepTime));</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  timeSlept += sleepTime;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  }</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>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html">profiling::ICounterDirectory</a>& serviceCounterDirectory = profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#adfaa32654e05eab63b2adc34b2138475">GetCounterDirectory</a>();</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html">profiling::ICounterDirectory</a>& receivedCounterDirectory = directoryCaptureCommandHandler.GetCounterDirectory();</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="comment">// Compare thre basics of the counter directory from the service and the one we received over the wire.</span></div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  BOOST_ASSERT(serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aecd5912045fd41fe41dc96c9844f6deb">GetDeviceCount</a>() == receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aecd5912045fd41fe41dc96c9844f6deb">GetDeviceCount</a>());</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  BOOST_ASSERT(serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aef59fdca57a5bb822e22cacfc5836fab">GetCounterSetCount</a>() == receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aef59fdca57a5bb822e22cacfc5836fab">GetCounterSetCount</a>());</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  BOOST_ASSERT(serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ab43b0472c37fe51694977ae9b4132404">GetCategoryCount</a>() == receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ab43b0472c37fe51694977ae9b4132404">GetCategoryCount</a>());</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  BOOST_ASSERT(serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#acab78d0987a9cca5a9cac957be610a7d">GetCounterCount</a>() == receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#acab78d0987a9cca5a9cac957be610a7d">GetCounterCount</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>  receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aecd5912045fd41fe41dc96c9844f6deb">GetDeviceCount</a>();</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aecd5912045fd41fe41dc96c9844f6deb">GetDeviceCount</a>();</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.html#a3ff1066867cb9bd3b08338957c414401">profiling::Devices</a>& serviceDevices = serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a98e6769cb933d30bfd3ca25f61bd8438">GetDevices</a>();</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& device : serviceDevices)</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  {</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="comment">// Find the same device in the received counter directory.</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keyword">auto</span> foundDevice = receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a98e6769cb933d30bfd3ca25f61bd8438">GetDevices</a>().find(device.second->m_Uid);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(foundDevice != receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a98e6769cb933d30bfd3ca25f61bd8438">GetDevices</a>().end());</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(device.second->m_Name.compare((*foundDevice).second->m_Name) == 0);</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(device.second->m_Cores == (*foundDevice).second->m_Cores);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  }</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.html#acfe20da73b5dc66439a65b49f04f7a21">profiling::CounterSets</a>& serviceCounterSets = serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a8908490db3b8a0003a639ac56b956cee">GetCounterSets</a>();</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& counterSet : serviceCounterSets)</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  {</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="comment">// Find the same counter set in the received counter directory.</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keyword">auto</span> foundCounterSet = receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a8908490db3b8a0003a639ac56b956cee">GetCounterSets</a>().find(counterSet.second->m_Uid);</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(foundCounterSet != receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a8908490db3b8a0003a639ac56b956cee">GetCounterSets</a>().end());</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(counterSet.second->m_Name.compare((*foundCounterSet).second->m_Name) == 0);</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>(counterSet.second->m_Count == (*foundCounterSet).second->m_Count);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.html#af55bc6e5233a4720fe8a813db470b06f">profiling::Categories</a>& serviceCategories = serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a718a75d4c178cf3f687b3f27b8f55091">GetCategories</a>();</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& category : serviceCategories)</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="keywordflow">for</span> (<span class="keyword">auto</span>& receivedCategory : receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a718a75d4c178cf3f687b3f27b8f55091">GetCategories</a>())</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  {</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">if</span> (receivedCategory->m_Name.compare(category->m_Name) == 0)</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  {</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="comment">// We've found the matching category.</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(category->m_DeviceUid == receivedCategory->m_DeviceUid);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(category->m_CounterSetUid == receivedCategory->m_CounterSetUid);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="comment">// Now look at the interiors of the counters. Start by sorting them.</span></div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  std::sort(category->m_Counters.begin(), category->m_Counters.end());</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  std::sort(receivedCategory->m_Counters.begin(), receivedCategory->m_Counters.end());</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="comment">// When comparing uid's here we need to translate them.</span></div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  std::function<bool(const uint16_t&, const uint16_t&)> comparator =</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  [&directoryCaptureCommandHandler](<span class="keyword">const</span> uint16_t& first, <span class="keyword">const</span> uint16_t& second) {</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  uint16_t translated = directoryCaptureCommandHandler.TranslateUIDCopyToOriginal(second);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">if</span> (translated == first)</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  {</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  }</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  };</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="comment">// Then let vector == do the work.</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(std::equal(category->m_Counters.begin(), category->m_Counters.end(),</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  receivedCategory->m_Counters.begin(), comparator));</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  }</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  }</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  }</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="comment">// Finally check the content of the counters.</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.html#aeeb6904ffbae435c8d0a7138427688f4">profiling::Counters</a>& receivedCounters = receivedCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ad9fa9b8364fcaa2c940ef8e78eff8df2">GetCounters</a>();</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& receivedCounter : receivedCounters)</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  {</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="comment">// Translate the Uid and find the corresponding counter in the original counter directory.</span></div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="comment">// Note we can't check m_MaxCounterUid here as it will likely differ between the two counter directories.</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  uint16_t translated = directoryCaptureCommandHandler.TranslateUIDCopyToOriginal(receivedCounter.first);</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_counter.html">profiling::Counter</a>* serviceCounter = serviceCounterDirectory.<a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a81881e3910b23455b46ec30c8420c695">GetCounter</a>(translated);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#af734583ef63236e643f64bc6f3f93c3d">m_DeviceUid</a> == receivedCounter.second->m_DeviceUid);</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>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#ab13844df5477a9ab8f13069e3d8abad6">m_Name</a>.compare(receivedCounter.second->m_Name) == 0);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#a3b95c70c6d9c60fe7b25a4fa9bf20ea0">m_CounterSetUid</a> == receivedCounter.second->m_CounterSetUid);</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#ad5399f5bba038956f1fbde241bc44096">m_Multiplier</a> == receivedCounter.second->m_Multiplier);</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#a69719c180aafcdf5a25f81a851c74809">m_Interpolation</a> == receivedCounter.second->m_Interpolation);</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#a7aa5f39e2eddecaa9b1b5730c0481b11">m_Class</a> == receivedCounter.second->m_Class);</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>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#a84079a1f364c37c59230bc52332d8d19">m_Units</a>.compare(receivedCounter.second->m_Units) == 0);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(serviceCounter-><a class="code" href="classarmnn_1_1profiling_1_1_counter.html#a5edaa2326b1410fae32c5253ed0188d8">m_Description</a>.compare(receivedCounter.second->m_Description) == 0);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  }</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  mockService.WaitForReceivingThread();</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  options.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a26d42007440bb01a1a6d0ab3b5a657ee">m_EnableProfiling</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  profilingService.<a class="code" href="classarmnn_1_1profiling_1_1_profiling_service.html#ae7a3588986b93e13fda47c7ce4b0627c">ResetExternalProfilingOptions</a>(options, <span class="keyword">true</span>);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="comment">// Future tests here will add counters to the ProfilingService, increment values and examine</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="comment">// PeriodicCounterCapture data received. These are yet to be integrated.</span></div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_a98e6769cb933d30bfd3ca25f61bd8438"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a98e6769cb933d30bfd3ca25f61bd8438">armnn::profiling::ICounterDirectory::GetDevices</a></div><div class="ttdeci">virtual const Devices & GetDevices() const =0</div></div> |
| 161 | <div class="ttc" id="namespacearmnn_1_1profiling_html_af55bc6e5233a4720fe8a813db470b06f"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#af55bc6e5233a4720fe8a813db470b06f">armnn::profiling::Categories</a></div><div class="ttdeci">std::unordered_set< CategoryPtr > Categories</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00037">ICounterDirectory.hpp:37</a></div></div> |
| 162 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_service_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_service.html">armnn::profiling::ProfilingService</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_service_8hpp_source.html#l00042">ProfilingService.hpp:42</a></div></div> |
| 163 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_ad5399f5bba038956f1fbde241bc44096"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#ad5399f5bba038956f1fbde241bc44096">armnn::profiling::Counter::m_Multiplier</a></div><div class="ttdeci">double m_Multiplier</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00133">ICounterDirectory.hpp:133</a></div></div> |
| 164 | <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_html_ac8ad466123304f923e64997ac096926a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.html#ac8ad466123304f923e64997ac096926a">armnn::profiling::PacketVersionResolver::ResolvePacketVersion</a></div><div class="ttdeci">Version ResolvePacketVersion(uint32_t familyId, uint32_t packetId) const</div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8cpp_source.html#l00055">PacketVersionResolver.cpp:55</a></div></div> |
| 165 | <div class="ttc" id="classarmnn_1_1profiling_1_1_version_html_a0ab0d5a402c197d4093cbc5fdbf81214"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_version.html#a0ab0d5a402c197d4093cbc5fdbf81214">armnn::profiling::Version::GetEncodedValue</a></div><div class="ttdeci">uint32_t GetEncodedValue()</div><div class="ttdef"><b>Definition:</b> <a href="_encode_version_8hpp_source.html#l00045">EncodeVersion.hpp:45</a></div></div> |
| 166 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a3ff1066867cb9bd3b08338957c414401"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a3ff1066867cb9bd3b08338957c414401">armnn::profiling::Devices</a></div><div class="ttdeci">std::unordered_map< uint16_t, DevicePtr > Devices</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00038">ICounterDirectory.hpp:38</a></div></div> |
| 167 | <div class="ttc" id="namespacearmnn_1_1profiling_html_acfe20da73b5dc66439a65b49f04f7a21"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#acfe20da73b5dc66439a65b49f04f7a21">armnn::profiling::CounterSets</a></div><div class="ttdeci">std::unordered_map< uint16_t, CounterSetPtr > CounterSets</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00039">ICounterDirectory.hpp:39</a></div></div> |
| 168 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_ab43b0472c37fe51694977ae9b4132404"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ab43b0472c37fe51694977ae9b4132404">armnn::profiling::ICounterDirectory::GetCategoryCount</a></div><div class="ttdeci">virtual uint16_t GetCategoryCount() const =0</div></div> |
| 169 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_a718a75d4c178cf3f687b3f27b8f55091"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a718a75d4c178cf3f687b3f27b8f55091">armnn::profiling::ICounterDirectory::GetCategories</a></div><div class="ttdeci">virtual const Categories & GetCategories() const =0</div></div> |
| 170 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_a3b95c70c6d9c60fe7b25a4fa9bf20ea0"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#a3b95c70c6d9c60fe7b25a4fa9bf20ea0">armnn::profiling::Counter::m_CounterSetUid</a></div><div class="ttdeci">uint16_t m_CounterSetUid</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00140">ICounterDirectory.hpp:140</a></div></div> |
| 171 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_a84079a1f364c37c59230bc52332d8d19"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#a84079a1f364c37c59230bc52332d8d19">armnn::profiling::Counter::m_Units</a></div><div class="ttdeci">std::string m_Units</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00136">ICounterDirectory.hpp:136</a></div></div> |
| 172 | <div class="ttc" id="classarmnn_1_1profiling_1_1_directory_capture_command_handler_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_directory_capture_command_handler.html">armnn::profiling::DirectoryCaptureCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8hpp_source.html#l00033">DirectoryCaptureCommandHandler.hpp:33</a></div></div> |
| 173 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_a7aa5f39e2eddecaa9b1b5730c0481b11"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#a7aa5f39e2eddecaa9b1b5730c0481b11">armnn::profiling::Counter::m_Class</a></div><div class="ttdeci">uint16_t m_Class</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00131">ICounterDirectory.hpp:131</a></div></div> |
| 174 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_aecd5912045fd41fe41dc96c9844f6deb"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aecd5912045fd41fe41dc96c9844f6deb">armnn::profiling::ICounterDirectory::GetDeviceCount</a></div><div class="ttdeci">virtual uint16_t GetDeviceCount() const =0</div></div> |
| 175 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_a69719c180aafcdf5a25f81a851c74809"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#a69719c180aafcdf5a25f81a851c74809">armnn::profiling::Counter::m_Interpolation</a></div><div class="ttdeci">uint16_t m_Interpolation</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00132">ICounterDirectory.hpp:132</a></div></div> |
| 176 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_a8908490db3b8a0003a639ac56b956cee"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a8908490db3b8a0003a639ac56b956cee">armnn::profiling::ICounterDirectory::GetCounterSets</a></div><div class="ttdeci">virtual const CounterSets & GetCounterSets() const =0</div></div> |
| 177 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_a5edaa2326b1410fae32c5253ed0188d8"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#a5edaa2326b1410fae32c5253ed0188d8">armnn::profiling::Counter::m_Description</a></div><div class="ttdeci">std::string m_Description</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00135">ICounterDirectory.hpp:135</a></div></div> |
| 178 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_acab78d0987a9cca5a9cac957be610a7d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#acab78d0987a9cca5a9cac957be610a7d">armnn::profiling::ICounterDirectory::GetCounterCount</a></div><div class="ttdeci">virtual uint16_t GetCounterCount() const =0</div></div> |
| 179 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_service_html_adfaa32654e05eab63b2adc34b2138475"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_service.html#adfaa32654e05eab63b2adc34b2138475">armnn::profiling::ProfilingService::GetCounterDirectory</a></div><div class="ttdeci">const ICounterDirectory & GetCounterDirectory() const</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_service_8cpp_source.html#l00193">ProfilingService.cpp:193</a></div></div> |
| 180 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_service_html_aec0783b5a136e042adcc47bae4fe5291"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_service.html#aec0783b5a136e042adcc47bae4fe5291">armnn::profiling::ProfilingService::Update</a></div><div class="ttdeci">void Update()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_service_8cpp_source.html#l00088">ProfilingService.cpp:88</a></div></div> |
| 181 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_a81881e3910b23455b46ec30c8420c695"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a81881e3910b23455b46ec30c8420c695">armnn::profiling::ICounterDirectory::GetCounter</a></div><div class="ttdeci">virtual const Counter * GetCounter(uint16_t uid) const =0</div></div> |
| 182 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_html_a26d42007440bb01a1a6d0ab3b5a657ee"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html#a26d42007440bb01a1a6d0ab3b5a657ee">armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling</a></div><div class="ttdeci">bool m_EnableProfiling</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00070">IRuntime.hpp:70</a></div></div> |
| 183 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_ab13844df5477a9ab8f13069e3d8abad6"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#ab13844df5477a9ab8f13069e3d8abad6">armnn::profiling::Counter::m_Name</a></div><div class="ttdeci">std::string m_Name</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00134">ICounterDirectory.hpp:134</a></div></div> |
| 184 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_service_html_ae7a3588986b93e13fda47c7ce4b0627c"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_service.html#ae7a3588986b93e13fda47c7ce4b0627c">armnn::profiling::ProfilingService::ResetExternalProfilingOptions</a></div><div class="ttdeci">void ResetExternalProfilingOptions(const ExternalProfilingOptions &options, bool resetProfilingService=false)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_service_8cpp_source.html#l00019">ProfilingService.cpp:19</a></div></div> |
| 185 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html">armnn::profiling::Counter</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00099">ICounterDirectory.hpp:99</a></div></div> |
| 186 | <div class="ttc" id="classarmnn_1_1gatordmock_1_1_gatord_mock_service_html"><div class="ttname"><a href="classarmnn_1_1gatordmock_1_1_gatord_mock_service.html">armnn::gatordmock::GatordMockService</a></div><div class="ttdef"><b>Definition:</b> <a href="_gatord_mock_service_8hpp_source.html#l00037">GatordMockService.hpp:37</a></div></div> |
| 187 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_ad9fa9b8364fcaa2c940ef8e78eff8df2"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ad9fa9b8364fcaa2c940ef8e78eff8df2">armnn::profiling::ICounterDirectory::GetCounters</a></div><div class="ttdeci">virtual const Counters & GetCounters() const =0</div></div> |
| 188 | <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> |
| 189 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_html"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.html">armnn::IRuntime::CreationOptions::ExternalProfilingOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.html#l00060">IRuntime.hpp:60</a></div></div> |
| 190 | <div class="ttc" id="classarmnn_1_1profiling_1_1_command_handler_registry_html_a7875d60ac5ca76c70f599367ec61261a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_command_handler_registry.html#a7875d60ac5ca76c70f599367ec61261a">armnn::profiling::CommandHandlerRegistry::RegisterFunctor</a></div><div class="ttdeci">void RegisterFunctor(CommandHandlerFunctor *functor, uint32_t familyId, uint32_t packetId, uint32_t version)</div><div class="ttdef"><b>Definition:</b> <a href="_command_handler_registry_8cpp_source.html#l00017">CommandHandlerRegistry.cpp:17</a></div></div> |
| 191 | <div class="ttc" id="classarmnn_1_1gatordmock_1_1_stream_metadata_command_handler_html"><div class="ttname"><a href="classarmnn_1_1gatordmock_1_1_stream_metadata_command_handler.html">armnn::gatordmock::StreamMetadataCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_stream_metadata_command_handler_8hpp_source.html#l00026">StreamMetadataCommandHandler.hpp:26</a></div></div> |
| 192 | <div class="ttc" id="classarmnn_1_1profiling_1_1_command_handler_registry_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_command_handler_registry.html">armnn::profiling::CommandHandlerRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_command_handler_registry_8hpp_source.html#l00032">CommandHandlerRegistry.hpp:32</a></div></div> |
| 193 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html_aef59fdca57a5bb822e22cacfc5836fab"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aef59fdca57a5bb822e22cacfc5836fab">armnn::profiling::ICounterDirectory::GetCounterSetCount</a></div><div class="ttdeci">virtual uint16_t GetCounterSetCount() const =0</div></div> |
| 194 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_html_af734583ef63236e643f64bc6f3f93c3d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.html#af734583ef63236e643f64bc6f3f93c3d">armnn::profiling::Counter::m_DeviceUid</a></div><div class="ttdeci">uint16_t m_DeviceUid</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00139">ICounterDirectory.hpp:139</a></div></div> |
| 195 | <div class="ttc" id="namespacearmnn_1_1profiling_html_aeeb6904ffbae435c8d0a7138427688f4"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#aeeb6904ffbae435c8d0a7138427688f4">armnn::profiling::Counters</a></div><div class="ttdeci">std::unordered_map< uint16_t, CounterPtr > Counters</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00040">ICounterDirectory.hpp:40</a></div></div> |
| 196 | <div class="ttc" id="classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler_html"><div class="ttname"><a href="classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.html">armnn::gatordmock::PeriodicCounterCaptureCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_periodic_counter_capture_command_handler_8hpp_source.html#l00026">PeriodicCounterCaptureCommandHandler.hpp:26</a></div></div> |
| 197 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_service_html_ad8d263669817cf577760710ff6c96bb9"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_service.html#ad8d263669817cf577760710ff6c96bb9">armnn::profiling::ProfilingService::GetCurrentState</a></div><div class="ttdeci">ProfilingState GetCurrentState() const</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_service_8cpp_source.html#l00203">ProfilingService.cpp:203</a></div></div> |
| 198 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.html">armnn::profiling::ICounterDirectory</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00143">ICounterDirectory.hpp:143</a></div></div> |
| 199 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a5ff5630fd34b2ac9c090f05c010e6839"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a5ff5630fd34b2ac9c090f05c010e6839">profilingService</a></div><div class="ttdeci">ProfilingService & profilingService</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.html#l00055">FileOnlyProfilingDecoratorTests.cpp:55</a></div></div> |
| 200 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a></div><div class="ttdeci">armnn::Runtime::CreationOptions::ExternalProfilingOptions options</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.html#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> |
| 201 | <div class="ttc" id="classarmnn_1_1gatordmock_1_1_timeline_directory_capture_command_handler_html"><div class="ttname"><a href="classarmnn_1_1gatordmock_1_1_timeline_directory_capture_command_handler.html">armnn::gatordmock::TimelineDirectoryCaptureCommandHandler</a></div><div class="ttdef"><b>Definition:</b> <a href="_timeline_directory_capture_command_handler_8hpp_source.html#l00020">TimelineDirectoryCaptureCommandHandler.hpp:20</a></div></div> |
| 202 | <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_version_resolver_html"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet_version_resolver.html">armnn::profiling::PacketVersionResolver</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_version_resolver_8hpp_source.html#l00036">PacketVersionResolver.hpp:36</a></div></div> |
| 203 | </div><!-- fragment --> |
| 204 | </div> |
| 205 | </div> |
| 206 | </div><!-- contents --> |
| 207 | </div><!-- doc-content --> |
| 208 | <!-- start footer part --> |
| 209 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 210 | <ul> |
| 211 | <li class="navelem"><a class="el" href="dir_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li><li class="navelem"><a class="el" href="dir_659c7018c274c4a27f289b6765351cd5.html">profiling</a></li><li class="navelem"><a class="el" href="dir_0f843ccd982e68996492857574f1c0de.html">gatordmock</a></li><li class="navelem"><a class="el" href="dir_f1cd4d246a0ed23645c55e9fa28e525a.html">tests</a></li><li class="navelem"><a class="el" href="_gatord_mock_tests_8cpp.html">GatordMockTests.cpp</a></li> |
| 212 | <li class="footer">Generated on Fri Mar 13 2020 16:07:01 for ArmNN by |
| 213 | <a href="http://www.doxygen.org/index.html"> |
| 214 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 215 | </ul> |
| 216 | </div> |
| 217 | </body> |
| 218 | </html> |