Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: ProfilingConnectionDumpToFileDecorator Class Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#pub-methods">Public Member Functions</a> | |
| 85 | <a href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">ProfilingConnectionDumpToFileDecorator Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_profiling_connection_dump_to_file_decorator_8hpp_source.html">ProfilingConnectionDumpToFileDecorator.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for ProfilingConnectionDumpToFileDecorator:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.png" usemap="#ProfilingConnectionDumpToFileDecorator_map" alt=""/> |
| 97 | <map id="ProfilingConnectionDumpToFileDecorator_map" name="ProfilingConnectionDumpToFileDecorator_map"> |
| 98 | <area href="classarmnn_1_1profiling_1_1_i_profiling_connection.html" alt="IProfilingConnection" shape="rect" coords="0,0,247,24"/> |
| 99 | </map> |
| 100 | </div></div> |
| 101 | <table class="memberdecls"> |
| 102 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 103 | Public Member Functions</h2></td></tr> |
| 104 | <tr class="memitem:ae834e67551e458fc584a6a38d0b80729"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#ae834e67551e458fc584a6a38d0b80729">ProfilingConnectionDumpToFileDecorator</a> (std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html">IProfilingConnection</a> > connection, const Runtime::CreationOptions::ExternalProfilingOptions &<a class="el" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>, bool ignoreFailures=<a class="el" href="_ref_layer_tests_8cpp.html#a67e2647a90dec71bb79c8b38872ba570">false</a>)</td></tr> |
| 105 | <tr class="separator:ae834e67551e458fc584a6a38d0b80729"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <tr class="memitem:a4b9c0b3d56aa758da95086fe7cc3babf"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#a4b9c0b3d56aa758da95086fe7cc3babf">~ProfilingConnectionDumpToFileDecorator</a> ()</td></tr> |
| 107 | <tr class="separator:a4b9c0b3d56aa758da95086fe7cc3babf"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:a91bdc9d5497d47f5d707418beb83b140"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#a91bdc9d5497d47f5d707418beb83b140">IsOpen</a> () const override</td></tr> |
| 109 | <tr class="separator:a91bdc9d5497d47f5d707418beb83b140"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:a0f9aecd570c4e5e6d41337f0e2f1adf5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#a0f9aecd570c4e5e6d41337f0e2f1adf5">Close</a> () override</td></tr> |
| 111 | <tr class="separator:a0f9aecd570c4e5e6d41337f0e2f1adf5"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a42eb542b5a1d73d00c4ce474140bb78c"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#a42eb542b5a1d73d00c4ce474140bb78c">WritePacket</a> (const unsigned char *buffer, uint32_t length) override</td></tr> |
| 113 | <tr class="separator:a42eb542b5a1d73d00c4ce474140bb78c"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:a1adbda8257d3a74a0566e0d8407ff458"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1profiling_1_1_packet.html">Packet</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#a1adbda8257d3a74a0566e0d8407ff458">ReadPacket</a> (uint32_t timeout) override</td></tr> |
| 115 | <tr class="separator:a1adbda8257d3a74a0566e0d8407ff458"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <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="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html">IProfilingConnection</a></td></tr> |
| 117 | <tr class="memitem:a8c5a75b8ee005a7aa9391f3991480d74 inherit pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#a8c5a75b8ee005a7aa9391f3991480d74">~IProfilingConnection</a> ()</td></tr> |
| 118 | <tr class="separator:a8c5a75b8ee005a7aa9391f3991480d74 inherit pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | </table> |
| 120 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 121 | <div class="textblock"> |
| 122 | <p class="definition">Definition at line <a class="el" href="_profiling_connection_dump_to_file_decorator_8hpp_source.html#l00025">25</a> of file <a class="el" href="_profiling_connection_dump_to_file_decorator_8hpp_source.html">ProfilingConnectionDumpToFileDecorator.hpp</a>.</p> |
| 123 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 124 | <a id="ae834e67551e458fc584a6a38d0b80729"></a> |
| 125 | <h2 class="memtitle"><span class="permalink"><a href="#ae834e67551e458fc584a6a38d0b80729">◆ </a></span>ProfilingConnectionDumpToFileDecorator()</h2> |
| 126 | |
| 127 | <div class="memitem"> |
| 128 | <div class="memproto"> |
| 129 | <table class="memname"> |
| 130 | <tr> |
| 131 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html">ProfilingConnectionDumpToFileDecorator</a> </td> |
| 132 | <td>(</td> |
| 133 | <td class="paramtype">std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html">IProfilingConnection</a> > </td> |
| 134 | <td class="paramname"><em>connection</em>, </td> |
| 135 | </tr> |
| 136 | <tr> |
| 137 | <td class="paramkey"></td> |
| 138 | <td></td> |
| 139 | <td class="paramtype">const Runtime::CreationOptions::ExternalProfilingOptions & </td> |
| 140 | <td class="paramname"><em>options</em>, </td> |
| 141 | </tr> |
| 142 | <tr> |
| 143 | <td class="paramkey"></td> |
| 144 | <td></td> |
| 145 | <td class="paramtype">bool </td> |
| 146 | <td class="paramname"><em>ignoreFailures</em> = <code><a class="el" href="_ref_layer_tests_8cpp.html#a67e2647a90dec71bb79c8b38872ba570">false</a></code> </td> |
| 147 | </tr> |
| 148 | <tr> |
| 149 | <td></td> |
| 150 | <td>)</td> |
| 151 | <td></td><td></td> |
| 152 | </tr> |
| 153 | </table> |
| 154 | </div><div class="memdoc"> |
| 155 | |
| 156 | <p class="definition">Definition at line <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00020">20</a> of file <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html">ProfilingConnectionDumpToFileDecorator.cpp</a>.</p> |
| 157 | <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  : m_Connection(std::move(connection))</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  , m_Options(<a class="code" href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a>)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  , m_IgnoreFileErrors(ignoreFailures)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">if</span> (!m_Connection)</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="keywordflow">throw</span> InvalidArgumentException(<span class="stringliteral">"Connection cannot be nullptr"</span>);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> }</div><div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_html_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.html#a6560146509197f3e197d8d36f76c1347">options</a></div><div class="ttdeci">armnn::Runtime::CreationOptions::ExternalProfilingOptions options</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.html#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> |
| 158 | </div><!-- fragment --> |
| 159 | </div> |
| 160 | </div> |
| 161 | <a id="a4b9c0b3d56aa758da95086fe7cc3babf"></a> |
| 162 | <h2 class="memtitle"><span class="permalink"><a href="#a4b9c0b3d56aa758da95086fe7cc3babf">◆ </a></span>~ProfilingConnectionDumpToFileDecorator()</h2> |
| 163 | |
| 164 | <div class="memitem"> |
| 165 | <div class="memproto"> |
| 166 | <table class="memname"> |
| 167 | <tr> |
| 168 | <td class="memname">~<a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html">ProfilingConnectionDumpToFileDecorator</a> </td> |
| 169 | <td>(</td> |
| 170 | <td class="paramname"></td><td>)</td> |
| 171 | <td></td> |
| 172 | </tr> |
| 173 | </table> |
| 174 | </div><div class="memdoc"> |
| 175 | |
| 176 | <p class="definition">Definition at line <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00034">34</a> of file <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html">ProfilingConnectionDumpToFileDecorator.cpp</a>.</p> |
| 177 | |
| 178 | <p class="reference">References <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00044">ProfilingConnectionDumpToFileDecorator::Close()</a>.</p> |
| 179 | <div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#a0f9aecd570c4e5e6d41337f0e2f1adf5">Close</a>();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator_html_a0f9aecd570c4e5e6d41337f0e2f1adf5"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.html#a0f9aecd570c4e5e6d41337f0e2f1adf5">armnn::profiling::ProfilingConnectionDumpToFileDecorator::Close</a></div><div class="ttdeci">void Close() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00044">ProfilingConnectionDumpToFileDecorator.cpp:44</a></div></div> |
| 180 | </div><!-- fragment --> |
| 181 | </div> |
| 182 | </div> |
| 183 | <h2 class="groupheader">Member Function Documentation</h2> |
| 184 | <a id="a0f9aecd570c4e5e6d41337f0e2f1adf5"></a> |
| 185 | <h2 class="memtitle"><span class="permalink"><a href="#a0f9aecd570c4e5e6d41337f0e2f1adf5">◆ </a></span>Close()</h2> |
| 186 | |
| 187 | <div class="memitem"> |
| 188 | <div class="memproto"> |
| 189 | <table class="mlabels"> |
| 190 | <tr> |
| 191 | <td class="mlabels-left"> |
| 192 | <table class="memname"> |
| 193 | <tr> |
| 194 | <td class="memname">void Close </td> |
| 195 | <td>(</td> |
| 196 | <td class="paramname"></td><td>)</td> |
| 197 | <td></td> |
| 198 | </tr> |
| 199 | </table> |
| 200 | </td> |
| 201 | <td class="mlabels-right"> |
| 202 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 203 | </tr> |
| 204 | </table> |
| 205 | </div><div class="memdoc"> |
| 206 | |
| 207 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#aacb6d0e5e6d570cdc2b0da14c3921ff0">IProfilingConnection</a>.</p> |
| 208 | |
| 209 | <p class="definition">Definition at line <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00044">44</a> of file <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html">ProfilingConnectionDumpToFileDecorator.cpp</a>.</p> |
| 210 | |
| 211 | <p class="reference">Referenced by <a class="el" href="_profiling_connection_dump_to_file_decorator_tests_8cpp_source.html#l00097">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00064">ProfilingConnectionDumpToFileDecorator::ReadPacket()</a>, and <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00034">ProfilingConnectionDumpToFileDecorator::~ProfilingConnectionDumpToFileDecorator()</a>.</p> |
| 212 | <div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  m_IncomingDumpFileStream.flush();</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  m_IncomingDumpFileStream.close();</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  m_OutgoingDumpFileStream.flush();</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  m_OutgoingDumpFileStream.close();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  m_Connection->Close();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div></div><!-- fragment --> |
| 213 | </div> |
| 214 | </div> |
| 215 | <a id="a91bdc9d5497d47f5d707418beb83b140"></a> |
| 216 | <h2 class="memtitle"><span class="permalink"><a href="#a91bdc9d5497d47f5d707418beb83b140">◆ </a></span>IsOpen()</h2> |
| 217 | |
| 218 | <div class="memitem"> |
| 219 | <div class="memproto"> |
| 220 | <table class="mlabels"> |
| 221 | <tr> |
| 222 | <td class="mlabels-left"> |
| 223 | <table class="memname"> |
| 224 | <tr> |
| 225 | <td class="memname">bool IsOpen </td> |
| 226 | <td>(</td> |
| 227 | <td class="paramname"></td><td>)</td> |
| 228 | <td> const</td> |
| 229 | </tr> |
| 230 | </table> |
| 231 | </td> |
| 232 | <td class="mlabels-right"> |
| 233 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 234 | </tr> |
| 235 | </table> |
| 236 | </div><div class="memdoc"> |
| 237 | |
| 238 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#a8a3511046982c64efa3e3833d749e5ef">IProfilingConnection</a>.</p> |
| 239 | |
| 240 | <p class="definition">Definition at line <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00039">39</a> of file <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html">ProfilingConnectionDumpToFileDecorator.cpp</a>.</p> |
| 241 | <div class="fragment"><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> m_Connection->IsOpen();</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> }</div></div><!-- fragment --> |
| 242 | </div> |
| 243 | </div> |
| 244 | <a id="a1adbda8257d3a74a0566e0d8407ff458"></a> |
| 245 | <h2 class="memtitle"><span class="permalink"><a href="#a1adbda8257d3a74a0566e0d8407ff458">◆ </a></span>ReadPacket()</h2> |
| 246 | |
| 247 | <div class="memitem"> |
| 248 | <div class="memproto"> |
| 249 | <table class="mlabels"> |
| 250 | <tr> |
| 251 | <td class="mlabels-left"> |
| 252 | <table class="memname"> |
| 253 | <tr> |
| 254 | <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_packet.html">Packet</a> ReadPacket </td> |
| 255 | <td>(</td> |
| 256 | <td class="paramtype">uint32_t </td> |
| 257 | <td class="paramname"><em>timeout</em></td><td>)</td> |
| 258 | <td></td> |
| 259 | </tr> |
| 260 | </table> |
| 261 | </td> |
| 262 | <td class="mlabels-right"> |
| 263 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 264 | </tr> |
| 265 | </table> |
| 266 | </div><div class="memdoc"> |
| 267 | |
| 268 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#a935e16d85893a31f23cd78e47b85466d">IProfilingConnection</a>.</p> |
| 269 | |
| 270 | <p class="definition">Definition at line <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00064">64</a> of file <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html">ProfilingConnectionDumpToFileDecorator.cpp</a>.</p> |
| 271 | |
| 272 | <p class="reference">References <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00044">ProfilingConnectionDumpToFileDecorator::Close()</a>, <a class="el" href="_packet_8hpp_source.html#l00075">Packet::GetData()</a>, <a class="el" href="_packet_8hpp_source.html#l00069">Packet::GetHeader()</a>, and <a class="el" href="_packet_8hpp_source.html#l00074">Packet::GetLength()</a>.</p> |
| 273 | |
| 274 | <p class="reference">Referenced by <a class="el" href="_profiling_connection_dump_to_file_decorator_tests_8cpp_source.html#l00079">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 275 | <div class="fragment"><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>  Packet packet = m_Connection->ReadPacket(timeout);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">if</span> (!m_Options.m_IncomingCaptureFile.empty())</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  DumpIncomingToFile(packet);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> packet;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> }</div></div><!-- fragment --> |
| 276 | </div> |
| 277 | </div> |
| 278 | <a id="a42eb542b5a1d73d00c4ce474140bb78c"></a> |
| 279 | <h2 class="memtitle"><span class="permalink"><a href="#a42eb542b5a1d73d00c4ce474140bb78c">◆ </a></span>WritePacket()</h2> |
| 280 | |
| 281 | <div class="memitem"> |
| 282 | <div class="memproto"> |
| 283 | <table class="mlabels"> |
| 284 | <tr> |
| 285 | <td class="mlabels-left"> |
| 286 | <table class="memname"> |
| 287 | <tr> |
| 288 | <td class="memname">bool WritePacket </td> |
| 289 | <td>(</td> |
| 290 | <td class="paramtype">const unsigned char * </td> |
| 291 | <td class="paramname"><em>buffer</em>, </td> |
| 292 | </tr> |
| 293 | <tr> |
| 294 | <td class="paramkey"></td> |
| 295 | <td></td> |
| 296 | <td class="paramtype">uint32_t </td> |
| 297 | <td class="paramname"><em>length</em> </td> |
| 298 | </tr> |
| 299 | <tr> |
| 300 | <td></td> |
| 301 | <td>)</td> |
| 302 | <td></td><td></td> |
| 303 | </tr> |
| 304 | </table> |
| 305 | </td> |
| 306 | <td class="mlabels-right"> |
| 307 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 308 | </tr> |
| 309 | </table> |
| 310 | </div><div class="memdoc"> |
| 311 | |
| 312 | <p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.html#ac78c6bd1a545934a805c88194214b09d">IProfilingConnection</a>.</p> |
| 313 | |
| 314 | <p class="definition">Definition at line <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html#l00053">53</a> of file <a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html">ProfilingConnectionDumpToFileDecorator.cpp</a>.</p> |
| 315 | |
| 316 | <p class="reference">Referenced by <a class="el" href="_profiling_connection_dump_to_file_decorator_tests_8cpp_source.html#l00123">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 317 | <div class="fragment"><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="keywordtype">bool</span> success = <span class="keyword">true</span>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span> (!m_Options.m_OutgoingCaptureFile.empty())</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>  success &= DumpOutgoingToFile(buffer, length);</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>  success &= m_Connection->WritePacket(buffer, length);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> success;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> }</div></div><!-- fragment --> |
| 318 | </div> |
| 319 | </div> |
| 320 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 321 | <li>src/profiling/<a class="el" href="_profiling_connection_dump_to_file_decorator_8hpp_source.html">ProfilingConnectionDumpToFileDecorator.hpp</a></li> |
| 322 | <li>src/profiling/<a class="el" href="_profiling_connection_dump_to_file_decorator_8cpp_source.html">ProfilingConnectionDumpToFileDecorator.cpp</a></li> |
| 323 | </ul> |
| 324 | </div><!-- contents --> |
| 325 | </div><!-- doc-content --> |
| 326 | <!-- start footer part --> |
| 327 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 328 | <ul> |
| 329 | <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_profiling_connection_dump_to_file_decorator.html">ProfilingConnectionDumpToFileDecorator</a></li> |
| 330 | <li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by |
| 331 | <a href="http://www.doxygen.org/index.html"> |
| 332 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 333 | </ul> |
| 334 | </div> |
| 335 | </body> |
| 336 | </html> |