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: PeriodicCounterCapture 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_periodic_counter_capture.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_periodic_counter_capture-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">PeriodicCounterCapture Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_periodic_counter_capture_8hpp_source.xhtml">PeriodicCounterCapture.hpp</a>></code></p> |
| 106 | <div class="dynheader"> |
| 107 | Inheritance diagram for PeriodicCounterCapture:</div> |
| 108 | <div class="dyncontent"> |
| 109 | <div class="center"> |
| 110 | <img src="classarmnn_1_1profiling_1_1_periodic_counter_capture.png" usemap="#PeriodicCounterCapture_map" alt=""/> |
| 111 | <map id="PeriodicCounterCapture_map" name="PeriodicCounterCapture_map"> |
| 112 | <area href="classarmnn_1_1profiling_1_1_i_periodic_counter_capture.xhtml" alt="IPeriodicCounterCapture" shape="rect" coords="0,0,152,24"/> |
| 113 | </map> |
| 114 | </div></div> |
| 115 | <table class="memberdecls"> |
| 116 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 117 | Public Member Functions</h2></td></tr> |
| 118 | <tr class="memitem:a88aa45fd5401f7fffbd651ca9a9acf33"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml#a88aa45fd5401f7fffbd651ca9a9acf33">PeriodicCounterCapture</a> (const <a class="el" href="classarmnn_1_1profiling_1_1_holder.xhtml">Holder</a> &data, <a class="el" href="classarmnn_1_1profiling_1_1_i_send_counter_packet.xhtml">ISendCounterPacket</a> &packet, const <a class="el" href="classarmnn_1_1profiling_1_1_i_read_counter_values.xhtml">IReadCounterValues</a> &readCounterValue, const <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.xhtml">ICounterMappings</a> &counterIdMap, const std::unordered_map< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a>, std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.xhtml">armnn::profiling::IBackendProfilingContext</a> >> &backendProfilingContexts)</td></tr> |
| 119 | <tr class="separator:a88aa45fd5401f7fffbd651ca9a9acf33"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:ac189d7dbcd5f9b1d460d7f9d07ca938f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml#ac189d7dbcd5f9b1d460d7f9d07ca938f">~PeriodicCounterCapture</a> ()</td></tr> |
| 121 | <tr class="separator:ac189d7dbcd5f9b1d460d7f9d07ca938f"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a156f3866ca69d98b4d9e6e1c1b3ec7da"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml#a156f3866ca69d98b4d9e6e1c1b3ec7da">Start</a> () override</td></tr> |
| 123 | <tr class="separator:a156f3866ca69d98b4d9e6e1c1b3ec7da"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:a634c58de2126b4a4e6a2a093e60e1290"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml#a634c58de2126b4a4e6a2a093e60e1290">Stop</a> () override</td></tr> |
| 125 | <tr class="separator:a634c58de2126b4a4e6a2a093e60e1290"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:ad201152b05beda61e51e3594ff07c8fe"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml#ad201152b05beda61e51e3594ff07c8fe">IsRunning</a> () const</td></tr> |
| 127 | <tr class="separator:ad201152b05beda61e51e3594ff07c8fe"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_periodic_counter_capture"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_periodic_counter_capture')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_periodic_counter_capture.xhtml">IPeriodicCounterCapture</a></td></tr> |
| 129 | <tr class="memitem:a1d4f3d9132cded687954cab389a6d608 inherit pub_methods_classarmnn_1_1profiling_1_1_i_periodic_counter_capture"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_periodic_counter_capture.xhtml#a1d4f3d9132cded687954cab389a6d608">~IPeriodicCounterCapture</a> ()</td></tr> |
| 130 | <tr class="separator:a1d4f3d9132cded687954cab389a6d608 inherit pub_methods_classarmnn_1_1profiling_1_1_i_periodic_counter_capture"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | </table> |
| 132 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 133 | <div class="textblock"> |
| 134 | <p class="definition">Definition at line <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml#l00026">26</a> of file <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml">PeriodicCounterCapture.hpp</a>.</p> |
| 135 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 136 | <a id="a88aa45fd5401f7fffbd651ca9a9acf33"></a> |
| 137 | <h2 class="memtitle"><span class="permalink"><a href="#a88aa45fd5401f7fffbd651ca9a9acf33">◆ </a></span>PeriodicCounterCapture()</h2> |
| 138 | |
| 139 | <div class="memitem"> |
| 140 | <div class="memproto"> |
| 141 | <table class="mlabels"> |
| 142 | <tr> |
| 143 | <td class="mlabels-left"> |
| 144 | <table class="memname"> |
| 145 | <tr> |
| 146 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml">PeriodicCounterCapture</a> </td> |
| 147 | <td>(</td> |
| 148 | <td class="paramtype">const <a class="el" href="classarmnn_1_1profiling_1_1_holder.xhtml">Holder</a> & </td> |
| 149 | <td class="paramname"><em>data</em>, </td> |
| 150 | </tr> |
| 151 | <tr> |
| 152 | <td class="paramkey"></td> |
| 153 | <td></td> |
| 154 | <td class="paramtype"><a class="el" href="classarmnn_1_1profiling_1_1_i_send_counter_packet.xhtml">ISendCounterPacket</a> & </td> |
| 155 | <td class="paramname"><em>packet</em>, </td> |
| 156 | </tr> |
| 157 | <tr> |
| 158 | <td class="paramkey"></td> |
| 159 | <td></td> |
| 160 | <td class="paramtype">const <a class="el" href="classarmnn_1_1profiling_1_1_i_read_counter_values.xhtml">IReadCounterValues</a> & </td> |
| 161 | <td class="paramname"><em>readCounterValue</em>, </td> |
| 162 | </tr> |
| 163 | <tr> |
| 164 | <td class="paramkey"></td> |
| 165 | <td></td> |
| 166 | <td class="paramtype">const <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.xhtml">ICounterMappings</a> & </td> |
| 167 | <td class="paramname"><em>counterIdMap</em>, </td> |
| 168 | </tr> |
| 169 | <tr> |
| 170 | <td class="paramkey"></td> |
| 171 | <td></td> |
| 172 | <td class="paramtype">const std::unordered_map< <a class="el" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a>, std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.xhtml">armnn::profiling::IBackendProfilingContext</a> >> & </td> |
| 173 | <td class="paramname"><em>backendProfilingContexts</em> </td> |
| 174 | </tr> |
| 175 | <tr> |
| 176 | <td></td> |
| 177 | <td>)</td> |
| 178 | <td></td><td></td> |
| 179 | </tr> |
| 180 | </table> |
| 181 | </td> |
| 182 | <td class="mlabels-right"> |
| 183 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 184 | </tr> |
| 185 | </table> |
| 186 | </div><div class="memdoc"> |
| 187 | |
| 188 | <p class="definition">Definition at line <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml#l00029">29</a> of file <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml">PeriodicCounterCapture.hpp</a>.</p> |
| 189 | <div class="fragment"><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  : m_CaptureDataHolder(data)</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  , m_IsRunning(<span class="keyword">false</span>)</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  , m_KeepRunning(<span class="keyword">false</span>)</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  , m_ReadCounterValues(readCounterValue)</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  , m_SendCounterPacket(packet)</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  , m_CounterIdMap(counterIdMap)</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  , m_BackendProfilingContext(backendProfilingContexts)</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {}</div></div><!-- fragment --> |
| 190 | </div> |
| 191 | </div> |
| 192 | <a id="ac189d7dbcd5f9b1d460d7f9d07ca938f"></a> |
| 193 | <h2 class="memtitle"><span class="permalink"><a href="#ac189d7dbcd5f9b1d460d7f9d07ca938f">◆ </a></span>~PeriodicCounterCapture()</h2> |
| 194 | |
| 195 | <div class="memitem"> |
| 196 | <div class="memproto"> |
| 197 | <table class="mlabels"> |
| 198 | <tr> |
| 199 | <td class="mlabels-left"> |
| 200 | <table class="memname"> |
| 201 | <tr> |
| 202 | <td class="memname">~<a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml">PeriodicCounterCapture</a> </td> |
| 203 | <td>(</td> |
| 204 | <td class="paramname"></td><td>)</td> |
| 205 | <td></td> |
| 206 | </tr> |
| 207 | </table> |
| 208 | </td> |
| 209 | <td class="mlabels-right"> |
| 210 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 211 | </tr> |
| 212 | </table> |
| 213 | </div><div class="memdoc"> |
| 214 | |
| 215 | <p class="definition">Definition at line <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml#l00044">44</a> of file <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml">PeriodicCounterCapture.hpp</a>.</p> |
| 216 | |
| 217 | <p class="reference">References <a class="el" href="_periodic_counter_capture_8cpp_source.xhtml#l00018">PeriodicCounterCapture::Start()</a>, and <a class="el" href="_periodic_counter_capture_8cpp_source.xhtml#l00037">PeriodicCounterCapture::Stop()</a>.</p> |
| 218 | <div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> { <a class="code" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml#a634c58de2126b4a4e6a2a093e60e1290">Stop</a>(); }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_periodic_counter_capture_xhtml_a634c58de2126b4a4e6a2a093e60e1290"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml#a634c58de2126b4a4e6a2a093e60e1290">armnn::profiling::PeriodicCounterCapture::Stop</a></div><div class="ttdeci">void Stop() override</div><div class="ttdef"><b>Definition:</b> <a href="_periodic_counter_capture_8cpp_source.xhtml#l00037">PeriodicCounterCapture.cpp:37</a></div></div> |
| 219 | </div><!-- fragment --> |
| 220 | </div> |
| 221 | </div> |
| 222 | <h2 class="groupheader">Member Function Documentation</h2> |
| 223 | <a id="ad201152b05beda61e51e3594ff07c8fe"></a> |
| 224 | <h2 class="memtitle"><span class="permalink"><a href="#ad201152b05beda61e51e3594ff07c8fe">◆ </a></span>IsRunning()</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">bool IsRunning </td> |
| 234 | <td>(</td> |
| 235 | <td class="paramname"></td><td>)</td> |
| 236 | <td> const</td> |
| 237 | </tr> |
| 238 | </table> |
| 239 | </td> |
| 240 | <td class="mlabels-right"> |
| 241 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 242 | </tr> |
| 243 | </table> |
| 244 | </div><div class="memdoc"> |
| 245 | |
| 246 | <p class="definition">Definition at line <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml#l00048">48</a> of file <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml">PeriodicCounterCapture.hpp</a>.</p> |
| 247 | <div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> { <span class="keywordflow">return</span> m_IsRunning; }</div></div><!-- fragment --> |
| 248 | </div> |
| 249 | </div> |
| 250 | <a id="a156f3866ca69d98b4d9e6e1c1b3ec7da"></a> |
| 251 | <h2 class="memtitle"><span class="permalink"><a href="#a156f3866ca69d98b4d9e6e1c1b3ec7da">◆ </a></span>Start()</h2> |
| 252 | |
| 253 | <div class="memitem"> |
| 254 | <div class="memproto"> |
| 255 | <table class="mlabels"> |
| 256 | <tr> |
| 257 | <td class="mlabels-left"> |
| 258 | <table class="memname"> |
| 259 | <tr> |
| 260 | <td class="memname">void Start </td> |
| 261 | <td>(</td> |
| 262 | <td class="paramname"></td><td>)</td> |
| 263 | <td></td> |
| 264 | </tr> |
| 265 | </table> |
| 266 | </td> |
| 267 | <td class="mlabels-right"> |
| 268 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 269 | </tr> |
| 270 | </table> |
| 271 | </div><div class="memdoc"> |
| 272 | |
| 273 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_periodic_counter_capture.xhtml#a63ce9b9c6710c0dae98f88d6c602313a">IPeriodicCounterCapture</a>.</p> |
| 274 | |
| 275 | <p class="definition">Definition at line <a class="el" href="_periodic_counter_capture_8cpp_source.xhtml#l00018">18</a> of file <a class="el" href="_periodic_counter_capture_8cpp_source.xhtml">PeriodicCounterCapture.cpp</a>.</p> |
| 276 | |
| 277 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02080">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml#l00044">PeriodicCounterCapture::~PeriodicCounterCapture()</a>.</p> |
| 278 | <div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="comment">// Check if the capture thread is already running</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">if</span> (m_IsRunning)</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="comment">// The capture thread is already running</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordflow">return</span>;</div><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> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="comment">// Mark the capture thread as running</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  m_IsRunning = <span class="keyword">true</span>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="comment">// Keep the capture procedure going until the capture thread is signalled to stop</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  m_KeepRunning.store(<span class="keyword">true</span>);</div><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="comment">// Start the new capture thread.</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  m_PeriodCaptureThread = std::thread(&PeriodicCounterCapture::Capture, <span class="keyword">this</span>, std::ref(m_ReadCounterValues));</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div></div><!-- fragment --> |
| 279 | </div> |
| 280 | </div> |
| 281 | <a id="a634c58de2126b4a4e6a2a093e60e1290"></a> |
| 282 | <h2 class="memtitle"><span class="permalink"><a href="#a634c58de2126b4a4e6a2a093e60e1290">◆ </a></span>Stop()</h2> |
| 283 | |
| 284 | <div class="memitem"> |
| 285 | <div class="memproto"> |
| 286 | <table class="mlabels"> |
| 287 | <tr> |
| 288 | <td class="mlabels-left"> |
| 289 | <table class="memname"> |
| 290 | <tr> |
| 291 | <td class="memname">void Stop </td> |
| 292 | <td>(</td> |
| 293 | <td class="paramname"></td><td>)</td> |
| 294 | <td></td> |
| 295 | </tr> |
| 296 | </table> |
| 297 | </td> |
| 298 | <td class="mlabels-right"> |
| 299 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 300 | </tr> |
| 301 | </table> |
| 302 | </div><div class="memdoc"> |
| 303 | |
| 304 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_periodic_counter_capture.xhtml#a4d7bebcc22c1b09cf961b83bf84033b6">IPeriodicCounterCapture</a>.</p> |
| 305 | |
| 306 | <p class="definition">Definition at line <a class="el" href="_periodic_counter_capture_8cpp_source.xhtml#l00037">37</a> of file <a class="el" href="_periodic_counter_capture_8cpp_source.xhtml">PeriodicCounterCapture.cpp</a>.</p> |
| 307 | |
| 308 | <p class="reference">References <a class="el" href="_logging_8hpp_source.xhtml#l00163">ARMNN_LOG</a>, <a class="el" href="_holder_8cpp_source.xhtml#l00054">Holder::GetCaptureData()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_read_counter_values.xhtml#af0092bd7f4da4a071b29bc04aec883cd">IReadCounterValues::GetCounterValue()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.xhtml#a83e6db8d13e21158334ca6722b20fa67">ICounterMappings::GetGlobalId()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l01050">armnn::profiling::GetTimestamp()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_send_counter_packet.xhtml#aeacf0722dbf513d511b46a9bf43bfa4a">ISendCounterPacket::SendPeriodicCounterCapturePacket()</a>, <a class="el" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407a7b83d3f08fa392b79e3f553b585971cd">armnn::warning</a>, and <a class="el" href="_exceptions_8cpp_source.xhtml#l00032">Exception::what()</a>.</p> |
| 309 | |
| 310 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02080">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_service_8cpp_source.xhtml#l00296">ProfilingService::GetSendTimelinePacket()</a>, <a class="el" href="_profiling_service_8cpp_source.xhtml#l00089">ProfilingService::Update()</a>, and <a class="el" href="_periodic_counter_capture_8hpp_source.xhtml#l00044">PeriodicCounterCapture::~PeriodicCounterCapture()</a>.</p> |
| 311 | <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// Signal the capture thread to stop</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  m_KeepRunning.store(<span class="keyword">false</span>);</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="comment">// Check that the capture thread is running</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">if</span> (m_PeriodCaptureThread.joinable())</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="comment">// Wait for the capture thread to complete operations</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  m_PeriodCaptureThread.join();</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> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">// Mark the capture thread as not running</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  m_IsRunning = <span class="keyword">false</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div></div><!-- fragment --> |
| 312 | </div> |
| 313 | </div> |
| 314 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 315 | <li>src/profiling/<a class="el" href="_periodic_counter_capture_8hpp_source.xhtml">PeriodicCounterCapture.hpp</a></li> |
| 316 | <li>src/profiling/<a class="el" href="_periodic_counter_capture_8cpp_source.xhtml">PeriodicCounterCapture.cpp</a></li> |
| 317 | </ul> |
| 318 | </div><!-- contents --> |
| 319 | </div><!-- doc-content --> |
| 320 | <!-- start footer part --> |
| 321 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 322 | <ul> |
| 323 | <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_periodic_counter_capture.xhtml">PeriodicCounterCapture</a></li> |
| 324 | <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by |
| 325 | <a href="http://www.doxygen.org/index.html"> |
| 326 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 327 | </ul> |
| 328 | </div> |
| 329 | </body> |
| 330 | </html> |