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: MockBackendProfilingContext 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_1_mock_backend_profiling_context.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_1_mock_backend_profiling_context-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">MockBackendProfilingContext Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for MockBackendProfilingContext:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1_mock_backend_profiling_context.png" usemap="#MockBackendProfilingContext_map" alt=""/> |
| 97 | <map id="MockBackendProfilingContext_map" name="MockBackendProfilingContext_map"> |
| 98 | <area href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html" alt="IBackendProfilingContext" shape="rect" coords="0,0,181,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:aadbea1ff4262aeb6eda84517253a5958"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html#aadbea1ff4262aeb6eda84517253a5958">MockBackendProfilingContext</a> (<a class="el" href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendInternal::IBackendProfilingPtr</a> &backendProfiling)</td></tr> |
| 105 | <tr class="separator:aadbea1ff4262aeb6eda84517253a5958"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <tr class="memitem:aa3bb55f59fbbaeec067b74adf9089a59"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html#aa3bb55f59fbbaeec067b74adf9089a59">~MockBackendProfilingContext</a> ()=default</td></tr> |
| 107 | <tr class="separator:aa3bb55f59fbbaeec067b74adf9089a59"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a5d24e91b1e41268d821891ced802b811"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendInternal::IBackendProfilingPtr</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html#a5d24e91b1e41268d821891ced802b811">GetBackendProfiling</a> ()</td></tr> |
| 109 | <tr class="separator:a5d24e91b1e41268d821891ced802b811"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:a6f2834ca8b2c5f299a02b4a98c91b4d6"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html#a6f2834ca8b2c5f299a02b4a98c91b4d6">RegisterCounters</a> (uint16_t currentMaxGlobalCounterId)</td></tr> |
| 111 | <tr class="separator:a6f2834ca8b2c5f299a02b4a98c91b4d6"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a85f69fcb2bf44c2689f5678a8261ba84"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_optional.html">Optional</a>< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html#a85f69fcb2bf44c2689f5678a8261ba84">ActivateCounters</a> (uint32_t capturePeriod, const std::vector< uint16_t > &counterIds)</td></tr> |
| 113 | <tr class="separator:a85f69fcb2bf44c2689f5678a8261ba84"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:a564b1c7251d4e994ff81994157ae6ffe"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="structarmnn_1_1profiling_1_1_timestamp.html">profiling::Timestamp</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html#a564b1c7251d4e994ff81994157ae6ffe">ReportCounterValues</a> ()</td></tr> |
| 115 | <tr class="separator:a564b1c7251d4e994ff81994157ae6ffe"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:adedefb2326efe87593f72e1bddc0ed1b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html#adedefb2326efe87593f72e1bddc0ed1b">EnableProfiling</a> (bool)</td></tr> |
| 117 | <tr class="separator:adedefb2326efe87593f72e1bddc0ed1b"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_backend_profiling_context"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_backend_profiling_context')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html">IBackendProfilingContext</a></td></tr> |
| 119 | <tr class="memitem:a9aeb82fc99434b8847b6274868cce79e inherit pub_methods_classarmnn_1_1profiling_1_1_i_backend_profiling_context"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html#a9aeb82fc99434b8847b6274868cce79e">~IBackendProfilingContext</a> ()</td></tr> |
| 120 | <tr class="separator:a9aeb82fc99434b8847b6274868cce79e inherit pub_methods_classarmnn_1_1profiling_1_1_i_backend_profiling_context"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | </table> |
| 122 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 123 | <div class="textblock"> |
| 124 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00029">29</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 125 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 126 | <a id="aadbea1ff4262aeb6eda84517253a5958"></a> |
| 127 | <h2 class="memtitle"><span class="permalink"><a href="#aadbea1ff4262aeb6eda84517253a5958">◆ </a></span>MockBackendProfilingContext()</h2> |
| 128 | |
| 129 | <div class="memitem"> |
| 130 | <div class="memproto"> |
| 131 | <table class="mlabels"> |
| 132 | <tr> |
| 133 | <td class="mlabels-left"> |
| 134 | <table class="memname"> |
| 135 | <tr> |
| 136 | <td class="memname"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html">MockBackendProfilingContext</a> </td> |
| 137 | <td>(</td> |
| 138 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendInternal::IBackendProfilingPtr</a> & </td> |
| 139 | <td class="paramname"><em>backendProfiling</em></td><td>)</td> |
| 140 | <td></td> |
| 141 | </tr> |
| 142 | </table> |
| 143 | </td> |
| 144 | <td class="mlabels-right"> |
| 145 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 146 | </tr> |
| 147 | </table> |
| 148 | </div><div class="memdoc"> |
| 149 | |
| 150 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00032">32</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 151 | <div class="fragment"><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  : m_BackendProfiling(std::move(backendProfiling))</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  , m_CapturePeriod(0)</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {}</div></div><!-- fragment --> |
| 152 | </div> |
| 153 | </div> |
| 154 | <a id="aa3bb55f59fbbaeec067b74adf9089a59"></a> |
| 155 | <h2 class="memtitle"><span class="permalink"><a href="#aa3bb55f59fbbaeec067b74adf9089a59">◆ </a></span>~MockBackendProfilingContext()</h2> |
| 156 | |
| 157 | <div class="memitem"> |
| 158 | <div class="memproto"> |
| 159 | <table class="mlabels"> |
| 160 | <tr> |
| 161 | <td class="mlabels-left"> |
| 162 | <table class="memname"> |
| 163 | <tr> |
| 164 | <td class="memname">~<a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html">MockBackendProfilingContext</a> </td> |
| 165 | <td>(</td> |
| 166 | <td class="paramname"></td><td>)</td> |
| 167 | <td></td> |
| 168 | </tr> |
| 169 | </table> |
| 170 | </td> |
| 171 | <td class="mlabels-right"> |
| 172 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 173 | </tr> |
| 174 | </table> |
| 175 | </div><div class="memdoc"> |
| 176 | |
| 177 | </div> |
| 178 | </div> |
| 179 | <h2 class="groupheader">Member Function Documentation</h2> |
| 180 | <a id="a85f69fcb2bf44c2689f5678a8261ba84"></a> |
| 181 | <h2 class="memtitle"><span class="permalink"><a href="#a85f69fcb2bf44c2689f5678a8261ba84">◆ </a></span>ActivateCounters()</h2> |
| 182 | |
| 183 | <div class="memitem"> |
| 184 | <div class="memproto"> |
| 185 | <table class="mlabels"> |
| 186 | <tr> |
| 187 | <td class="mlabels-left"> |
| 188 | <table class="memname"> |
| 189 | <tr> |
| 190 | <td class="memname"><a class="el" href="classarmnn_1_1_optional.html">Optional</a><std::string> ActivateCounters </td> |
| 191 | <td>(</td> |
| 192 | <td class="paramtype">uint32_t </td> |
| 193 | <td class="paramname"><em>capturePeriod</em>, </td> |
| 194 | </tr> |
| 195 | <tr> |
| 196 | <td class="paramkey"></td> |
| 197 | <td></td> |
| 198 | <td class="paramtype">const std::vector< uint16_t > & </td> |
| 199 | <td class="paramname"><em>counterIds</em> </td> |
| 200 | </tr> |
| 201 | <tr> |
| 202 | <td></td> |
| 203 | <td>)</td> |
| 204 | <td></td><td></td> |
| 205 | </tr> |
| 206 | </table> |
| 207 | </td> |
| 208 | <td class="mlabels-right"> |
| 209 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 210 | </tr> |
| 211 | </table> |
| 212 | </div><div class="memdoc"> |
| 213 | |
| 214 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html#a73cd771233a88545d3623f35c1fad4d4">IBackendProfilingContext</a>.</p> |
| 215 | |
| 216 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00063">63</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 217 | |
| 218 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.html#l00050">m_CapturePeriod</a>.</p> |
| 219 | <div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (capturePeriod == 0 || counterIds.size() == 0)</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  m_ActiveCounters.clear();</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (capturePeriod == 15939u)</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_optional.html">armnn::Optional<std::string></a>(<span class="stringliteral">"ActivateCounters example test error"</span>);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  m_CapturePeriod = capturePeriod;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  m_ActiveCounters = counterIds;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_optional.html">armnn::Optional<std::string></a>();</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div><div class="ttc" id="classarmnn_1_1_optional_html"><div class="ttname"><a href="classarmnn_1_1_optional.html">armnn::Optional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00270">Optional.hpp:270</a></div></div> |
| 220 | </div><!-- fragment --> |
| 221 | </div> |
| 222 | </div> |
| 223 | <a id="adedefb2326efe87593f72e1bddc0ed1b"></a> |
| 224 | <h2 class="memtitle"><span class="permalink"><a href="#adedefb2326efe87593f72e1bddc0ed1b">◆ </a></span>EnableProfiling()</h2> |
| 225 | |
| 226 | <div class="memitem"> |
| 227 | <div class="memproto"> |
| 228 | <table class="mlabels"> |
| 229 | <tr> |
| 230 | <td class="mlabels-left"> |
| 231 | <table class="memname"> |
| 232 | <tr> |
| 233 | <td class="memname">void EnableProfiling </td> |
| 234 | <td>(</td> |
| 235 | <td class="paramtype">bool </td> |
| 236 | <td class="paramname"></td><td>)</td> |
| 237 | <td></td> |
| 238 | </tr> |
| 239 | </table> |
| 240 | </td> |
| 241 | <td class="mlabels-right"> |
| 242 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 243 | </tr> |
| 244 | </table> |
| 245 | </div><div class="memdoc"> |
| 246 | |
| 247 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html#a5589708f9f5ad739add36e631a3817b5">IBackendProfilingContext</a>.</p> |
| 248 | |
| 249 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00091">91</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 250 | |
| 251 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.html#l00050">m_CapturePeriod</a>.</p> |
| 252 | <div class="fragment"><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {}</div></div><!-- fragment --> |
| 253 | </div> |
| 254 | </div> |
| 255 | <a id="a5d24e91b1e41268d821891ced802b811"></a> |
| 256 | <h2 class="memtitle"><span class="permalink"><a href="#a5d24e91b1e41268d821891ced802b811">◆ </a></span>GetBackendProfiling()</h2> |
| 257 | |
| 258 | <div class="memitem"> |
| 259 | <div class="memproto"> |
| 260 | <table class="mlabels"> |
| 261 | <tr> |
| 262 | <td class="mlabels-left"> |
| 263 | <table class="memname"> |
| 264 | <tr> |
| 265 | <td class="memname"><a class="el" href="classarmnn_1_1_i_backend_internal.html#a34ab83489d1c5043b2b9b4a2ec13c481">IBackendInternal::IBackendProfilingPtr</a>& GetBackendProfiling </td> |
| 266 | <td>(</td> |
| 267 | <td class="paramname"></td><td>)</td> |
| 268 | <td></td> |
| 269 | </tr> |
| 270 | </table> |
| 271 | </td> |
| 272 | <td class="mlabels-right"> |
| 273 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 274 | </tr> |
| 275 | </table> |
| 276 | </div><div class="memdoc"> |
| 277 | |
| 278 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00039">39</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 279 | |
| 280 | <p class="reference">Referenced by <a class="el" href="_backend_profiling_tests_8cpp_source.html#l00446">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 281 | <div class="fragment"><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> m_BackendProfiling;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div></div><!-- fragment --> |
| 282 | </div> |
| 283 | </div> |
| 284 | <a id="a6f2834ca8b2c5f299a02b4a98c91b4d6"></a> |
| 285 | <h2 class="memtitle"><span class="permalink"><a href="#a6f2834ca8b2c5f299a02b4a98c91b4d6">◆ </a></span>RegisterCounters()</h2> |
| 286 | |
| 287 | <div class="memitem"> |
| 288 | <div class="memproto"> |
| 289 | <table class="mlabels"> |
| 290 | <tr> |
| 291 | <td class="mlabels-left"> |
| 292 | <table class="memname"> |
| 293 | <tr> |
| 294 | <td class="memname">uint16_t RegisterCounters </td> |
| 295 | <td>(</td> |
| 296 | <td class="paramtype">uint16_t </td> |
| 297 | <td class="paramname"><em>currentMaxGlobalCounterId</em></td><td>)</td> |
| 298 | <td></td> |
| 299 | </tr> |
| 300 | </table> |
| 301 | </td> |
| 302 | <td class="mlabels-right"> |
| 303 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 304 | </tr> |
| 305 | </table> |
| 306 | </div><div class="memdoc"> |
| 307 | |
| 308 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html#a7877cff32ce673cece82591034759a62">IBackendProfilingContext</a>.</p> |
| 309 | |
| 310 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00044">44</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 311 | <div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  std::unique_ptr<profiling::IRegisterBackendCounters> counterRegistrar =</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  m_BackendProfiling->GetCounterRegistrationInterface(currentMaxGlobalCounterId);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  std::string categoryName(<span class="stringliteral">"MockCounters"</span>);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  counterRegistrar->RegisterCategory(categoryName);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  uint16_t nextMaxGlobalCounterId =</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  counterRegistrar->RegisterCounter(0, categoryName, 0, 0, 1.f, <span class="stringliteral">"Mock Counter One"</span>, <span class="stringliteral">"Some notional counter"</span>);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  nextMaxGlobalCounterId = counterRegistrar->RegisterCounter(1, categoryName, 0, 0, 1.f, <span class="stringliteral">"Mock Counter Two"</span>,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="stringliteral">"Another notional counter"</span>);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  std::string units(<span class="stringliteral">"microseconds"</span>);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  nextMaxGlobalCounterId = counterRegistrar->RegisterCounter(2, categoryName, 0, 0, 1.f, <span class="stringliteral">"Mock MultiCore Counter"</span>,</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="stringliteral">"A dummy four core counter"</span>, units, 4);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> nextMaxGlobalCounterId;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div></div><!-- fragment --> |
| 312 | </div> |
| 313 | </div> |
| 314 | <a id="a564b1c7251d4e994ff81994157ae6ffe"></a> |
| 315 | <h2 class="memtitle"><span class="permalink"><a href="#a564b1c7251d4e994ff81994157ae6ffe">◆ </a></span>ReportCounterValues()</h2> |
| 316 | |
| 317 | <div class="memitem"> |
| 318 | <div class="memproto"> |
| 319 | <table class="mlabels"> |
| 320 | <tr> |
| 321 | <td class="mlabels-left"> |
| 322 | <table class="memname"> |
| 323 | <tr> |
| 324 | <td class="memname">std::vector<<a class="el" href="structarmnn_1_1profiling_1_1_timestamp.html">profiling::Timestamp</a>> ReportCounterValues </td> |
| 325 | <td>(</td> |
| 326 | <td class="paramname"></td><td>)</td> |
| 327 | <td></td> |
| 328 | </tr> |
| 329 | </table> |
| 330 | </td> |
| 331 | <td class="mlabels-right"> |
| 332 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 333 | </tr> |
| 334 | </table> |
| 335 | </div><div class="memdoc"> |
| 336 | |
| 337 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.html#a5a1d4c34ead611b06c3eae53f2ff47e8">IBackendProfilingContext</a>.</p> |
| 338 | |
| 339 | <p class="definition">Definition at line <a class="el" href="_mock_backend_8hpp_source.html#l00078">78</a> of file <a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a>.</p> |
| 340 | |
| 341 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.html#l00050">m_CapturePeriod</a>.</p> |
| 342 | <div class="fragment"><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  std::vector<profiling::CounterValue> counterValues;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> counterId : m_ActiveCounters)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  counterValues.emplace_back(profiling::CounterValue{ counterId, counterId + 1u });</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  uint64_t timestamp = m_CapturePeriod;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> { profiling::Timestamp{ timestamp, counterValues } };</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div></div><!-- fragment --> |
| 343 | </div> |
| 344 | </div> |
| 345 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 346 | <li>src/backends/backendsCommon/test/<a class="el" href="_mock_backend_8hpp_source.html">MockBackend.hpp</a></li> |
| 347 | </ul> |
| 348 | </div><!-- contents --> |
| 349 | </div><!-- doc-content --> |
| 350 | <!-- start footer part --> |
| 351 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 352 | <ul> |
| 353 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_mock_backend_profiling_context.html">MockBackendProfilingContext</a></li> |
| 354 | <li class="footer">Generated on Fri Mar 13 2020 16:07:04 for ArmNN by |
| 355 | <a href="http://www.doxygen.org/index.html"> |
| 356 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 357 | </ul> |
| 358 | </div> |
| 359 | </body> |
| 360 | </html> |