blob: c63bf46929be93db78736f8ae560937aa80cdb02 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: TestProfilingConnectionBase Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ArmNN
&#160;<span id="projectnumber">NotReleased</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarmnn_1_1profiling_1_1_test_profiling_connection_base.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classarmnn_1_1profiling_1_1_test_profiling_connection_base-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">TestProfilingConnectionBase Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TestProfilingConnectionBase:</div>
<div class="dyncontent">
<div class="center">
<img src="classarmnn_1_1profiling_1_1_test_profiling_connection_base.png" usemap="#TestProfilingConnectionBase_map" alt=""/>
<map id="TestProfilingConnectionBase_map" name="TestProfilingConnectionBase_map">
<area href="classarmnn_1_1profiling_1_1_i_profiling_connection.html" alt="IProfilingConnection" shape="rect" coords="238,0,466,24"/>
<area href="classarmnn_1_1profiling_1_1_test_profiling_connection_armnn_error.html" alt="TestProfilingConnectionArmnnError" shape="rect" coords="0,112,228,136"/>
<area href="classarmnn_1_1profiling_1_1_test_profiling_connection_bad_ack_packet.html" alt="TestProfilingConnectionBadAckPacket" shape="rect" coords="238,112,466,136"/>
<area href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.html" alt="TestProfilingConnectionTimeoutError" shape="rect" coords="476,112,704,136"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abfb705bcb10894813d612267dcb1be70"><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.html#abfb705bcb10894813d612267dcb1be70">TestProfilingConnectionBase</a> ()=default</td></tr>
<tr class="separator:abfb705bcb10894813d612267dcb1be70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab93b740524e1d31882e71eab460cbc2"><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.html#aab93b740524e1d31882e71eab460cbc2">~TestProfilingConnectionBase</a> ()=default</td></tr>
<tr class="separator:aab93b740524e1d31882e71eab460cbc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91bdc9d5497d47f5d707418beb83b140"><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.html#a91bdc9d5497d47f5d707418beb83b140">IsOpen</a> () const override</td></tr>
<tr class="separator:a91bdc9d5497d47f5d707418beb83b140"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f9aecd570c4e5e6d41337f0e2f1adf5"><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.html#a0f9aecd570c4e5e6d41337f0e2f1adf5">Close</a> () override</td></tr>
<tr class="separator:a0f9aecd570c4e5e6d41337f0e2f1adf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42eb542b5a1d73d00c4ce474140bb78c"><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.html#a42eb542b5a1d73d00c4ce474140bb78c">WritePacket</a> (const unsigned char *buffer, uint32_t length) override</td></tr>
<tr class="separator:a42eb542b5a1d73d00c4ce474140bb78c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1adbda8257d3a74a0566e0d8407ff458"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1profiling_1_1_packet.html">Packet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.html#a1adbda8257d3a74a0566e0d8407ff458">ReadPacket</a> (uint32_t timeout) override</td></tr>
<tr class="separator:a1adbda8257d3a74a0566e0d8407ff458"><td class="memSeparator" colspan="2">&#160;</td></tr>
<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.html">IProfilingConnection</a></td></tr>
<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.html#a8c5a75b8ee005a7aa9391f3991480d74">~IProfilingConnection</a> ()</td></tr>
<tr class="separator:a8c5a75b8ee005a7aa9391f3991480d74 inherit pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a4d3bb34842f24c4f16e09dad7fee71e8"><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.html#a4d3bb34842f24c4f16e09dad7fee71e8">m_FirstCall</a> = <a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a></td></tr>
<tr class="separator:a4d3bb34842f24c4f16e09dad7fee71e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.html#l00068">68</a> of file <a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="abfb705bcb10894813d612267dcb1be70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfb705bcb10894813d612267dcb1be70">&#9670;&nbsp;</a></span>TestProfilingConnectionBase()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.html">TestProfilingConnectionBase</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="aab93b740524e1d31882e71eab460cbc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab93b740524e1d31882e71eab460cbc2">&#9670;&nbsp;</a></span>~TestProfilingConnectionBase()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">~<a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.html">TestProfilingConnectionBase</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a0f9aecd570c4e5e6d41337f0e2f1adf5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f9aecd570c4e5e6d41337f0e2f1adf5">&#9670;&nbsp;</a></span>Close()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Close </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#aacb6d0e5e6d570cdc2b0da14c3921ff0">IProfilingConnection</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.html#l00076">76</a> of file <a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;{}</div></div><!-- fragment -->
</div>
</div>
<a id="a91bdc9d5497d47f5d707418beb83b140"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91bdc9d5497d47f5d707418beb83b140">&#9670;&nbsp;</a></span>IsOpen()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool IsOpen </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#a8a3511046982c64efa3e3833d749e5ef">IProfilingConnection</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.html#l00074">74</a> of file <a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div></div><!-- fragment -->
</div>
</div>
<a id="a1adbda8257d3a74a0566e0d8407ff458"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1adbda8257d3a74a0566e0d8407ff458">&#9670;&nbsp;</a></span>ReadPacket()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_packet.html">Packet</a> ReadPacket </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>timeout</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#a935e16d85893a31f23cd78e47b85466d">IProfilingConnection</a>.</p>
<p>Reimplemented in <a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_bad_ack_packet.html#a1adbda8257d3a74a0566e0d8407ff458">TestProfilingConnectionBadAckPacket</a>, <a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_armnn_error.html#a1adbda8257d3a74a0566e0d8407ff458">TestProfilingConnectionArmnnError</a>, and <a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.html#a1adbda8257d3a74a0566e0d8407ff458">TestProfilingConnectionTimeoutError</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.html#l00085">85</a> of file <a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; {</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="comment">// First time we&#39;re called return a connection ack packet. After that always timeout.</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.html#a4d3bb34842f24c4f16e09dad7fee71e8">m_FirstCall</a>)</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.html#a4d3bb34842f24c4f16e09dad7fee71e8">m_FirstCall</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// Return connection acknowledged packet</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">return</span> Packet(65536);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; std::this_thread::sleep_for(std::chrono::milliseconds(timeout));</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_timeout_exception.html">armnn::TimeoutException</a>(<span class="stringliteral">&quot;Simulate a timeout error\n&quot;</span>);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; }</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_test_profiling_connection_base_html_a4d3bb34842f24c4f16e09dad7fee71e8"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.html#a4d3bb34842f24c4f16e09dad7fee71e8">armnn::profiling::TestProfilingConnectionBase::m_FirstCall</a></div><div class="ttdeci">bool m_FirstCall</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_tests_8hpp_source.html#l00101">ProfilingTests.hpp:101</a></div></div>
<div class="ttc" id="classarmnn_1_1_timeout_exception_html"><div class="ttname"><a href="classarmnn_1_1_timeout_exception.html">armnn::TimeoutException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00135">Exceptions.hpp:135</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a42eb542b5a1d73d00c4ce474140bb78c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42eb542b5a1d73d00c4ce474140bb78c">&#9670;&nbsp;</a></span>WritePacket()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool WritePacket </td>
<td>(</td>
<td class="paramtype">const unsigned char *&#160;</td>
<td class="paramname"><em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>length</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#ac78c6bd1a545934a805c88194214b09d">IProfilingConnection</a>.</p>
<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.html#l00078">78</a> of file <a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; boost::ignore_unused(buffer, length);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; }</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a4d3bb34842f24c4f16e09dad7fee71e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d3bb34842f24c4f16e09dad7fee71e8">&#9670;&nbsp;</a></span>m_FirstCall</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool m_FirstCall = <a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_profiling_tests_8hpp_source.html#l00101">101</a> of file <a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/profiling/test/<a class="el" href="_profiling_tests_8hpp_source.html">ProfilingTests.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="namespacearmnn_1_1profiling.html">profiling</a></li><li class="navelem"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.html">TestProfilingConnectionBase</a></li>
<li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>