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: MockCounterDirectory Class 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('classarmnn_1_1profiling_1_1_mock_counter_directory.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="#pub-methods">Public Member Functions</a> | |
| 85 | <a href="classarmnn_1_1profiling_1_1_mock_counter_directory-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">MockCounterDirectory Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for MockCounterDirectory:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1profiling_1_1_mock_counter_directory.png" usemap="#MockCounterDirectory_map" alt=""/> |
| 97 | <map id="MockCounterDirectory_map" name="MockCounterDirectory_map"> |
| 98 | <area href="classarmnn_1_1profiling_1_1_i_counter_directory.html" alt="ICounterDirectory" shape="rect" coords="0,0,141,24"/> |
| 99 | </map> |
| 100 | </div></div> |
| 101 | <table class="memberdecls"> |
| 102 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 103 | Public Member Functions</h2></td></tr> |
| 104 | <tr class="memitem:acc27c4a7afbfde5c1efa5cc070306fd8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#acc27c4a7afbfde5c1efa5cc070306fd8">MockCounterDirectory</a> ()=default</td></tr> |
| 105 | <tr class="separator:acc27c4a7afbfde5c1efa5cc070306fd8"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <tr class="memitem:a180f0ad0d134cd8ea5eb89c663ae00b0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a180f0ad0d134cd8ea5eb89c663ae00b0">~MockCounterDirectory</a> ()=default</td></tr> |
| 107 | <tr class="separator:a180f0ad0d134cd8ea5eb89c663ae00b0"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a7fe53e0c4af336aab34f5164b8644c55"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_category.html">Category</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a7fe53e0c4af336aab34f5164b8644c55">RegisterCategory</a> (const std::string &categoryName, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > &deviceUid=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>(), const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > &counterSetUid=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>())</td></tr> |
| 109 | <tr class="separator:a7fe53e0c4af336aab34f5164b8644c55"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:ab85324af429748fe06a422c18af6de41"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_device.html">Device</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#ab85324af429748fe06a422c18af6de41">RegisterDevice</a> (const std::string &deviceName, uint16_t cores=0, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< std::string > &parentCategoryName=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>())</td></tr> |
| 111 | <tr class="separator:ab85324af429748fe06a422c18af6de41"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a7992a22b56b3a9ffadd8937d925116a5"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.html">CounterSet</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a7992a22b56b3a9ffadd8937d925116a5">RegisterCounterSet</a> (const std::string &counterSetName, uint16_t count=0, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< std::string > &parentCategoryName=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>())</td></tr> |
| 113 | <tr class="separator:a7992a22b56b3a9ffadd8937d925116a5"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:a130d8f6cbda6d299aeb355d4abcc5f95"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.html">Counter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a130d8f6cbda6d299aeb355d4abcc5f95">RegisterCounter</a> (const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a> &backendId, const uint16_t uid, const std::string &parentCategoryName, uint16_t counterClass, uint16_t interpolation, double multiplier, const std::string &name, const std::string &description, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< std::string > &units=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>(), const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > &numberOfCores=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>(), const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > &deviceUid=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>(), const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > &counterSetUid=<a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>())</td></tr> |
| 115 | <tr class="separator:a130d8f6cbda6d299aeb355d4abcc5f95"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a4626db62503c13042a745a40399f8317"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a4626db62503c13042a745a40399f8317">GetCategoryCount</a> () const override</td></tr> |
| 117 | <tr class="separator:a4626db62503c13042a745a40399f8317"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:ad742b37bc2beb568e083225f3fd8160b"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#ad742b37bc2beb568e083225f3fd8160b">GetDeviceCount</a> () const override</td></tr> |
| 119 | <tr class="separator:ad742b37bc2beb568e083225f3fd8160b"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:ae3b7dbaa7317dacbcec25f30f6a16075"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#ae3b7dbaa7317dacbcec25f30f6a16075">GetCounterSetCount</a> () const override</td></tr> |
| 121 | <tr class="separator:ae3b7dbaa7317dacbcec25f30f6a16075"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:ad9062caad1836f8e6b810e4e97bb19d1"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#ad9062caad1836f8e6b810e4e97bb19d1">GetCounterCount</a> () const override</td></tr> |
| 123 | <tr class="separator:ad9062caad1836f8e6b810e4e97bb19d1"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:af55b37f13ace15889ce8a0b18dda3ed9"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.html#af55bc6e5233a4720fe8a813db470b06f">Categories</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#af55b37f13ace15889ce8a0b18dda3ed9">GetCategories</a> () const override</td></tr> |
| 125 | <tr class="separator:af55b37f13ace15889ce8a0b18dda3ed9"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:ac9bdbed464222fa06875096a4f373ca8"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.html#a3ff1066867cb9bd3b08338957c414401">Devices</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#ac9bdbed464222fa06875096a4f373ca8">GetDevices</a> () const override</td></tr> |
| 127 | <tr class="separator:ac9bdbed464222fa06875096a4f373ca8"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:afcb72c4151fd72abfffcb7dae0ed2817"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.html#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#afcb72c4151fd72abfffcb7dae0ed2817">GetCounterSets</a> () const override</td></tr> |
| 129 | <tr class="separator:afcb72c4151fd72abfffcb7dae0ed2817"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:a6d7f92b987338cab6cbfbad8d53a9738"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.html#aeeb6904ffbae435c8d0a7138427688f4">Counters</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a6d7f92b987338cab6cbfbad8d53a9738">GetCounters</a> () const override</td></tr> |
| 131 | <tr class="separator:a6d7f92b987338cab6cbfbad8d53a9738"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a739170f2a39056dd19a09216092fd089"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_category.html">Category</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a739170f2a39056dd19a09216092fd089">GetCategory</a> (const std::string &name) const override</td></tr> |
| 133 | <tr class="separator:a739170f2a39056dd19a09216092fd089"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:a5fa9a7091e79fb9c5c0af5f663c71df1"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_device.html">Device</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a5fa9a7091e79fb9c5c0af5f663c71df1">GetDevice</a> (uint16_t uid) const override</td></tr> |
| 135 | <tr class="separator:a5fa9a7091e79fb9c5c0af5f663c71df1"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:af96ac62d23f06a90b7e36fca3f13367b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.html">CounterSet</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#af96ac62d23f06a90b7e36fca3f13367b">GetCounterSet</a> (uint16_t uid) const override</td></tr> |
| 137 | <tr class="separator:af96ac62d23f06a90b7e36fca3f13367b"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:ab2aecc9a0ed092f50b752d30a40bb31a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.html">Counter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#ab2aecc9a0ed092f50b752d30a40bb31a">GetCounter</a> (uint16_t uid) const override</td></tr> |
| 139 | <tr class="separator:ab2aecc9a0ed092f50b752d30a40bb31a"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html">ICounterDirectory</a></td></tr> |
| 141 | <tr class="memitem:ad5186479ccb3343cad2dcf8a288bede1 inherit pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ad5186479ccb3343cad2dcf8a288bede1">~ICounterDirectory</a> ()</td></tr> |
| 142 | <tr class="separator:ad5186479ccb3343cad2dcf8a288bede1 inherit pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | </table> |
| 144 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 145 | <div class="textblock"> |
| 146 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00439">439</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 147 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 148 | <a id="acc27c4a7afbfde5c1efa5cc070306fd8"></a> |
| 149 | <h2 class="memtitle"><span class="permalink"><a href="#acc27c4a7afbfde5c1efa5cc070306fd8">◆ </a></span>MockCounterDirectory()</h2> |
| 150 | |
| 151 | <div class="memitem"> |
| 152 | <div class="memproto"> |
| 153 | <table class="mlabels"> |
| 154 | <tr> |
| 155 | <td class="mlabels-left"> |
| 156 | <table class="memname"> |
| 157 | <tr> |
| 158 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html">MockCounterDirectory</a> </td> |
| 159 | <td>(</td> |
| 160 | <td class="paramname"></td><td>)</td> |
| 161 | <td></td> |
| 162 | </tr> |
| 163 | </table> |
| 164 | </td> |
| 165 | <td class="mlabels-right"> |
| 166 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 167 | </tr> |
| 168 | </table> |
| 169 | </div><div class="memdoc"> |
| 170 | |
| 171 | </div> |
| 172 | </div> |
| 173 | <a id="a180f0ad0d134cd8ea5eb89c663ae00b0"></a> |
| 174 | <h2 class="memtitle"><span class="permalink"><a href="#a180f0ad0d134cd8ea5eb89c663ae00b0">◆ </a></span>~MockCounterDirectory()</h2> |
| 175 | |
| 176 | <div class="memitem"> |
| 177 | <div class="memproto"> |
| 178 | <table class="mlabels"> |
| 179 | <tr> |
| 180 | <td class="mlabels-left"> |
| 181 | <table class="memname"> |
| 182 | <tr> |
| 183 | <td class="memname">~<a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html">MockCounterDirectory</a> </td> |
| 184 | <td>(</td> |
| 185 | <td class="paramname"></td><td>)</td> |
| 186 | <td></td> |
| 187 | </tr> |
| 188 | </table> |
| 189 | </td> |
| 190 | <td class="mlabels-right"> |
| 191 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 192 | </tr> |
| 193 | </table> |
| 194 | </div><div class="memdoc"> |
| 195 | |
| 196 | </div> |
| 197 | </div> |
| 198 | <h2 class="groupheader">Member Function Documentation</h2> |
| 199 | <a id="af55b37f13ace15889ce8a0b18dda3ed9"></a> |
| 200 | <h2 class="memtitle"><span class="permalink"><a href="#af55b37f13ace15889ce8a0b18dda3ed9">◆ </a></span>GetCategories()</h2> |
| 201 | |
| 202 | <div class="memitem"> |
| 203 | <div class="memproto"> |
| 204 | <table class="mlabels"> |
| 205 | <tr> |
| 206 | <td class="mlabels-left"> |
| 207 | <table class="memname"> |
| 208 | <tr> |
| 209 | <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.html#af55bc6e5233a4720fe8a813db470b06f">Categories</a>& GetCategories </td> |
| 210 | <td>(</td> |
| 211 | <td class="paramname"></td><td>)</td> |
| 212 | <td> const</td> |
| 213 | </tr> |
| 214 | </table> |
| 215 | </td> |
| 216 | <td class="mlabels-right"> |
| 217 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 218 | </tr> |
| 219 | </table> |
| 220 | </div><div class="memdoc"> |
| 221 | |
| 222 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a718a75d4c178cf3f687b3f27b8f55091">ICounterDirectory</a>.</p> |
| 223 | |
| 224 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00603">603</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 225 | <div class="fragment"><div class="line"><a name="l00603"></a><span class="lineno"> 603</span> { <span class="keywordflow">return</span> m_Categories; }</div></div><!-- fragment --> |
| 226 | </div> |
| 227 | </div> |
| 228 | <a id="a739170f2a39056dd19a09216092fd089"></a> |
| 229 | <h2 class="memtitle"><span class="permalink"><a href="#a739170f2a39056dd19a09216092fd089">◆ </a></span>GetCategory()</h2> |
| 230 | |
| 231 | <div class="memitem"> |
| 232 | <div class="memproto"> |
| 233 | <table class="mlabels"> |
| 234 | <tr> |
| 235 | <td class="mlabels-left"> |
| 236 | <table class="memname"> |
| 237 | <tr> |
| 238 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_category.html">Category</a>* GetCategory </td> |
| 239 | <td>(</td> |
| 240 | <td class="paramtype">const std::string & </td> |
| 241 | <td class="paramname"><em>name</em></td><td>)</td> |
| 242 | <td> const</td> |
| 243 | </tr> |
| 244 | </table> |
| 245 | </td> |
| 246 | <td class="mlabels-right"> |
| 247 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 248 | </tr> |
| 249 | </table> |
| 250 | </div><div class="memdoc"> |
| 251 | |
| 252 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a90890aee41059d8fed244538acc4044f">ICounterDirectory</a>.</p> |
| 253 | |
| 254 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00609">609</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 255 | <div class="fragment"><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  {</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  <span class="keyword">auto</span> it = std::find_if(m_Categories.begin(), m_Categories.end(), [&name](<span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.html#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a>& category)</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  {</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  BOOST_ASSERT(category);</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span> </div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  <span class="keywordflow">return</span> category->m_Name == name;</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  });</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span> </div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  <span class="keywordflow">if</span> (it == m_Categories.end())</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  {</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  }</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span> </div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  <span class="keywordflow">return</span> it->get();</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_a8adee535828386656b4c8acfa8bcf871"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a8adee535828386656b4c8acfa8bcf871">armnn::profiling::CategoryPtr</a></div><div class="ttdeci">std::unique_ptr< Category > CategoryPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00031">ICounterDirectory.hpp:31</a></div></div> |
| 256 | </div><!-- fragment --> |
| 257 | </div> |
| 258 | </div> |
| 259 | <a id="a4626db62503c13042a745a40399f8317"></a> |
| 260 | <h2 class="memtitle"><span class="permalink"><a href="#a4626db62503c13042a745a40399f8317">◆ </a></span>GetCategoryCount()</h2> |
| 261 | |
| 262 | <div class="memitem"> |
| 263 | <div class="memproto"> |
| 264 | <table class="mlabels"> |
| 265 | <tr> |
| 266 | <td class="mlabels-left"> |
| 267 | <table class="memname"> |
| 268 | <tr> |
| 269 | <td class="memname">uint16_t GetCategoryCount </td> |
| 270 | <td>(</td> |
| 271 | <td class="paramname"></td><td>)</td> |
| 272 | <td> const</td> |
| 273 | </tr> |
| 274 | </table> |
| 275 | </td> |
| 276 | <td class="mlabels-right"> |
| 277 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 278 | </tr> |
| 279 | </table> |
| 280 | </div><div class="memdoc"> |
| 281 | |
| 282 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ab43b0472c37fe51694977ae9b4132404">ICounterDirectory</a>.</p> |
| 283 | |
| 284 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00597">597</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 285 | |
| 286 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01664">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 287 | <div class="fragment"><div class="line"><a name="l00597"></a><span class="lineno"> 597</span> { <span class="keywordflow">return</span> boost::numeric_cast<uint16_t>(m_Categories.size()); }</div></div><!-- fragment --> |
| 288 | </div> |
| 289 | </div> |
| 290 | <a id="ab2aecc9a0ed092f50b752d30a40bb31a"></a> |
| 291 | <h2 class="memtitle"><span class="permalink"><a href="#ab2aecc9a0ed092f50b752d30a40bb31a">◆ </a></span>GetCounter()</h2> |
| 292 | |
| 293 | <div class="memitem"> |
| 294 | <div class="memproto"> |
| 295 | <table class="mlabels"> |
| 296 | <tr> |
| 297 | <td class="mlabels-left"> |
| 298 | <table class="memname"> |
| 299 | <tr> |
| 300 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.html">Counter</a>* GetCounter </td> |
| 301 | <td>(</td> |
| 302 | <td class="paramtype">uint16_t </td> |
| 303 | <td class="paramname"><em>uid</em></td><td>)</td> |
| 304 | <td> const</td> |
| 305 | </tr> |
| 306 | </table> |
| 307 | </td> |
| 308 | <td class="mlabels-right"> |
| 309 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 310 | </tr> |
| 311 | </table> |
| 312 | </div><div class="memdoc"> |
| 313 | |
| 314 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a81881e3910b23455b46ec30c8420c695">ICounterDirectory</a>.</p> |
| 315 | |
| 316 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00638">638</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 317 | <div class="fragment"><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  {</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  boost::ignore_unused(uid);</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; <span class="comment">// Not used by the unit tests</span></div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  }</div></div><!-- fragment --> |
| 318 | </div> |
| 319 | </div> |
| 320 | <a id="ad9062caad1836f8e6b810e4e97bb19d1"></a> |
| 321 | <h2 class="memtitle"><span class="permalink"><a href="#ad9062caad1836f8e6b810e4e97bb19d1">◆ </a></span>GetCounterCount()</h2> |
| 322 | |
| 323 | <div class="memitem"> |
| 324 | <div class="memproto"> |
| 325 | <table class="mlabels"> |
| 326 | <tr> |
| 327 | <td class="mlabels-left"> |
| 328 | <table class="memname"> |
| 329 | <tr> |
| 330 | <td class="memname">uint16_t GetCounterCount </td> |
| 331 | <td>(</td> |
| 332 | <td class="paramname"></td><td>)</td> |
| 333 | <td> const</td> |
| 334 | </tr> |
| 335 | </table> |
| 336 | </td> |
| 337 | <td class="mlabels-right"> |
| 338 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 339 | </tr> |
| 340 | </table> |
| 341 | </div><div class="memdoc"> |
| 342 | |
| 343 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#acab78d0987a9cca5a9cac957be610a7d">ICounterDirectory</a>.</p> |
| 344 | |
| 345 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00600">600</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 346 | |
| 347 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01716">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 348 | <div class="fragment"><div class="line"><a name="l00600"></a><span class="lineno"> 600</span> { <span class="keywordflow">return</span> boost::numeric_cast<uint16_t>(m_Counters.size()); }</div></div><!-- fragment --> |
| 349 | </div> |
| 350 | </div> |
| 351 | <a id="a6d7f92b987338cab6cbfbad8d53a9738"></a> |
| 352 | <h2 class="memtitle"><span class="permalink"><a href="#a6d7f92b987338cab6cbfbad8d53a9738">◆ </a></span>GetCounters()</h2> |
| 353 | |
| 354 | <div class="memitem"> |
| 355 | <div class="memproto"> |
| 356 | <table class="mlabels"> |
| 357 | <tr> |
| 358 | <td class="mlabels-left"> |
| 359 | <table class="memname"> |
| 360 | <tr> |
| 361 | <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.html#aeeb6904ffbae435c8d0a7138427688f4">Counters</a>& GetCounters </td> |
| 362 | <td>(</td> |
| 363 | <td class="paramname"></td><td>)</td> |
| 364 | <td> const</td> |
| 365 | </tr> |
| 366 | </table> |
| 367 | </td> |
| 368 | <td class="mlabels-right"> |
| 369 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 370 | </tr> |
| 371 | </table> |
| 372 | </div><div class="memdoc"> |
| 373 | |
| 374 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#ad9fa9b8364fcaa2c940ef8e78eff8df2">ICounterDirectory</a>.</p> |
| 375 | |
| 376 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00606">606</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 377 | <div class="fragment"><div class="line"><a name="l00606"></a><span class="lineno"> 606</span> { <span class="keywordflow">return</span> m_Counters; }</div></div><!-- fragment --> |
| 378 | </div> |
| 379 | </div> |
| 380 | <a id="af96ac62d23f06a90b7e36fca3f13367b"></a> |
| 381 | <h2 class="memtitle"><span class="permalink"><a href="#af96ac62d23f06a90b7e36fca3f13367b">◆ </a></span>GetCounterSet()</h2> |
| 382 | |
| 383 | <div class="memitem"> |
| 384 | <div class="memproto"> |
| 385 | <table class="mlabels"> |
| 386 | <tr> |
| 387 | <td class="mlabels-left"> |
| 388 | <table class="memname"> |
| 389 | <tr> |
| 390 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.html">CounterSet</a>* GetCounterSet </td> |
| 391 | <td>(</td> |
| 392 | <td class="paramtype">uint16_t </td> |
| 393 | <td class="paramname"><em>uid</em></td><td>)</td> |
| 394 | <td> const</td> |
| 395 | </tr> |
| 396 | </table> |
| 397 | </td> |
| 398 | <td class="mlabels-right"> |
| 399 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 400 | </tr> |
| 401 | </table> |
| 402 | </div><div class="memdoc"> |
| 403 | |
| 404 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a67693dcf840ffeadc066ce77ef7b2044">ICounterDirectory</a>.</p> |
| 405 | |
| 406 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00632">632</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 407 | <div class="fragment"><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  {</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  boost::ignore_unused(uid);</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; <span class="comment">// Not used by the unit tests</span></div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  }</div></div><!-- fragment --> |
| 408 | </div> |
| 409 | </div> |
| 410 | <a id="ae3b7dbaa7317dacbcec25f30f6a16075"></a> |
| 411 | <h2 class="memtitle"><span class="permalink"><a href="#ae3b7dbaa7317dacbcec25f30f6a16075">◆ </a></span>GetCounterSetCount()</h2> |
| 412 | |
| 413 | <div class="memitem"> |
| 414 | <div class="memproto"> |
| 415 | <table class="mlabels"> |
| 416 | <tr> |
| 417 | <td class="mlabels-left"> |
| 418 | <table class="memname"> |
| 419 | <tr> |
| 420 | <td class="memname">uint16_t GetCounterSetCount </td> |
| 421 | <td>(</td> |
| 422 | <td class="paramname"></td><td>)</td> |
| 423 | <td> const</td> |
| 424 | </tr> |
| 425 | </table> |
| 426 | </td> |
| 427 | <td class="mlabels-right"> |
| 428 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 429 | </tr> |
| 430 | </table> |
| 431 | </div><div class="memdoc"> |
| 432 | |
| 433 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aef59fdca57a5bb822e22cacfc5836fab">ICounterDirectory</a>.</p> |
| 434 | |
| 435 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00599">599</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 436 | |
| 437 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01646">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 438 | <div class="fragment"><div class="line"><a name="l00599"></a><span class="lineno"> 599</span> { <span class="keywordflow">return</span> boost::numeric_cast<uint16_t>(m_CounterSets.size()); }</div></div><!-- fragment --> |
| 439 | </div> |
| 440 | </div> |
| 441 | <a id="afcb72c4151fd72abfffcb7dae0ed2817"></a> |
| 442 | <h2 class="memtitle"><span class="permalink"><a href="#afcb72c4151fd72abfffcb7dae0ed2817">◆ </a></span>GetCounterSets()</h2> |
| 443 | |
| 444 | <div class="memitem"> |
| 445 | <div class="memproto"> |
| 446 | <table class="mlabels"> |
| 447 | <tr> |
| 448 | <td class="mlabels-left"> |
| 449 | <table class="memname"> |
| 450 | <tr> |
| 451 | <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.html#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a>& GetCounterSets </td> |
| 452 | <td>(</td> |
| 453 | <td class="paramname"></td><td>)</td> |
| 454 | <td> const</td> |
| 455 | </tr> |
| 456 | </table> |
| 457 | </td> |
| 458 | <td class="mlabels-right"> |
| 459 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 460 | </tr> |
| 461 | </table> |
| 462 | </div><div class="memdoc"> |
| 463 | |
| 464 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a8908490db3b8a0003a639ac56b956cee">ICounterDirectory</a>.</p> |
| 465 | |
| 466 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00605">605</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 467 | <div class="fragment"><div class="line"><a name="l00605"></a><span class="lineno"> 605</span> { <span class="keywordflow">return</span> m_CounterSets; }</div></div><!-- fragment --> |
| 468 | </div> |
| 469 | </div> |
| 470 | <a id="a5fa9a7091e79fb9c5c0af5f663c71df1"></a> |
| 471 | <h2 class="memtitle"><span class="permalink"><a href="#a5fa9a7091e79fb9c5c0af5f663c71df1">◆ </a></span>GetDevice()</h2> |
| 472 | |
| 473 | <div class="memitem"> |
| 474 | <div class="memproto"> |
| 475 | <table class="mlabels"> |
| 476 | <tr> |
| 477 | <td class="mlabels-left"> |
| 478 | <table class="memname"> |
| 479 | <tr> |
| 480 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_device.html">Device</a>* GetDevice </td> |
| 481 | <td>(</td> |
| 482 | <td class="paramtype">uint16_t </td> |
| 483 | <td class="paramname"><em>uid</em></td><td>)</td> |
| 484 | <td> const</td> |
| 485 | </tr> |
| 486 | </table> |
| 487 | </td> |
| 488 | <td class="mlabels-right"> |
| 489 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 490 | </tr> |
| 491 | </table> |
| 492 | </div><div class="memdoc"> |
| 493 | |
| 494 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a228989d3c53e86e779567ca5c2033ec2">ICounterDirectory</a>.</p> |
| 495 | |
| 496 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00626">626</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 497 | <div class="fragment"><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  {</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  boost::ignore_unused(uid);</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; <span class="comment">// Not used by the unit tests</span></div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  }</div></div><!-- fragment --> |
| 498 | </div> |
| 499 | </div> |
| 500 | <a id="ad742b37bc2beb568e083225f3fd8160b"></a> |
| 501 | <h2 class="memtitle"><span class="permalink"><a href="#ad742b37bc2beb568e083225f3fd8160b">◆ </a></span>GetDeviceCount()</h2> |
| 502 | |
| 503 | <div class="memitem"> |
| 504 | <div class="memproto"> |
| 505 | <table class="mlabels"> |
| 506 | <tr> |
| 507 | <td class="mlabels-left"> |
| 508 | <table class="memname"> |
| 509 | <tr> |
| 510 | <td class="memname">uint16_t GetDeviceCount </td> |
| 511 | <td>(</td> |
| 512 | <td class="paramname"></td><td>)</td> |
| 513 | <td> const</td> |
| 514 | </tr> |
| 515 | </table> |
| 516 | </td> |
| 517 | <td class="mlabels-right"> |
| 518 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 519 | </tr> |
| 520 | </table> |
| 521 | </div><div class="memdoc"> |
| 522 | |
| 523 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#aecd5912045fd41fe41dc96c9844f6deb">ICounterDirectory</a>.</p> |
| 524 | |
| 525 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00598">598</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 526 | |
| 527 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01628">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 528 | <div class="fragment"><div class="line"><a name="l00598"></a><span class="lineno"> 598</span> { <span class="keywordflow">return</span> boost::numeric_cast<uint16_t>(m_Devices.size()); }</div></div><!-- fragment --> |
| 529 | </div> |
| 530 | </div> |
| 531 | <a id="ac9bdbed464222fa06875096a4f373ca8"></a> |
| 532 | <h2 class="memtitle"><span class="permalink"><a href="#ac9bdbed464222fa06875096a4f373ca8">◆ </a></span>GetDevices()</h2> |
| 533 | |
| 534 | <div class="memitem"> |
| 535 | <div class="memproto"> |
| 536 | <table class="mlabels"> |
| 537 | <tr> |
| 538 | <td class="mlabels-left"> |
| 539 | <table class="memname"> |
| 540 | <tr> |
| 541 | <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.html#a3ff1066867cb9bd3b08338957c414401">Devices</a>& GetDevices </td> |
| 542 | <td>(</td> |
| 543 | <td class="paramname"></td><td>)</td> |
| 544 | <td> const</td> |
| 545 | </tr> |
| 546 | </table> |
| 547 | </td> |
| 548 | <td class="mlabels-right"> |
| 549 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 550 | </tr> |
| 551 | </table> |
| 552 | </div><div class="memdoc"> |
| 553 | |
| 554 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.html#a98e6769cb933d30bfd3ca25f61bd8438">ICounterDirectory</a>.</p> |
| 555 | |
| 556 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00604">604</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 557 | <div class="fragment"><div class="line"><a name="l00604"></a><span class="lineno"> 604</span> { <span class="keywordflow">return</span> m_Devices; }</div></div><!-- fragment --> |
| 558 | </div> |
| 559 | </div> |
| 560 | <a id="a7fe53e0c4af336aab34f5164b8644c55"></a> |
| 561 | <h2 class="memtitle"><span class="permalink"><a href="#a7fe53e0c4af336aab34f5164b8644c55">◆ </a></span>RegisterCategory()</h2> |
| 562 | |
| 563 | <div class="memitem"> |
| 564 | <div class="memproto"> |
| 565 | <table class="mlabels"> |
| 566 | <tr> |
| 567 | <td class="mlabels-left"> |
| 568 | <table class="memname"> |
| 569 | <tr> |
| 570 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_category.html">Category</a>* RegisterCategory </td> |
| 571 | <td>(</td> |
| 572 | <td class="paramtype">const std::string & </td> |
| 573 | <td class="paramname"><em>categoryName</em>, </td> |
| 574 | </tr> |
| 575 | <tr> |
| 576 | <td class="paramkey"></td> |
| 577 | <td></td> |
| 578 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > & </td> |
| 579 | <td class="paramname"><em>deviceUid</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code>, </td> |
| 580 | </tr> |
| 581 | <tr> |
| 582 | <td class="paramkey"></td> |
| 583 | <td></td> |
| 584 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > & </td> |
| 585 | <td class="paramname"><em>counterSetUid</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code> </td> |
| 586 | </tr> |
| 587 | <tr> |
| 588 | <td></td> |
| 589 | <td>)</td> |
| 590 | <td></td><td></td> |
| 591 | </tr> |
| 592 | </table> |
| 593 | </td> |
| 594 | <td class="mlabels-right"> |
| 595 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 596 | </tr> |
| 597 | </table> |
| 598 | </div><div class="memdoc"> |
| 599 | |
| 600 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00446">446</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 601 | |
| 602 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01664">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 603 | <div class="fragment"><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  {</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <span class="comment">// Get the device UID</span></div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  uint16_t deviceUidValue = deviceUid.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? deviceUid.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span> </div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="comment">// Get the counter set UID</span></div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  uint16_t counterSetUidValue = counterSetUid.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? counterSetUid.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="comment">// Create the category</span></div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <a class="code" href="namespacearmnn_1_1profiling.html#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a> category = std::make_unique<Category>(categoryName, deviceUidValue, counterSetUidValue);</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  BOOST_ASSERT(category);</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span> </div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="comment">// Get the raw category pointer</span></div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <span class="keyword">const</span> Category* categoryPtr = category.get();</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  BOOST_ASSERT(categoryPtr);</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span> </div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="comment">// Register the category</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  m_Categories.insert(std::move(category));</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span> </div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <span class="keywordflow">return</span> categoryPtr;</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_a8adee535828386656b4c8acfa8bcf871"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a8adee535828386656b4c8acfa8bcf871">armnn::profiling::CategoryPtr</a></div><div class="ttdeci">std::unique_ptr< Category > CategoryPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00031">ICounterDirectory.hpp:31</a></div></div> |
| 604 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
| 605 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch< std::is_reference< T >::value, T >::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 606 | </div><!-- fragment --> |
| 607 | </div> |
| 608 | </div> |
| 609 | <a id="a130d8f6cbda6d299aeb355d4abcc5f95"></a> |
| 610 | <h2 class="memtitle"><span class="permalink"><a href="#a130d8f6cbda6d299aeb355d4abcc5f95">◆ </a></span>RegisterCounter()</h2> |
| 611 | |
| 612 | <div class="memitem"> |
| 613 | <div class="memproto"> |
| 614 | <table class="mlabels"> |
| 615 | <tr> |
| 616 | <td class="mlabels-left"> |
| 617 | <table class="memname"> |
| 618 | <tr> |
| 619 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.html">Counter</a>* RegisterCounter </td> |
| 620 | <td>(</td> |
| 621 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a> & </td> |
| 622 | <td class="paramname"><em>backendId</em>, </td> |
| 623 | </tr> |
| 624 | <tr> |
| 625 | <td class="paramkey"></td> |
| 626 | <td></td> |
| 627 | <td class="paramtype">const uint16_t </td> |
| 628 | <td class="paramname"><em>uid</em>, </td> |
| 629 | </tr> |
| 630 | <tr> |
| 631 | <td class="paramkey"></td> |
| 632 | <td></td> |
| 633 | <td class="paramtype">const std::string & </td> |
| 634 | <td class="paramname"><em>parentCategoryName</em>, </td> |
| 635 | </tr> |
| 636 | <tr> |
| 637 | <td class="paramkey"></td> |
| 638 | <td></td> |
| 639 | <td class="paramtype">uint16_t </td> |
| 640 | <td class="paramname"><em>counterClass</em>, </td> |
| 641 | </tr> |
| 642 | <tr> |
| 643 | <td class="paramkey"></td> |
| 644 | <td></td> |
| 645 | <td class="paramtype">uint16_t </td> |
| 646 | <td class="paramname"><em>interpolation</em>, </td> |
| 647 | </tr> |
| 648 | <tr> |
| 649 | <td class="paramkey"></td> |
| 650 | <td></td> |
| 651 | <td class="paramtype">double </td> |
| 652 | <td class="paramname"><em>multiplier</em>, </td> |
| 653 | </tr> |
| 654 | <tr> |
| 655 | <td class="paramkey"></td> |
| 656 | <td></td> |
| 657 | <td class="paramtype">const std::string & </td> |
| 658 | <td class="paramname"><em>name</em>, </td> |
| 659 | </tr> |
| 660 | <tr> |
| 661 | <td class="paramkey"></td> |
| 662 | <td></td> |
| 663 | <td class="paramtype">const std::string & </td> |
| 664 | <td class="paramname"><em>description</em>, </td> |
| 665 | </tr> |
| 666 | <tr> |
| 667 | <td class="paramkey"></td> |
| 668 | <td></td> |
| 669 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< std::string > & </td> |
| 670 | <td class="paramname"><em>units</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code>, </td> |
| 671 | </tr> |
| 672 | <tr> |
| 673 | <td class="paramkey"></td> |
| 674 | <td></td> |
| 675 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > & </td> |
| 676 | <td class="paramname"><em>numberOfCores</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code>, </td> |
| 677 | </tr> |
| 678 | <tr> |
| 679 | <td class="paramkey"></td> |
| 680 | <td></td> |
| 681 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > & </td> |
| 682 | <td class="paramname"><em>deviceUid</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code>, </td> |
| 683 | </tr> |
| 684 | <tr> |
| 685 | <td class="paramkey"></td> |
| 686 | <td></td> |
| 687 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< uint16_t > & </td> |
| 688 | <td class="paramname"><em>counterSetUid</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code> </td> |
| 689 | </tr> |
| 690 | <tr> |
| 691 | <td></td> |
| 692 | <td>)</td> |
| 693 | <td></td><td></td> |
| 694 | </tr> |
| 695 | </table> |
| 696 | </td> |
| 697 | <td class="mlabels-right"> |
| 698 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 699 | </tr> |
| 700 | </table> |
| 701 | </div><div class="memdoc"> |
| 702 | |
| 703 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00531">531</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 704 | |
| 705 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.html#l00074">armnn::profiling::GetNextCounterUids()</a>, and <a class="el" href="_i_counter_directory_8hpp_source.html#l00062">Category::m_Counters</a>.</p> |
| 706 | |
| 707 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01716">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 708 | <div class="fragment"><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  {</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  boost::ignore_unused(backendId);</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span> </div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <span class="comment">// Get the number of cores from the argument only</span></div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  uint16_t deviceCores = numberOfCores.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? numberOfCores.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span> </div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="comment">// Get the device UID</span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  uint16_t deviceUidValue = deviceUid.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? deviceUid.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span> </div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  <span class="comment">// Get the counter set UID</span></div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  uint16_t counterSetUidValue = counterSetUid.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? counterSetUid.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span> </div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  <span class="comment">// Get the counter UIDs and calculate the max counter UID</span></div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  std::vector<uint16_t> counterUids = <a class="code" href="namespacearmnn_1_1profiling.html#a6605c82bc625fbd40f24d35edee15fe3">GetNextCounterUids</a>(uid, deviceCores);</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  BOOST_ASSERT(!counterUids.empty());</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  uint16_t maxCounterUid = deviceCores <= 1 ? counterUids.front() : counterUids.back();</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> </div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <span class="comment">// Get the counter units</span></div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="keyword">const</span> std::string unitsValue = units.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? units.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : <span class="stringliteral">""</span>;</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span> </div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <span class="comment">// Create the counter</span></div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <a class="code" href="namespacearmnn_1_1profiling.html#a38de53725b010ce63ea7557bb1d270e7">CounterPtr</a> counter = std::make_shared<Counter>(armnn::profiling::BACKEND_ID,</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  counterUids.front(),</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  maxCounterUid,</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  counterClass,</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  interpolation,</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  multiplier,</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  name,</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  description,</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  unitsValue,</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  deviceUidValue,</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  counterSetUidValue);</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  BOOST_ASSERT(counter);</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span> </div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <span class="comment">// Get the raw counter pointer</span></div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <span class="keyword">const</span> Counter* counterPtr = counter.get();</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  BOOST_ASSERT(counterPtr);</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> </div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="comment">// Process multiple counters if necessary</span></div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="keywordflow">for</span> (uint16_t counterUid : counterUids)</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  {</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  <span class="comment">// Connect the counter to the parent category</span></div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  Category* parentCategory = <span class="keyword">const_cast<</span>Category*<span class="keyword">></span>(<a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a739170f2a39056dd19a09216092fd089">GetCategory</a>(parentCategoryName));</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  BOOST_ASSERT(parentCategory);</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  parentCategory->m_Counters.push_back(counterUid);</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span> </div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  <span class="comment">// Register the counter</span></div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  m_Counters.insert(std::make_pair(counterUid, counter));</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  }</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span> </div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <span class="keywordflow">return</span> counterPtr;</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_a6605c82bc625fbd40f24d35edee15fe3"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a6605c82bc625fbd40f24d35edee15fe3">armnn::profiling::GetNextCounterUids</a></div><div class="ttdeci">std::vector< uint16_t > GetNextCounterUids(uint16_t firstUid, uint16_t cores)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00074">ProfilingUtils.cpp:74</a></div></div> |
| 709 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a38de53725b010ce63ea7557bb1d270e7"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a38de53725b010ce63ea7557bb1d270e7">armnn::profiling::CounterPtr</a></div><div class="ttdeci">std::shared_ptr< Counter > CounterPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00034">ICounterDirectory.hpp:34</a></div></div> |
| 710 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_html_a739170f2a39056dd19a09216092fd089"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a739170f2a39056dd19a09216092fd089">armnn::profiling::MockCounterDirectory::GetCategory</a></div><div class="ttdeci">const Category * GetCategory(const std::string &name) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.html#l00609">ProfilingMocks.hpp:609</a></div></div> |
| 711 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
| 712 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch< std::is_reference< T >::value, T >::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 713 | </div><!-- fragment --> |
| 714 | </div> |
| 715 | </div> |
| 716 | <a id="a7992a22b56b3a9ffadd8937d925116a5"></a> |
| 717 | <h2 class="memtitle"><span class="permalink"><a href="#a7992a22b56b3a9ffadd8937d925116a5">◆ </a></span>RegisterCounterSet()</h2> |
| 718 | |
| 719 | <div class="memitem"> |
| 720 | <div class="memproto"> |
| 721 | <table class="mlabels"> |
| 722 | <tr> |
| 723 | <td class="mlabels-left"> |
| 724 | <table class="memname"> |
| 725 | <tr> |
| 726 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.html">CounterSet</a>* RegisterCounterSet </td> |
| 727 | <td>(</td> |
| 728 | <td class="paramtype">const std::string & </td> |
| 729 | <td class="paramname"><em>counterSetName</em>, </td> |
| 730 | </tr> |
| 731 | <tr> |
| 732 | <td class="paramkey"></td> |
| 733 | <td></td> |
| 734 | <td class="paramtype">uint16_t </td> |
| 735 | <td class="paramname"><em>count</em> = <code>0</code>, </td> |
| 736 | </tr> |
| 737 | <tr> |
| 738 | <td class="paramkey"></td> |
| 739 | <td></td> |
| 740 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< std::string > & </td> |
| 741 | <td class="paramname"><em>parentCategoryName</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code> </td> |
| 742 | </tr> |
| 743 | <tr> |
| 744 | <td></td> |
| 745 | <td>)</td> |
| 746 | <td></td><td></td> |
| 747 | </tr> |
| 748 | </table> |
| 749 | </td> |
| 750 | <td class="mlabels-right"> |
| 751 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 752 | </tr> |
| 753 | </table> |
| 754 | </div><div class="memdoc"> |
| 755 | |
| 756 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00500">500</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 757 | |
| 758 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.html#l00054">armnn::profiling::GetNextUid()</a>, and <a class="el" href="_i_counter_directory_8hpp_source.html#l00064">Category::m_CounterSetUid</a>.</p> |
| 759 | |
| 760 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01646">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 761 | <div class="fragment"><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  {</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <span class="comment">// Get the counter set UID</span></div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  uint16_t counterSetUid = <a class="code" href="namespacearmnn_1_1profiling.html#a982b094fe2faa67a3560cdaf3901d0f8">GetNextUid</a>();</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span> </div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="comment">// Create the counter set</span></div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <a class="code" href="namespacearmnn_1_1profiling.html#abaedc7fcb8ecb2e086482afe10737fb7">CounterSetPtr</a> counterSet = std::make_unique<CounterSet>(counterSetUid, counterSetName, count);</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  BOOST_ASSERT(counterSet);</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span> </div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="comment">// Get the raw counter set pointer</span></div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <span class="keyword">const</span> CounterSet* counterSetPtr = counterSet.get();</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  BOOST_ASSERT(counterSetPtr);</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> </div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <span class="comment">// Register the counter set</span></div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  m_CounterSets.insert(std::make_pair(counterSetUid, std::move(counterSet)));</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span> </div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <span class="comment">// Connect the counter set to the parent category, if required</span></div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keywordflow">if</span> (parentCategoryName.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>())</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  {</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="comment">// Set the counter set UID in the parent category</span></div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  Category* parentCategory = <span class="keyword">const_cast<</span>Category*<span class="keyword">></span>(<a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a739170f2a39056dd19a09216092fd089">GetCategory</a>(parentCategoryName.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>()));</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  BOOST_ASSERT(parentCategory);</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  parentCategory->m_CounterSetUid = counterSetUid;</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  }</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span> </div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">return</span> counterSetPtr;</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_abaedc7fcb8ecb2e086482afe10737fb7"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#abaedc7fcb8ecb2e086482afe10737fb7">armnn::profiling::CounterSetPtr</a></div><div class="ttdeci">std::unique_ptr< CounterSet > CounterSetPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00033">ICounterDirectory.hpp:33</a></div></div> |
| 762 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a982b094fe2faa67a3560cdaf3901d0f8"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a982b094fe2faa67a3560cdaf3901d0f8">armnn::profiling::GetNextUid</a></div><div class="ttdeci">uint16_t GetNextUid(bool peekOnly)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00054">ProfilingUtils.cpp:54</a></div></div> |
| 763 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_html_a739170f2a39056dd19a09216092fd089"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a739170f2a39056dd19a09216092fd089">armnn::profiling::MockCounterDirectory::GetCategory</a></div><div class="ttdeci">const Category * GetCategory(const std::string &name) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.html#l00609">ProfilingMocks.hpp:609</a></div></div> |
| 764 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
| 765 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch< std::is_reference< T >::value, T >::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 766 | </div><!-- fragment --> |
| 767 | </div> |
| 768 | </div> |
| 769 | <a id="ab85324af429748fe06a422c18af6de41"></a> |
| 770 | <h2 class="memtitle"><span class="permalink"><a href="#ab85324af429748fe06a422c18af6de41">◆ </a></span>RegisterDevice()</h2> |
| 771 | |
| 772 | <div class="memitem"> |
| 773 | <div class="memproto"> |
| 774 | <table class="mlabels"> |
| 775 | <tr> |
| 776 | <td class="mlabels-left"> |
| 777 | <table class="memname"> |
| 778 | <tr> |
| 779 | <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_device.html">Device</a>* RegisterDevice </td> |
| 780 | <td>(</td> |
| 781 | <td class="paramtype">const std::string & </td> |
| 782 | <td class="paramname"><em>deviceName</em>, </td> |
| 783 | </tr> |
| 784 | <tr> |
| 785 | <td class="paramkey"></td> |
| 786 | <td></td> |
| 787 | <td class="paramtype">uint16_t </td> |
| 788 | <td class="paramname"><em>cores</em> = <code>0</code>, </td> |
| 789 | </tr> |
| 790 | <tr> |
| 791 | <td class="paramkey"></td> |
| 792 | <td></td> |
| 793 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< std::string > & </td> |
| 794 | <td class="paramname"><em>parentCategoryName</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a>()</code> </td> |
| 795 | </tr> |
| 796 | <tr> |
| 797 | <td></td> |
| 798 | <td>)</td> |
| 799 | <td></td><td></td> |
| 800 | </tr> |
| 801 | </table> |
| 802 | </td> |
| 803 | <td class="mlabels-right"> |
| 804 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 805 | </tr> |
| 806 | </table> |
| 807 | </div><div class="memdoc"> |
| 808 | |
| 809 | <p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.html#l00470">470</a> of file <a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a>.</p> |
| 810 | |
| 811 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.html#l00054">armnn::profiling::GetNextUid()</a>, and <a class="el" href="_i_counter_directory_8hpp_source.html#l00063">Category::m_DeviceUid</a>.</p> |
| 812 | |
| 813 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.html#l01628">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 814 | <div class="fragment"><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  {</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="comment">// Get the device UID</span></div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  uint16_t deviceUid = <a class="code" href="namespacearmnn_1_1profiling.html#a982b094fe2faa67a3560cdaf3901d0f8">GetNextUid</a>();</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="comment">// Create the device</span></div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <a class="code" href="namespacearmnn_1_1profiling.html#a22a0d730c0d08335585e6e8999be8f8b">DevicePtr</a> device = std::make_unique<Device>(deviceUid, deviceName, cores);</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  BOOST_ASSERT(device);</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="comment">// Get the raw device pointer</span></div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keyword">const</span> Device* devicePtr = device.get();</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  BOOST_ASSERT(devicePtr);</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <span class="comment">// Register the device</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  m_Devices.insert(std::make_pair(deviceUid, std::move(device)));</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span> </div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="comment">// Connect the counter set to the parent category, if required</span></div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keywordflow">if</span> (parentCategoryName.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>())</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  {</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <span class="comment">// Set the counter set UID in the parent category</span></div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  Category* parentCategory = <span class="keyword">const_cast<</span>Category*<span class="keyword">></span>(<a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a739170f2a39056dd19a09216092fd089">GetCategory</a>(parentCategoryName.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>()));</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  BOOST_ASSERT(parentCategory);</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  parentCategory->m_DeviceUid = deviceUid;</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  }</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span> </div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="keywordflow">return</span> devicePtr;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  }</div><div class="ttc" id="namespacearmnn_1_1profiling_html_a982b094fe2faa67a3560cdaf3901d0f8"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a982b094fe2faa67a3560cdaf3901d0f8">armnn::profiling::GetNextUid</a></div><div class="ttdeci">uint16_t GetNextUid(bool peekOnly)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.html#l00054">ProfilingUtils.cpp:54</a></div></div> |
| 815 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_html_a739170f2a39056dd19a09216092fd089"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.html#a739170f2a39056dd19a09216092fd089">armnn::profiling::MockCounterDirectory::GetCategory</a></div><div class="ttdeci">const Category * GetCategory(const std::string &name) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.html#l00609">ProfilingMocks.hpp:609</a></div></div> |
| 816 | <div class="ttc" id="namespacearmnn_1_1profiling_html_a22a0d730c0d08335585e6e8999be8f8b"><div class="ttname"><a href="namespacearmnn_1_1profiling.html#a22a0d730c0d08335585e6e8999be8f8b">armnn::profiling::DevicePtr</a></div><div class="ttdeci">std::unique_ptr< Device > DevicePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.html#l00032">ICounterDirectory.hpp:32</a></div></div> |
| 817 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
| 818 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch< std::is_reference< T >::value, T >::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 819 | </div><!-- fragment --> |
| 820 | </div> |
| 821 | </div> |
| 822 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 823 | <li>src/profiling/test/<a class="el" href="_profiling_mocks_8hpp_source.html">ProfilingMocks.hpp</a></li> |
| 824 | </ul> |
| 825 | </div><!-- contents --> |
| 826 | </div><!-- doc-content --> |
| 827 | <!-- start footer part --> |
| 828 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 829 | <ul> |
| 830 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="namespacearmnn_1_1profiling.html">profiling</a></li><li class="navelem"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.html">MockCounterDirectory</a></li> |
| 831 | <li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by |
| 832 | <a href="http://www.doxygen.org/index.html"> |
| 833 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 834 | </ul> |
| 835 | </div> |
| 836 | </body> |
| 837 | </html> |