Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: ProfilingStateMachine Class Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="classarmnn_1_1profiling_1_1_profiling_state_machine-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">ProfilingStateMachine Class Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>></code></p> |
| 106 | <table class="memberdecls"> |
| 107 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 108 | Public Member Functions</h2></td></tr> |
| 109 | <tr class="memitem:a419c19ff2c798aab55b0789e051517d7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a419c19ff2c798aab55b0789e051517d7">ProfilingStateMachine</a> ()</td></tr> |
| 110 | <tr class="separator:a419c19ff2c798aab55b0789e051517d7"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:aa89f70de19b6fb3a6ed4cea36890d9ab"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#aa89f70de19b6fb3a6ed4cea36890d9ab">ProfilingStateMachine</a> (<a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> state)</td></tr> |
| 112 | <tr class="separator:aa89f70de19b6fb3a6ed4cea36890d9ab"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:ad8d263669817cf577760710ff6c96bb9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#ad8d263669817cf577760710ff6c96bb9">GetCurrentState</a> () const</td></tr> |
| 114 | <tr class="separator:ad8d263669817cf577760710ff6c96bb9"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a175365c95c51fb3dad223ce3f48a3ffc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a175365c95c51fb3dad223ce3f48a3ffc">TransitionToState</a> (<a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> newState)</td></tr> |
| 116 | <tr class="separator:a175365c95c51fb3dad223ce3f48a3ffc"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a372de693ad40b3f42839c8ec6ac845f4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a372de693ad40b3f42839c8ec6ac845f4">Reset</a> ()</td></tr> |
| 118 | <tr class="separator:a372de693ad40b3f42839c8ec6ac845f4"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a4522fa83798319a209209f4d4ae34fd3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">IsOneOfStates</a> (<a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> state1)</td></tr> |
| 120 | <tr class="separator:a4522fa83798319a209209f4d4ae34fd3"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a64c592cf41e009dd59cded3a7169de73"><td class="memTemplParams" colspan="2">template<typename T , typename... Args> </td></tr> |
| 122 | <tr class="memitem:a64c592cf41e009dd59cded3a7169de73"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a64c592cf41e009dd59cded3a7169de73">IsOneOfStates</a> (T state1, T state2, Args... args)</td></tr> |
| 123 | <tr class="separator:a64c592cf41e009dd59cded3a7169de73"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | </table> |
| 125 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 126 | <div class="textblock"> |
| 127 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00026">26</a> of file <a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>.</p> |
| 128 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 129 | <a id="a419c19ff2c798aab55b0789e051517d7"></a> |
| 130 | <h2 class="memtitle"><span class="permalink"><a href="#a419c19ff2c798aab55b0789e051517d7">◆ </a></span>ProfilingStateMachine() <span class="overload">[1/2]</span></h2> |
| 131 | |
| 132 | <div class="memitem"> |
| 133 | <div class="memproto"> |
| 134 | <table class="mlabels"> |
| 135 | <tr> |
| 136 | <td class="mlabels-left"> |
| 137 | <table class="memname"> |
| 138 | <tr> |
| 139 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml">ProfilingStateMachine</a> </td> |
| 140 | <td>(</td> |
| 141 | <td class="paramname"></td><td>)</td> |
| 142 | <td></td> |
| 143 | </tr> |
| 144 | </table> |
| 145 | </td> |
| 146 | <td class="mlabels-right"> |
| 147 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 148 | </tr> |
| 149 | </table> |
| 150 | </div><div class="memdoc"> |
| 151 | |
| 152 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00029">29</a> of file <a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>.</p> |
| 153 | <div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> : m_State(<a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">ProfilingState::Uninitialised</a>) {}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">armnn::profiling::ProfilingState::Uninitialised</a></div></div> |
| 154 | </div><!-- fragment --> |
| 155 | </div> |
| 156 | </div> |
| 157 | <a id="aa89f70de19b6fb3a6ed4cea36890d9ab"></a> |
| 158 | <h2 class="memtitle"><span class="permalink"><a href="#aa89f70de19b6fb3a6ed4cea36890d9ab">◆ </a></span>ProfilingStateMachine() <span class="overload">[2/2]</span></h2> |
| 159 | |
| 160 | <div class="memitem"> |
| 161 | <div class="memproto"> |
| 162 | <table class="mlabels"> |
| 163 | <tr> |
| 164 | <td class="mlabels-left"> |
| 165 | <table class="memname"> |
| 166 | <tr> |
| 167 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml">ProfilingStateMachine</a> </td> |
| 168 | <td>(</td> |
| 169 | <td class="paramtype"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> </td> |
| 170 | <td class="paramname"><em>state</em></td><td>)</td> |
| 171 | <td></td> |
| 172 | </tr> |
| 173 | </table> |
| 174 | </td> |
| 175 | <td class="mlabels-right"> |
| 176 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 177 | </tr> |
| 178 | </table> |
| 179 | </div><div class="memdoc"> |
| 180 | |
| 181 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00030">30</a> of file <a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>.</p> |
| 182 | <div class="fragment"><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> : m_State(state) {}</div></div><!-- fragment --> |
| 183 | </div> |
| 184 | </div> |
| 185 | <h2 class="groupheader">Member Function Documentation</h2> |
| 186 | <a id="ad8d263669817cf577760710ff6c96bb9"></a> |
| 187 | <h2 class="memtitle"><span class="permalink"><a href="#ad8d263669817cf577760710ff6c96bb9">◆ </a></span>GetCurrentState()</h2> |
| 188 | |
| 189 | <div class="memitem"> |
| 190 | <div class="memproto"> |
| 191 | <table class="memname"> |
| 192 | <tr> |
| 193 | <td class="memname"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> GetCurrentState </td> |
| 194 | <td>(</td> |
| 195 | <td class="paramname"></td><td>)</td> |
| 196 | <td> const</td> |
| 197 | </tr> |
| 198 | </table> |
| 199 | </div><div class="memdoc"> |
| 200 | |
| 201 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8cpp_source.xhtml#l00031">31</a> of file <a class="el" href="_profiling_state_machine_8cpp_source.xhtml">ProfilingStateMachine.cpp</a>.</p> |
| 202 | |
| 203 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l00131">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_service_8cpp_source.xhtml#l00039">ProfilingService::ConfigureProfilingService()</a>, <a class="el" href="_profiling_service_8cpp_source.xhtml#l00170">ProfilingService::Disconnect()</a>, <a class="el" href="_profiling_service_8cpp_source.xhtml#l00209">ProfilingService::GetCurrentState()</a>, <a class="el" href="_per_job_counter_selection_command_handler_8cpp_source.xhtml#l00016">PerJobCounterSelectionCommandHandler::operator()()</a>, <a class="el" href="_request_counter_directory_command_handler_8cpp_source.xhtml#l00016">RequestCounterDirectoryCommandHandler::operator()()</a>, <a class="el" href="_connection_acknowledged_command_handler_8cpp_source.xhtml#l00018">ConnectionAcknowledgedCommandHandler::operator()()</a>, <a class="el" href="_periodic_counter_selection_command_handler_8cpp_source.xhtml#l00059">PeriodicCounterSelectionCommandHandler::operator()()</a>, <a class="el" href="_profiling_tests_8cpp_source.xhtml#l00456">ProfilingCurrentStateThreadImpl()</a>, <a class="el" href="_send_thread_8cpp_source.xhtml#l00081">SendThread::Stop()</a>, and <a class="el" href="_profiling_service_8cpp_source.xhtml#l00089">ProfilingService::Update()</a>.</p> |
| 204 | <div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">return</span> m_State.load();</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> }</div></div><!-- fragment --> |
| 205 | </div> |
| 206 | </div> |
| 207 | <a id="a4522fa83798319a209209f4d4ae34fd3"></a> |
| 208 | <h2 class="memtitle"><span class="permalink"><a href="#a4522fa83798319a209209f4d4ae34fd3">◆ </a></span>IsOneOfStates() <span class="overload">[1/2]</span></h2> |
| 209 | |
| 210 | <div class="memitem"> |
| 211 | <div class="memproto"> |
| 212 | <table class="mlabels"> |
| 213 | <tr> |
| 214 | <td class="mlabels-left"> |
| 215 | <table class="memname"> |
| 216 | <tr> |
| 217 | <td class="memname">bool IsOneOfStates </td> |
| 218 | <td>(</td> |
| 219 | <td class="paramtype"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> </td> |
| 220 | <td class="paramname"><em>state1</em></td><td>)</td> |
| 221 | <td></td> |
| 222 | </tr> |
| 223 | </table> |
| 224 | </td> |
| 225 | <td class="mlabels-right"> |
| 226 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 227 | </tr> |
| 228 | </table> |
| 229 | </div><div class="memdoc"> |
| 230 | |
| 231 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00036">36</a> of file <a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>.</p> |
| 232 | |
| 233 | <p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p> |
| 234 | |
| 235 | <p class="reference">Referenced by <a class="el" href="_profiling_state_machine_8cpp_source.xhtml#l00036">ProfilingStateMachine::TransitionToState()</a>.</p> |
| 236 | <div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(state1);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &&...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div> |
| 237 | </div><!-- fragment --> |
| 238 | </div> |
| 239 | </div> |
| 240 | <a id="a64c592cf41e009dd59cded3a7169de73"></a> |
| 241 | <h2 class="memtitle"><span class="permalink"><a href="#a64c592cf41e009dd59cded3a7169de73">◆ </a></span>IsOneOfStates() <span class="overload">[2/2]</span></h2> |
| 242 | |
| 243 | <div class="memitem"> |
| 244 | <div class="memproto"> |
| 245 | <table class="mlabels"> |
| 246 | <tr> |
| 247 | <td class="mlabels-left"> |
| 248 | <table class="memname"> |
| 249 | <tr> |
| 250 | <td class="memname">bool IsOneOfStates </td> |
| 251 | <td>(</td> |
| 252 | <td class="paramtype">T </td> |
| 253 | <td class="paramname"><em>state1</em>, </td> |
| 254 | </tr> |
| 255 | <tr> |
| 256 | <td class="paramkey"></td> |
| 257 | <td></td> |
| 258 | <td class="paramtype">T </td> |
| 259 | <td class="paramname"><em>state2</em>, </td> |
| 260 | </tr> |
| 261 | <tr> |
| 262 | <td class="paramkey"></td> |
| 263 | <td></td> |
| 264 | <td class="paramtype">Args... </td> |
| 265 | <td class="paramname"><em>args</em> </td> |
| 266 | </tr> |
| 267 | <tr> |
| 268 | <td></td> |
| 269 | <td>)</td> |
| 270 | <td></td><td></td> |
| 271 | </tr> |
| 272 | </table> |
| 273 | </td> |
| 274 | <td class="mlabels-right"> |
| 275 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 276 | </tr> |
| 277 | </table> |
| 278 | </div><div class="memdoc"> |
| 279 | |
| 280 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00043">43</a> of file <a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>.</p> |
| 281 | <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="keywordflow">if</span> (state1 == state2)</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</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>  <span class="keywordflow">else</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">IsOneOfStates</a>(state1, args...);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_state_machine_xhtml_a4522fa83798319a209209f4d4ae34fd3"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">armnn::profiling::ProfilingStateMachine::IsOneOfStates</a></div><div class="ttdeci">bool IsOneOfStates(ProfilingState state1)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_state_machine_8hpp_source.xhtml#l00036">ProfilingStateMachine.hpp:36</a></div></div> |
| 282 | </div><!-- fragment --> |
| 283 | </div> |
| 284 | </div> |
| 285 | <a id="a372de693ad40b3f42839c8ec6ac845f4"></a> |
| 286 | <h2 class="memtitle"><span class="permalink"><a href="#a372de693ad40b3f42839c8ec6ac845f4">◆ </a></span>Reset()</h2> |
| 287 | |
| 288 | <div class="memitem"> |
| 289 | <div class="memproto"> |
| 290 | <table class="memname"> |
| 291 | <tr> |
| 292 | <td class="memname">void Reset </td> |
| 293 | <td>(</td> |
| 294 | <td class="paramname"></td><td>)</td> |
| 295 | <td></td> |
| 296 | </tr> |
| 297 | </table> |
| 298 | </div><div class="memdoc"> |
| 299 | |
| 300 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8cpp_source.xhtml#l00088">88</a> of file <a class="el" href="_profiling_state_machine_8cpp_source.xhtml">ProfilingStateMachine.cpp</a>.</p> |
| 301 | |
| 302 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">armnn::profiling::Uninitialised</a>.</p> |
| 303 | |
| 304 | <p class="reference">Referenced by <a class="el" href="_profiling_service_8cpp_source.xhtml#l00296">ProfilingService::GetSendTimelinePacket()</a>.</p> |
| 305 | <div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  m_State.store(<a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">ProfilingState::Uninitialised</a>);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">armnn::profiling::ProfilingState::Uninitialised</a></div></div> |
| 306 | </div><!-- fragment --> |
| 307 | </div> |
| 308 | </div> |
| 309 | <a id="a175365c95c51fb3dad223ce3f48a3ffc"></a> |
| 310 | <h2 class="memtitle"><span class="permalink"><a href="#a175365c95c51fb3dad223ce3f48a3ffc">◆ </a></span>TransitionToState()</h2> |
| 311 | |
| 312 | <div class="memitem"> |
| 313 | <div class="memproto"> |
| 314 | <table class="memname"> |
| 315 | <tr> |
| 316 | <td class="memname">void TransitionToState </td> |
| 317 | <td>(</td> |
| 318 | <td class="paramtype"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> </td> |
| 319 | <td class="paramname"><em>newState</em></td><td>)</td> |
| 320 | <td></td> |
| 321 | </tr> |
| 322 | </table> |
| 323 | </div><div class="memdoc"> |
| 324 | |
| 325 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8cpp_source.xhtml#l00036">36</a> of file <a class="el" href="_profiling_state_machine_8cpp_source.xhtml">ProfilingStateMachine.cpp</a>.</p> |
| 326 | |
| 327 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">armnn::profiling::Active</a>, <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00036">ProfilingStateMachine::IsOneOfStates()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">armnn::profiling::NotConnected</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">armnn::profiling::Uninitialised</a>, and <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">armnn::profiling::WaitingForAck</a>.</p> |
| 328 | |
| 329 | <p class="reference">Referenced by <a class="el" href="_backend_profiling_tests_8cpp_source.xhtml#l00137">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_service_8cpp_source.xhtml#l00296">ProfilingService::GetSendTimelinePacket()</a>, <a class="el" href="_connection_acknowledged_command_handler_8cpp_source.xhtml#l00018">ConnectionAcknowledgedCommandHandler::operator()()</a>, <a class="el" href="_profiling_tests_8cpp_source.xhtml#l00456">ProfilingCurrentStateThreadImpl()</a>, <a class="el" href="_profiling_service_8hpp_source.xhtml#l00240">ProfilingService::TransitionToState()</a>, and <a class="el" href="_profiling_service_8cpp_source.xhtml#l00089">ProfilingService::Update()</a>.</p> |
| 330 | <div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> currentState = m_State.load(std::memory_order::memory_order_relaxed);</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">switch</span> (newState)</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">ProfilingState::Uninitialised</a>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">do</span></div><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="keywordflow">if</span> (!<a class="code" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">IsOneOfStates</a>(currentState, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">ProfilingState::Uninitialised</a>))</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  ThrowStateTransitionException(currentState, newState);</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>  }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">while</span> (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">ProfilingState::NotConnected</a>:</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">do</span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordflow">if</span> (!<a class="code" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">IsOneOfStates</a>(currentState, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">ProfilingState::Uninitialised</a>, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">ProfilingState::NotConnected</a>,</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">ProfilingState::Active</a>, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">ProfilingState::WaitingForAck</a>))</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  ThrowStateTransitionException(currentState, newState);</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">while</span> (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">ProfilingState::WaitingForAck</a>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">do</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  {</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">if</span> (!<a class="code" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">IsOneOfStates</a>(currentState, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">ProfilingState::NotConnected</a>, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">ProfilingState::WaitingForAck</a>))</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  ThrowStateTransitionException(currentState, newState);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">while</span> (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">ProfilingState::Active</a>:</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">do</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">if</span> (!<a class="code" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">IsOneOfStates</a>(currentState, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">ProfilingState::WaitingForAck</a>, <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">ProfilingState::Active</a>))</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  ThrowStateTransitionException(currentState, newState);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">while</span> (!m_State.compare_exchange_strong(currentState, newState, std::memory_order::memory_order_relaxed));</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_state_machine_xhtml_a4522fa83798319a209209f4d4ae34fd3"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml#a4522fa83798319a209209f4d4ae34fd3">armnn::profiling::ProfilingStateMachine::IsOneOfStates</a></div><div class="ttdeci">bool IsOneOfStates(ProfilingState state1)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_state_machine_8hpp_source.xhtml#l00036">ProfilingStateMachine.hpp:36</a></div></div> |
| 331 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">armnn::profiling::ProfilingState::NotConnected</a></div></div> |
| 332 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">armnn::profiling::ProfilingState::Active</a></div></div> |
| 333 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">armnn::profiling::ProfilingState::WaitingForAck</a></div></div> |
| 334 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">armnn::profiling::ProfilingState::Uninitialised</a></div></div> |
| 335 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">armnn::profiling::ProfilingState</a></div><div class="ttdeci">ProfilingState</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_state_machine_8hpp_source.xhtml#l00018">ProfilingStateMachine.hpp:18</a></div></div> |
| 336 | </div><!-- fragment --> |
| 337 | </div> |
| 338 | </div> |
| 339 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 340 | <li>src/profiling/<a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a></li> |
| 341 | <li>src/profiling/<a class="el" href="_profiling_state_machine_8cpp_source.xhtml">ProfilingStateMachine.cpp</a></li> |
| 342 | </ul> |
| 343 | </div><!-- contents --> |
| 344 | </div><!-- doc-content --> |
| 345 | <!-- start footer part --> |
| 346 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 347 | <ul> |
| 348 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="namespacearmnn_1_1profiling.xhtml">profiling</a></li><li class="navelem"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml">ProfilingStateMachine</a></li> |
| 349 | <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by |
| 350 | <a href="http://www.doxygen.org/index.html"> |
| 351 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 352 | </ul> |
| 353 | </div> |
| 354 | </body> |
| 355 | </html> |