blob: 864a2398bab910e912e3bedbad6a12a85918b6c4 [file] [log] [blame]
Ryan OSheade36e4a2020-03-13 16:26:19 +00001<!-- 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: TestProfilingConnectionTimeoutError 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 &#160;<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">
56var 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_test_profiling_connection_timeout_error.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> &#124;
99<a href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error-members.xhtml">List of all members</a> </div>
100 <div class="headertitle">
101<div class="title">TestProfilingConnectionTimeoutError Class Reference</div> </div>
102</div><!--header-->
103<div class="contents">
104
105<p><code>#include &lt;<a class="el" href="_profiling_tests_8hpp_source.xhtml">ProfilingTests.hpp</a>&gt;</code></p>
106<div class="dynheader">
107Inheritance diagram for TestProfilingConnectionTimeoutError:</div>
108<div class="dyncontent">
109 <div class="center">
110 <img src="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.png" usemap="#TestProfilingConnectionTimeoutError_map" alt=""/>
111 <map id="TestProfilingConnectionTimeoutError_map" name="TestProfilingConnectionTimeoutError_map">
112<area href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml" alt="TestProfilingConnectionBase" shape="rect" coords="0,56,219,80"/>
113<area href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml" alt="IProfilingConnection" shape="rect" coords="0,0,219,24"/>
114</map>
115 </div></div>
116<table class="memberdecls">
117<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
118Public Member Functions</h2></td></tr>
119<tr class="memitem:a18f0288913ca61defcaa34c8d0a40e8c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml#a18f0288913ca61defcaa34c8d0a40e8c">TestProfilingConnectionTimeoutError</a> ()</td></tr>
120<tr class="separator:a18f0288913ca61defcaa34c8d0a40e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
121<tr class="memitem:a1adbda8257d3a74a0566e0d8407ff458"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml#a1adbda8257d3a74a0566e0d8407ff458">ReadPacket</a> (uint32_t timeout) override</td></tr>
122<tr class="separator:a1adbda8257d3a74a0566e0d8407ff458"><td class="memSeparator" colspan="2">&#160;</td></tr>
123<tr class="memitem:afb1d388dbb6bed7623ef1d3fb52fb52b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml#afb1d388dbb6bed7623ef1d3fb52fb52b">ReadCalledCount</a> ()</td></tr>
124<tr class="separator:afb1d388dbb6bed7623ef1d3fb52fb52b"><td class="memSeparator" colspan="2">&#160;</td></tr>
125<tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml">TestProfilingConnectionBase</a></td></tr>
126<tr class="memitem:abfb705bcb10894813d612267dcb1be70 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml#abfb705bcb10894813d612267dcb1be70">TestProfilingConnectionBase</a> ()=default</td></tr>
127<tr class="separator:abfb705bcb10894813d612267dcb1be70 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
128<tr class="memitem:aab93b740524e1d31882e71eab460cbc2 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml#aab93b740524e1d31882e71eab460cbc2">~TestProfilingConnectionBase</a> ()=default</td></tr>
129<tr class="separator:aab93b740524e1d31882e71eab460cbc2 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
130<tr class="memitem:a91bdc9d5497d47f5d707418beb83b140 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml#a91bdc9d5497d47f5d707418beb83b140">IsOpen</a> () const override</td></tr>
131<tr class="separator:a91bdc9d5497d47f5d707418beb83b140 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
132<tr class="memitem:a0f9aecd570c4e5e6d41337f0e2f1adf5 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml#a0f9aecd570c4e5e6d41337f0e2f1adf5">Close</a> () override</td></tr>
133<tr class="separator:a0f9aecd570c4e5e6d41337f0e2f1adf5 inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
134<tr class="memitem:a42eb542b5a1d73d00c4ce474140bb78c inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml#a42eb542b5a1d73d00c4ce474140bb78c">WritePacket</a> (const unsigned char *buffer, uint32_t length) override</td></tr>
135<tr class="separator:a42eb542b5a1d73d00c4ce474140bb78c inherit pub_methods_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
136<tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml">IProfilingConnection</a></td></tr>
137<tr class="memitem:a8c5a75b8ee005a7aa9391f3991480d74 inherit pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#a8c5a75b8ee005a7aa9391f3991480d74">~IProfilingConnection</a> ()</td></tr>
138<tr class="separator:a8c5a75b8ee005a7aa9391f3991480d74 inherit pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td class="memSeparator" colspan="2">&#160;</td></tr>
139</table><table class="memberdecls">
140<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
141Additional Inherited Members</h2></td></tr>
142<tr class="inherit_header pub_attribs_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classarmnn_1_1profiling_1_1_test_profiling_connection_base')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml">TestProfilingConnectionBase</a></td></tr>
143<tr class="memitem:a4d3bb34842f24c4f16e09dad7fee71e8 inherit pub_attribs_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml#a4d3bb34842f24c4f16e09dad7fee71e8">m_FirstCall</a> = <a class="el" href="_ref_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a></td></tr>
144<tr class="separator:a4d3bb34842f24c4f16e09dad7fee71e8 inherit pub_attribs_classarmnn_1_1profiling_1_1_test_profiling_connection_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
145</table>
146<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
147<div class="textblock">
148<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.xhtml#l00104">104</a> of file <a class="el" href="_profiling_tests_8hpp_source.xhtml">ProfilingTests.hpp</a>.</p>
149</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
150<a id="a18f0288913ca61defcaa34c8d0a40e8c"></a>
151<h2 class="memtitle"><span class="permalink"><a href="#a18f0288913ca61defcaa34c8d0a40e8c">&#9670;&nbsp;</a></span>TestProfilingConnectionTimeoutError()</h2>
152
153<div class="memitem">
154<div class="memproto">
155<table class="mlabels">
156 <tr>
157 <td class="mlabels-left">
158 <table class="memname">
159 <tr>
160 <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml">TestProfilingConnectionTimeoutError</a> </td>
161 <td>(</td>
162 <td class="paramname"></td><td>)</td>
163 <td></td>
164 </tr>
165 </table>
166 </td>
167 <td class="mlabels-right">
168<span class="mlabels"><span class="mlabel">inline</span></span> </td>
169 </tr>
170</table>
171</div><div class="memdoc">
172
173<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.xhtml#l00107">107</a> of file <a class="el" href="_profiling_tests_8hpp_source.xhtml">ProfilingTests.hpp</a>.</p>
174<div class="fragment"><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; : m_ReadRequests(0)</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; {}</div></div><!-- fragment -->
175</div>
176</div>
177<h2 class="groupheader">Member Function Documentation</h2>
178<a id="afb1d388dbb6bed7623ef1d3fb52fb52b"></a>
179<h2 class="memtitle"><span class="permalink"><a href="#afb1d388dbb6bed7623ef1d3fb52fb52b">&#9670;&nbsp;</a></span>ReadCalledCount()</h2>
180
181<div class="memitem">
182<div class="memproto">
183<table class="mlabels">
184 <tr>
185 <td class="mlabels-left">
186 <table class="memname">
187 <tr>
188 <td class="memname">int ReadCalledCount </td>
189 <td>(</td>
190 <td class="paramname"></td><td>)</td>
191 <td></td>
192 </tr>
193 </table>
194 </td>
195 <td class="mlabels-right">
196<span class="mlabels"><span class="mlabel">inline</span></span> </td>
197 </tr>
198</table>
199</div><div class="memdoc">
200
201<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.xhtml#l00124">124</a> of file <a class="el" href="_profiling_tests_8hpp_source.xhtml">ProfilingTests.hpp</a>.</p>
202
203<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l00131">BOOST_AUTO_TEST_CASE()</a>.</p>
204<div class="fragment"><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; {</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">return</span> m_ReadRequests.load();</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</div></div><!-- fragment -->
205</div>
206</div>
207<a id="a1adbda8257d3a74a0566e0d8407ff458"></a>
208<h2 class="memtitle"><span class="permalink"><a href="#a1adbda8257d3a74a0566e0d8407ff458">&#9670;&nbsp;</a></span>ReadPacket()</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"><a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> ReadPacket </td>
218 <td>(</td>
219 <td class="paramtype">uint32_t&#160;</td>
220 <td class="paramname"><em>timeout</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 class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
227 </tr>
228</table>
229</div><div class="memdoc">
230
231<p>Reimplemented from <a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml#a1adbda8257d3a74a0566e0d8407ff458">TestProfilingConnectionBase</a>.</p>
232
233<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.xhtml#l00111">111</a> of file <a class="el" href="_profiling_tests_8hpp_source.xhtml">ProfilingTests.hpp</a>.</p>
234<div class="fragment"><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; {</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="comment">// Return connection acknowledged packet after three timeouts</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">if</span> (m_ReadRequests % 3 == 0)</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; std::this_thread::sleep_for(std::chrono::milliseconds(timeout));</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; ++m_ReadRequests;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_timeout_exception.xhtml">armnn::TimeoutException</a>(<span class="stringliteral">&quot;Simulate a timeout error\n&quot;</span>);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> Packet(65536);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; }</div><div class="ttc" id="classarmnn_1_1_timeout_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_timeout_exception.xhtml">armnn::TimeoutException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00135">Exceptions.hpp:135</a></div></div>
235</div><!-- fragment -->
236</div>
237</div>
238<hr/>The documentation for this class was generated from the following file:<ul>
239<li>src/profiling/test/<a class="el" href="_profiling_tests_8hpp_source.xhtml">ProfilingTests.hpp</a></li>
240</ul>
241</div><!-- contents -->
242</div><!-- doc-content -->
243<!-- start footer part -->
244<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
245 <ul>
246 <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_test_profiling_connection_timeout_error.xhtml">TestProfilingConnectionTimeoutError</a></li>
247 <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by
248 <a href="http://www.doxygen.org/index.html">
249 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
250 </ul>
251</div>
252</body>
253</html>