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: CounterIdMap 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_counter_id_map.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_counter_id_map-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">CounterIdMap Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_counter_id_map_8hpp_source.html">CounterIdMap.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for CounterIdMap:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1profiling_1_1_counter_id_map.png" usemap="#CounterIdMap_map" alt=""/> |
| 97 | <map id="CounterIdMap_map" name="CounterIdMap_map"> |
| 98 | <area href="classarmnn_1_1profiling_1_1_i_counter_mappings.html" alt="ICounterMappings" shape="rect" coords="0,0,155,24"/> |
| 99 | <area href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.html" alt="IRegisterCounterMapping" shape="rect" coords="165,0,320,24"/> |
| 100 | </map> |
| 101 | </div></div> |
| 102 | <table class="memberdecls"> |
| 103 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 104 | Public Member Functions</h2></td></tr> |
| 105 | <tr class="memitem:ad019be329c6a01c1d3fb93239f2ecded"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html#ad019be329c6a01c1d3fb93239f2ecded">CounterIdMap</a> ()=default</td></tr> |
| 106 | <tr class="separator:ad019be329c6a01c1d3fb93239f2ecded"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 | <tr class="memitem:ad7cf6a514144f22d94542b8d7b833640"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html#ad7cf6a514144f22d94542b8d7b833640">~CounterIdMap</a> ()</td></tr> |
| 108 | <tr class="separator:ad7cf6a514144f22d94542b8d7b833640"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:a4c014af62ced747fc2ebbbc312f9845f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html#a4c014af62ced747fc2ebbbc312f9845f">RegisterMapping</a> (uint16_t globalCounterId, uint16_t backendCounterId, const <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> &backendId) override</td></tr> |
| 110 | <tr class="separator:a4c014af62ced747fc2ebbbc312f9845f"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:af82f4acaed7bb39d568e689a9caa63d5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html#af82f4acaed7bb39d568e689a9caa63d5">Reset</a> () override</td></tr> |
| 112 | <tr class="separator:af82f4acaed7bb39d568e689a9caa63d5"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:a40f23e39c9e564d9276caa8d8331aa47"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html#a40f23e39c9e564d9276caa8d8331aa47">GetGlobalId</a> (uint16_t backendCounterId, const <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> &backendId) const override</td></tr> |
| 114 | <tr class="separator:a40f23e39c9e564d9276caa8d8331aa47"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a332eb20cab18c17fb869168dc493514e"><td class="memItemLeft" align="right" valign="top">const std::pair< uint16_t, <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html#a332eb20cab18c17fb869168dc493514e">GetBackendId</a> (uint16_t globalCounterId) const override</td></tr> |
| 116 | <tr class="separator:a332eb20cab18c17fb869168dc493514e"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_counter_mappings"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_counter_mappings')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.html">ICounterMappings</a></td></tr> |
| 118 | <tr class="memitem:aff478703ba6af2360a04c1f0e00911b4 inherit pub_methods_classarmnn_1_1profiling_1_1_i_counter_mappings"><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_mappings.html#aff478703ba6af2360a04c1f0e00911b4">~ICounterMappings</a> ()</td></tr> |
| 119 | <tr class="separator:aff478703ba6af2360a04c1f0e00911b4 inherit pub_methods_classarmnn_1_1profiling_1_1_i_counter_mappings"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_register_counter_mapping"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_register_counter_mapping')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.html">IRegisterCounterMapping</a></td></tr> |
| 121 | <tr class="memitem:a9cd06e75fb10218f2decbd4117af4a8e inherit pub_methods_classarmnn_1_1profiling_1_1_i_register_counter_mapping"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.html#a9cd06e75fb10218f2decbd4117af4a8e">~IRegisterCounterMapping</a> ()</td></tr> |
| 122 | <tr class="separator:a9cd06e75fb10218f2decbd4117af4a8e inherit pub_methods_classarmnn_1_1profiling_1_1_i_register_counter_mapping"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | </table> |
| 124 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 125 | <div class="textblock"> |
| 126 | <p class="definition">Definition at line <a class="el" href="_counter_id_map_8hpp_source.html#l00033">33</a> of file <a class="el" href="_counter_id_map_8hpp_source.html">CounterIdMap.hpp</a>.</p> |
| 127 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 128 | <a id="ad019be329c6a01c1d3fb93239f2ecded"></a> |
| 129 | <h2 class="memtitle"><span class="permalink"><a href="#ad019be329c6a01c1d3fb93239f2ecded">◆ </a></span>CounterIdMap()</h2> |
| 130 | |
| 131 | <div class="memitem"> |
| 132 | <div class="memproto"> |
| 133 | <table class="mlabels"> |
| 134 | <tr> |
| 135 | <td class="mlabels-left"> |
| 136 | <table class="memname"> |
| 137 | <tr> |
| 138 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html">CounterIdMap</a> </td> |
| 139 | <td>(</td> |
| 140 | <td class="paramname"></td><td>)</td> |
| 141 | <td></td> |
| 142 | </tr> |
| 143 | </table> |
| 144 | </td> |
| 145 | <td class="mlabels-right"> |
| 146 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 147 | </tr> |
| 148 | </table> |
| 149 | </div><div class="memdoc"> |
| 150 | |
| 151 | </div> |
| 152 | </div> |
| 153 | <a id="ad7cf6a514144f22d94542b8d7b833640"></a> |
| 154 | <h2 class="memtitle"><span class="permalink"><a href="#ad7cf6a514144f22d94542b8d7b833640">◆ </a></span>~CounterIdMap()</h2> |
| 155 | |
| 156 | <div class="memitem"> |
| 157 | <div class="memproto"> |
| 158 | <table class="mlabels"> |
| 159 | <tr> |
| 160 | <td class="mlabels-left"> |
| 161 | <table class="memname"> |
| 162 | <tr> |
| 163 | <td class="memname">virtual ~<a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.html">CounterIdMap</a> </td> |
| 164 | <td>(</td> |
| 165 | <td class="paramname"></td><td>)</td> |
| 166 | <td></td> |
| 167 | </tr> |
| 168 | </table> |
| 169 | </td> |
| 170 | <td class="mlabels-right"> |
| 171 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 172 | </tr> |
| 173 | </table> |
| 174 | </div><div class="memdoc"> |
| 175 | |
| 176 | <p class="definition">Definition at line <a class="el" href="_counter_id_map_8hpp_source.html#l00038">38</a> of file <a class="el" href="_counter_id_map_8hpp_source.html">CounterIdMap.hpp</a>.</p> |
| 177 | |
| 178 | <p class="reference">References <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.html#a8c03a58ac20b34e541bad78df16859e8">ICounterMappings::GetBackendId()</a>, and <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.html#a83e6db8d13e21158334ca6722b20fa67">ICounterMappings::GetGlobalId()</a>.</p> |
| 179 | <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {}</div></div><!-- fragment --> |
| 180 | </div> |
| 181 | </div> |
| 182 | <h2 class="groupheader">Member Function Documentation</h2> |
| 183 | <a id="a332eb20cab18c17fb869168dc493514e"></a> |
| 184 | <h2 class="memtitle"><span class="permalink"><a href="#a332eb20cab18c17fb869168dc493514e">◆ </a></span>GetBackendId()</h2> |
| 185 | |
| 186 | <div class="memitem"> |
| 187 | <div class="memproto"> |
| 188 | <table class="mlabels"> |
| 189 | <tr> |
| 190 | <td class="mlabels-left"> |
| 191 | <table class="memname"> |
| 192 | <tr> |
| 193 | <td class="memname">const std::pair< uint16_t, <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> > & GetBackendId </td> |
| 194 | <td>(</td> |
| 195 | <td class="paramtype">uint16_t </td> |
| 196 | <td class="paramname"><em>globalCounterId</em></td><td>)</td> |
| 197 | <td> const</td> |
| 198 | </tr> |
| 199 | </table> |
| 200 | </td> |
| 201 | <td class="mlabels-right"> |
| 202 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 203 | </tr> |
| 204 | </table> |
| 205 | </div><div class="memdoc"> |
| 206 | |
| 207 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.html#a8c03a58ac20b34e541bad78df16859e8">ICounterMappings</a>.</p> |
| 208 | |
| 209 | <p class="definition">Definition at line <a class="el" href="_counter_id_map_8cpp_source.html#l00043">43</a> of file <a class="el" href="_counter_id_map_8cpp_source.html">CounterIdMap.cpp</a>.</p> |
| 210 | |
| 211 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.html#l03190">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 212 | <div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">auto</span> it = m_GlobalCounterIdMap.find(globalCounterId);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">if</span> (it == m_GlobalCounterIdMap.end())</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  std::stringstream ss;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  ss << <span class="stringliteral">"No Global Counter ID ["</span> << globalCounterId << <span class="stringliteral">"] registered"</span>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(ss.str());</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> it->second;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div><div class="ttc" id="classarmnn_1_1_exception_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00046">Exceptions.hpp:46</a></div></div> |
| 213 | </div><!-- fragment --> |
| 214 | </div> |
| 215 | </div> |
| 216 | <a id="a40f23e39c9e564d9276caa8d8331aa47"></a> |
| 217 | <h2 class="memtitle"><span class="permalink"><a href="#a40f23e39c9e564d9276caa8d8331aa47">◆ </a></span>GetGlobalId()</h2> |
| 218 | |
| 219 | <div class="memitem"> |
| 220 | <div class="memproto"> |
| 221 | <table class="mlabels"> |
| 222 | <tr> |
| 223 | <td class="mlabels-left"> |
| 224 | <table class="memname"> |
| 225 | <tr> |
| 226 | <td class="memname">uint16_t GetGlobalId </td> |
| 227 | <td>(</td> |
| 228 | <td class="paramtype">uint16_t </td> |
| 229 | <td class="paramname"><em>backendCounterId</em>, </td> |
| 230 | </tr> |
| 231 | <tr> |
| 232 | <td class="paramkey"></td> |
| 233 | <td></td> |
| 234 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> & </td> |
| 235 | <td class="paramname"><em>backendId</em> </td> |
| 236 | </tr> |
| 237 | <tr> |
| 238 | <td></td> |
| 239 | <td>)</td> |
| 240 | <td></td><td> const</td> |
| 241 | </tr> |
| 242 | </table> |
| 243 | </td> |
| 244 | <td class="mlabels-right"> |
| 245 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 246 | </tr> |
| 247 | </table> |
| 248 | </div><div class="memdoc"> |
| 249 | |
| 250 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.html#a83e6db8d13e21158334ca6722b20fa67">ICounterMappings</a>.</p> |
| 251 | |
| 252 | <p class="definition">Definition at line <a class="el" href="_counter_id_map_8cpp_source.html#l00030">30</a> of file <a class="el" href="_counter_id_map_8cpp_source.html">CounterIdMap.cpp</a>.</p> |
| 253 | |
| 254 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.html#l03190">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 255 | <div class="fragment"><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>  std::pair<uint16_t, armnn::BackendId> backendIdPair(backendCounterId, backendId);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">auto</span> it = m_BackendCounterIdMap.find(backendIdPair);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">if</span> (it == m_BackendCounterIdMap.end())</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  std::stringstream ss;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  ss << <span class="stringliteral">"No Backend Counter ["</span> << backendIdPair.second << <span class="stringliteral">":"</span> << backendIdPair.first << <span class="stringliteral">"] registered"</span>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(ss.str());</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> it->second;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> }</div><div class="ttc" id="classarmnn_1_1_exception_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00046">Exceptions.hpp:46</a></div></div> |
| 256 | </div><!-- fragment --> |
| 257 | </div> |
| 258 | </div> |
| 259 | <a id="a4c014af62ced747fc2ebbbc312f9845f"></a> |
| 260 | <h2 class="memtitle"><span class="permalink"><a href="#a4c014af62ced747fc2ebbbc312f9845f">◆ </a></span>RegisterMapping()</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">void RegisterMapping </td> |
| 270 | <td>(</td> |
| 271 | <td class="paramtype">uint16_t </td> |
| 272 | <td class="paramname"><em>globalCounterId</em>, </td> |
| 273 | </tr> |
| 274 | <tr> |
| 275 | <td class="paramkey"></td> |
| 276 | <td></td> |
| 277 | <td class="paramtype">uint16_t </td> |
| 278 | <td class="paramname"><em>backendCounterId</em>, </td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td class="paramkey"></td> |
| 282 | <td></td> |
| 283 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> & </td> |
| 284 | <td class="paramname"><em>backendId</em> </td> |
| 285 | </tr> |
| 286 | <tr> |
| 287 | <td></td> |
| 288 | <td>)</td> |
| 289 | <td></td><td></td> |
| 290 | </tr> |
| 291 | </table> |
| 292 | </td> |
| 293 | <td class="mlabels-right"> |
| 294 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 295 | </tr> |
| 296 | </table> |
| 297 | </div><div class="memdoc"> |
| 298 | |
| 299 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.html#ae8ae959752e05d110a66f590dfb18faa">IRegisterCounterMapping</a>.</p> |
| 300 | |
| 301 | <p class="definition">Definition at line <a class="el" href="_counter_id_map_8cpp_source.html#l00015">15</a> of file <a class="el" href="_counter_id_map_8cpp_source.html">CounterIdMap.cpp</a>.</p> |
| 302 | |
| 303 | <p class="reference">Referenced by <a class="el" href="_backend_profiling_tests_8cpp_source.html#l00136">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 304 | <div class="fragment"><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  std::pair<uint16_t, armnn::BackendId> backendIdPair(backendCounterId, backendId);</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  m_GlobalCounterIdMap[globalCounterId] = backendIdPair;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  m_BackendCounterIdMap[backendIdPair] = globalCounterId;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> }</div></div><!-- fragment --> |
| 305 | </div> |
| 306 | </div> |
| 307 | <a id="af82f4acaed7bb39d568e689a9caa63d5"></a> |
| 308 | <h2 class="memtitle"><span class="permalink"><a href="#af82f4acaed7bb39d568e689a9caa63d5">◆ </a></span>Reset()</h2> |
| 309 | |
| 310 | <div class="memitem"> |
| 311 | <div class="memproto"> |
| 312 | <table class="mlabels"> |
| 313 | <tr> |
| 314 | <td class="mlabels-left"> |
| 315 | <table class="memname"> |
| 316 | <tr> |
| 317 | <td class="memname">void Reset </td> |
| 318 | <td>(</td> |
| 319 | <td class="paramname"></td><td>)</td> |
| 320 | <td></td> |
| 321 | </tr> |
| 322 | </table> |
| 323 | </td> |
| 324 | <td class="mlabels-right"> |
| 325 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 326 | </tr> |
| 327 | </table> |
| 328 | </div><div class="memdoc"> |
| 329 | |
| 330 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.html#a43a787400d2a563b9eee1a149225c18a">IRegisterCounterMapping</a>.</p> |
| 331 | |
| 332 | <p class="definition">Definition at line <a class="el" href="_counter_id_map_8cpp_source.html#l00024">24</a> of file <a class="el" href="_counter_id_map_8cpp_source.html">CounterIdMap.cpp</a>.</p> |
| 333 | |
| 334 | <p class="reference">Referenced by <a class="el" href="_profiling_service_8cpp_source.html#l00290">ProfilingService::GetSendTimelinePacket()</a>.</p> |
| 335 | <div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  m_GlobalCounterIdMap.clear();</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  m_BackendCounterIdMap.clear();</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> }</div></div><!-- fragment --> |
| 336 | </div> |
| 337 | </div> |
| 338 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 339 | <li>src/profiling/<a class="el" href="_counter_id_map_8hpp_source.html">CounterIdMap.hpp</a></li> |
| 340 | <li>src/profiling/<a class="el" href="_counter_id_map_8cpp_source.html">CounterIdMap.cpp</a></li> |
| 341 | </ul> |
| 342 | </div><!-- contents --> |
| 343 | </div><!-- doc-content --> |
| 344 | <!-- start footer part --> |
| 345 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 346 | <ul> |
| 347 | <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_counter_id_map.html">CounterIdMap</a></li> |
| 348 | <li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by |
| 349 | <a href="http://www.doxygen.org/index.html"> |
| 350 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 351 | </ul> |
| 352 | </div> |
| 353 | </body> |
| 354 | </html> |