blob: 90e2e0cec4a5e992064ba7eb827816b7e10e3046 [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: MockProfilingConnection 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_mock_profiling_connection.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-types">Public Types</a> &#124;
99<a href="#pub-methods">Public Member Functions</a> &#124;
100<a href="classarmnn_1_1profiling_1_1_mock_profiling_connection-members.xhtml">List of all members</a> </div>
101 <div class="headertitle">
102<div class="title">MockProfilingConnection Class Reference</div> </div>
103</div><!--header-->
104<div class="contents">
105
106<p><code>#include &lt;<a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>&gt;</code></p>
107<div class="dynheader">
108Inheritance diagram for MockProfilingConnection:</div>
109<div class="dyncontent">
110 <div class="center">
111 <img src="classarmnn_1_1profiling_1_1_mock_profiling_connection.png" usemap="#MockProfilingConnection_map" alt=""/>
112 <map id="MockProfilingConnection_map" name="MockProfilingConnection_map">
113<area href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml" alt="IProfilingConnection" shape="rect" coords="0,0,154,24"/>
114</map>
115 </div></div>
116<table class="memberdecls">
117<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
118Public Types</h2></td></tr>
119<tr class="memitem:a0a80a7bc045affcf10846075b88cbca0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a> { <br />
120&#160;&#160;<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ae43273a3645f4894a1088081feb9827d">StreamMetaData</a>,
121<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ab9eaea43754be09188f3b4d2e20f6c95">ConnectionAcknowledge</a>,
122<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ad2cacb6bc37a3363ae810b656e3b6190">CounterDirectory</a>,
123<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a79bb5b82761f89b8d72b4c79a9511c54">ReqCounterDirectory</a>,
124<br />
125&#160;&#160;<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0aebabc0e295bef3bf6d0d659a4843ebe4">PeriodicCounterSelection</a>,
126<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ac0b9859e4ac3c476e5cf6bb0c7a70dc5">PerJobCounterSelection</a>,
127<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b">TimelineMessageDirectory</a>,
128<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7">PeriodicCounterCapture</a>,
129<br />
130&#160;&#160;<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">Unknown</a>
131<br />
132 }</td></tr>
133<tr class="separator:a0a80a7bc045affcf10846075b88cbca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
134</table><table class="memberdecls">
135<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
136Public Member Functions</h2></td></tr>
137<tr class="memitem:a372bdcb3088c30e1a5bb38cf4b30d586"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a372bdcb3088c30e1a5bb38cf4b30d586">MockProfilingConnection</a> ()</td></tr>
138<tr class="separator:a372bdcb3088c30e1a5bb38cf4b30d586"><td class="memSeparator" colspan="2">&#160;</td></tr>
139<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_mock_profiling_connection.xhtml#a91bdc9d5497d47f5d707418beb83b140">IsOpen</a> () const override</td></tr>
140<tr class="separator:a91bdc9d5497d47f5d707418beb83b140"><td class="memSeparator" colspan="2">&#160;</td></tr>
141<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_mock_profiling_connection.xhtml#a0f9aecd570c4e5e6d41337f0e2f1adf5">Close</a> () override</td></tr>
142<tr class="separator:a0f9aecd570c4e5e6d41337f0e2f1adf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
143<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_mock_profiling_connection.xhtml#a42eb542b5a1d73d00c4ce474140bb78c">WritePacket</a> (const unsigned char *buffer, uint32_t length) override</td></tr>
144<tr class="separator:a42eb542b5a1d73d00c4ce474140bb78c"><td class="memSeparator" colspan="2">&#160;</td></tr>
145<tr class="memitem:a1de32cbfa025fc6e4eb2ff7a4fd16d6b"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a1de32cbfa025fc6e4eb2ff7a4fd16d6b">CheckForPacket</a> (const std::pair&lt; <a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a>, uint32_t &gt; packetInfo)</td></tr>
146<tr class="separator:a1de32cbfa025fc6e4eb2ff7a4fd16d6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
147<tr class="memitem:a4ae3f922dfaad569006a2fc2cc12b3a6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a4ae3f922dfaad569006a2fc2cc12b3a6">WritePacket</a> (<a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> &amp;&amp;packet)</td></tr>
148<tr class="separator:a4ae3f922dfaad569006a2fc2cc12b3a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
149<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_mock_profiling_connection.xhtml#a1adbda8257d3a74a0566e0d8407ff458">ReadPacket</a> (uint32_t timeout) override</td></tr>
150<tr class="separator:a1adbda8257d3a74a0566e0d8407ff458"><td class="memSeparator" colspan="2">&#160;</td></tr>
151<tr class="memitem:adc32d741a992ea6f9af3f9e65aebf34d"><td class="memItemLeft" align="right" valign="top">unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#adc32d741a992ea6f9af3f9e65aebf34d">GetWrittenDataSize</a> ()</td></tr>
152<tr class="separator:adc32d741a992ea6f9af3f9e65aebf34d"><td class="memSeparator" colspan="2">&#160;</td></tr>
153<tr class="memitem:aa71d36872f416feaa853788a7a7a7ef8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#aa71d36872f416feaa853788a7a7a7ef8">Clear</a> ()</td></tr>
154<tr class="separator:aa71d36872f416feaa853788a7a7a7ef8"><td class="memSeparator" colspan="2">&#160;</td></tr>
155<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>
156<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>
157<tr class="separator:a8c5a75b8ee005a7aa9391f3991480d74 inherit pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td class="memSeparator" colspan="2">&#160;</td></tr>
158</table>
159<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
160<div class="textblock">
161<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00035">35</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
162</div><h2 class="groupheader">Member Enumeration Documentation</h2>
163<a id="a0a80a7bc045affcf10846075b88cbca0"></a>
164<h2 class="memtitle"><span class="permalink"><a href="#a0a80a7bc045affcf10846075b88cbca0">&#9670;&nbsp;</a></span>PacketType</h2>
165
166<div class="memitem">
167<div class="memproto">
168<table class="mlabels">
169 <tr>
170 <td class="mlabels-left">
171 <table class="memname">
172 <tr>
173 <td class="memname">enum <a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a></td>
174 </tr>
175 </table>
176 </td>
177 <td class="mlabels-right">
178<span class="mlabels"><span class="mlabel">strong</span></span> </td>
179 </tr>
180</table>
181</div><div class="memdoc">
182<table class="fieldtable">
183<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ae43273a3645f4894a1088081feb9827d"></a>StreamMetaData&#160;</td><td class="fielddoc"></td></tr>
184<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ab9eaea43754be09188f3b4d2e20f6c95"></a>ConnectionAcknowledge&#160;</td><td class="fielddoc"></td></tr>
185<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ad2cacb6bc37a3363ae810b656e3b6190"></a>CounterDirectory&#160;</td><td class="fielddoc"></td></tr>
186<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a79bb5b82761f89b8d72b4c79a9511c54"></a>ReqCounterDirectory&#160;</td><td class="fielddoc"></td></tr>
187<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0aebabc0e295bef3bf6d0d659a4843ebe4"></a>PeriodicCounterSelection&#160;</td><td class="fielddoc"></td></tr>
188<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ac0b9859e4ac3c476e5cf6bb0c7a70dc5"></a>PerJobCounterSelection&#160;</td><td class="fielddoc"></td></tr>
189<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b"></a>TimelineMessageDirectory&#160;</td><td class="fielddoc"></td></tr>
190<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7"></a>PeriodicCounterCapture&#160;</td><td class="fielddoc"></td></tr>
191<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e"></a>Unknown&#160;</td><td class="fielddoc"></td></tr>
192</table>
193
194<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00044">44</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
195<div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d">StreamMetaData</a>,</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; ConnectionAcknowledge,</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190">CounterDirectory</a>,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; ReqCounterDirectory,</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; PeriodicCounterSelection,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; PerJobCounterSelection,</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; TimelineMessageDirectory,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; PeriodicCounterCapture,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e">Unknown</a></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; };</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e">armnn::profiling::PackageActivity::Unknown</a></div></div>
196<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d">armnn::profiling::PackageActivity::StreamMetaData</a></div></div>
197<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190">armnn::profiling::PackageActivity::CounterDirectory</a></div></div>
198</div><!-- fragment -->
199</div>
200</div>
201<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
202<a id="a372bdcb3088c30e1a5bb38cf4b30d586"></a>
203<h2 class="memtitle"><span class="permalink"><a href="#a372bdcb3088c30e1a5bb38cf4b30d586">&#9670;&nbsp;</a></span>MockProfilingConnection()</h2>
204
205<div class="memitem">
206<div class="memproto">
207<table class="mlabels">
208 <tr>
209 <td class="mlabels-left">
210 <table class="memname">
211 <tr>
212 <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml">MockProfilingConnection</a> </td>
213 <td>(</td>
214 <td class="paramname"></td><td>)</td>
215 <td></td>
216 </tr>
217 </table>
218 </td>
219 <td class="mlabels-right">
220<span class="mlabels"><span class="mlabel">inline</span></span> </td>
221 </tr>
222</table>
223</div><div class="memdoc">
224
225<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00038">38</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
226<div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; : m_IsOpen(<span class="keyword">true</span>)</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; , m_WrittenData()</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; , m_Packet()</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; {}</div></div><!-- fragment -->
227</div>
228</div>
229<h2 class="groupheader">Member Function Documentation</h2>
230<a id="a1de32cbfa025fc6e4eb2ff7a4fd16d6b"></a>
231<h2 class="memtitle"><span class="permalink"><a href="#a1de32cbfa025fc6e4eb2ff7a4fd16d6b">&#9670;&nbsp;</a></span>CheckForPacket()</h2>
232
233<div class="memitem">
234<div class="memproto">
235<table class="mlabels">
236 <tr>
237 <td class="mlabels-left">
238 <table class="memname">
239 <tr>
240 <td class="memname">long CheckForPacket </td>
241 <td>(</td>
242 <td class="paramtype">const std::pair&lt; <a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a>, uint32_t &gt;&#160;</td>
243 <td class="paramname"><em>packetInfo</em></td><td>)</td>
244 <td></td>
245 </tr>
246 </table>
247 </td>
248 <td class="mlabels-right">
249<span class="mlabels"><span class="mlabel">inline</span></span> </td>
250 </tr>
251</table>
252</div><div class="memdoc">
253
254<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00106">106</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
255
256<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l02107">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_profiling_tests_8hpp_source.xhtml#l00238">SwapProfilingConnectionFactoryHelper::WaitForPacketsSent()</a>.</p>
257<div class="fragment"><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">if</span>(packetInfo.second != 0)</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> std::count(m_WrittenData.begin(), m_WrittenData.end(), packetInfo);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">else</span></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; <span class="keywordflow">return</span> std::count_if(m_WrittenData.begin(), m_WrittenData.end(),</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; [&amp;packetInfo](<span class="keyword">const</span> std::pair&lt;PacketType, uint32_t&gt; pair) { <span class="keywordflow">return</span> packetInfo.first == pair.first; });</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; }</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; }</div></div><!-- fragment -->
258</div>
259</div>
260<a id="aa71d36872f416feaa853788a7a7a7ef8"></a>
261<h2 class="memtitle"><span class="permalink"><a href="#aa71d36872f416feaa853788a7a7a7ef8">&#9670;&nbsp;</a></span>Clear()</h2>
262
263<div class="memitem">
264<div class="memproto">
265<table class="mlabels">
266 <tr>
267 <td class="mlabels-left">
268 <table class="memname">
269 <tr>
270 <td class="memname">void Clear </td>
271 <td>(</td>
272 <td class="paramname"></td><td>)</td>
273 <td></td>
274 </tr>
275 </table>
276 </td>
277 <td class="mlabels-right">
278<span class="mlabels"><span class="mlabel">inline</span></span> </td>
279 </tr>
280</table>
281</div><div class="memdoc">
282
283<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00146">146</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
284
285<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02333">BOOST_AUTO_TEST_CASE()</a>.</p>
286<div class="fragment"><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; m_WrittenData.clear();</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; }</div></div><!-- fragment -->
287</div>
288</div>
289<a id="a0f9aecd570c4e5e6d41337f0e2f1adf5"></a>
290<h2 class="memtitle"><span class="permalink"><a href="#a0f9aecd570c4e5e6d41337f0e2f1adf5">&#9670;&nbsp;</a></span>Close()</h2>
291
292<div class="memitem">
293<div class="memproto">
294<table class="mlabels">
295 <tr>
296 <td class="mlabels-left">
297 <table class="memname">
298 <tr>
299 <td class="memname">void Close </td>
300 <td>(</td>
301 <td class="paramname"></td><td>)</td>
302 <td></td>
303 </tr>
304 </table>
305 </td>
306 <td class="mlabels-right">
307<span class="mlabels"><span class="mlabel">inline</span><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.xhtml#aacb6d0e5e6d570cdc2b0da14c3921ff0">IProfilingConnection</a>.</p>
313
314<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00064">64</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
315<div class="fragment"><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; {</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; m_IsOpen = <span class="keyword">false</span>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div></div><!-- fragment -->
316</div>
317</div>
318<a id="adc32d741a992ea6f9af3f9e65aebf34d"></a>
319<h2 class="memtitle"><span class="permalink"><a href="#adc32d741a992ea6f9af3f9e65aebf34d">&#9670;&nbsp;</a></span>GetWrittenDataSize()</h2>
320
321<div class="memitem">
322<div class="memproto">
323<table class="mlabels">
324 <tr>
325 <td class="mlabels-left">
326 <table class="memname">
327 <tr>
328 <td class="memname">unsigned long GetWrittenDataSize </td>
329 <td>(</td>
330 <td class="paramname"></td><td>)</td>
331 <td></td>
332 </tr>
333 </table>
334 </td>
335 <td class="mlabels-right">
336<span class="mlabels"><span class="mlabel">inline</span></span> </td>
337 </tr>
338</table>
339</div><div class="memdoc">
340
341<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00139">139</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
342
343<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02810">BOOST_AUTO_TEST_CASE()</a>.</p>
344<div class="fragment"><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordflow">return</span> m_WrittenData.size();</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; }</div></div><!-- fragment -->
345</div>
346</div>
347<a id="a91bdc9d5497d47f5d707418beb83b140"></a>
348<h2 class="memtitle"><span class="permalink"><a href="#a91bdc9d5497d47f5d707418beb83b140">&#9670;&nbsp;</a></span>IsOpen()</h2>
349
350<div class="memitem">
351<div class="memproto">
352<table class="mlabels">
353 <tr>
354 <td class="mlabels-left">
355 <table class="memname">
356 <tr>
357 <td class="memname">bool IsOpen </td>
358 <td>(</td>
359 <td class="paramname"></td><td>)</td>
360 <td> const</td>
361 </tr>
362 </table>
363 </td>
364 <td class="mlabels-right">
365<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
366 </tr>
367</table>
368</div><div class="memdoc">
369
370<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#a8a3511046982c64efa3e3833d749e5ef">IProfilingConnection</a>.</p>
371
372<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00057">57</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
373
374<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02753">BOOST_AUTO_TEST_CASE()</a>.</p>
375<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">return</span> m_IsOpen;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div></div><!-- fragment -->
376</div>
377</div>
378<a id="a1adbda8257d3a74a0566e0d8407ff458"></a>
379<h2 class="memtitle"><span class="permalink"><a href="#a1adbda8257d3a74a0566e0d8407ff458">&#9670;&nbsp;</a></span>ReadPacket()</h2>
380
381<div class="memitem">
382<div class="memproto">
383<table class="mlabels">
384 <tr>
385 <td class="mlabels-left">
386 <table class="memname">
387 <tr>
388 <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> ReadPacket </td>
389 <td>(</td>
390 <td class="paramtype">uint32_t&#160;</td>
391 <td class="paramname"><em>timeout</em></td><td>)</td>
392 <td></td>
393 </tr>
394 </table>
395 </td>
396 <td class="mlabels-right">
397<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
398 </tr>
399</table>
400</div><div class="memdoc">
401
402<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#a935e16d85893a31f23cd78e47b85466d">IProfilingConnection</a>.</p>
403
404<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00129">129</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
405
406<p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p>
407<div class="fragment"><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(timeout);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="comment">// Simulate a delay in the reading process. The default timeout is way too long.</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; std::this_thread::sleep_for(std::chrono::milliseconds(5));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordflow">return</span> std::move(m_Packet);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &amp;&amp;...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div>
408</div><!-- fragment -->
409</div>
410</div>
411<a id="a42eb542b5a1d73d00c4ce474140bb78c"></a>
412<h2 class="memtitle"><span class="permalink"><a href="#a42eb542b5a1d73d00c4ce474140bb78c">&#9670;&nbsp;</a></span>WritePacket() <span class="overload">[1/2]</span></h2>
413
414<div class="memitem">
415<div class="memproto">
416<table class="mlabels">
417 <tr>
418 <td class="mlabels-left">
419 <table class="memname">
420 <tr>
421 <td class="memname">bool WritePacket </td>
422 <td>(</td>
423 <td class="paramtype">const unsigned char *&#160;</td>
424 <td class="paramname"><em>buffer</em>, </td>
425 </tr>
426 <tr>
427 <td class="paramkey"></td>
428 <td></td>
429 <td class="paramtype">uint32_t&#160;</td>
430 <td class="paramname"><em>length</em>&#160;</td>
431 </tr>
432 <tr>
433 <td></td>
434 <td>)</td>
435 <td></td><td></td>
436 </tr>
437 </table>
438 </td>
439 <td class="mlabels-right">
440<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
441 </tr>
442</table>
443</div><div class="memdoc">
444
445<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#ac78c6bd1a545934a805c88194214b09d">IProfilingConnection</a>.</p>
446
447<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00071">71</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
448
449<p class="reference">References <a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7">MockProfilingConnection::PeriodicCounterCapture</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">armnn::profiling::ReadUint32()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b">MockProfilingConnection::TimelineMessageDirectory</a>, and <a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">MockProfilingConnection::Unknown</a>.</p>
450
451<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02333">BOOST_AUTO_TEST_CASE()</a>.</p>
452<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || length == 0)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; {</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; }</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; uint32_t header = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer, 0);</div><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; uint32_t packetFamily = (header &gt;&gt; 26);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; uint32_t packetId = ((header &gt;&gt; 16) &amp; 1023);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="code" href="_profiling_tests_8cpp.xhtml#a50c4e63be72ccec884654d07f81bc9e9">PacketType</a> packetType;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">switch</span> (packetFamily)</div><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="keywordflow">case</span> 0:</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; packetType = packetId &lt; 6 ? <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a>(packetId) : PacketType::<a class="code" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e">Unknown</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">case</span> 1:</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; packetType = packetId == 0 ? <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b">PacketType::TimelineMessageDirectory</a> : <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">PacketType::Unknown</a>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordflow">case</span> 3:</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; packetType = packetId == 0 ? <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7">PacketType::PeriodicCounterCapture</a> : <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">PacketType::Unknown</a>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">default</span>:</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; packetType = <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">PacketType::Unknown</a>;</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="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; m_WrittenData.push_back({ packetType, length });</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; }</div><div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">armnn::profiling::MockProfilingConnection::PacketType::Unknown</a></div></div>
453<div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b">armnn::profiling::MockProfilingConnection::PacketType::TimelineMessageDirectory</a></div></div>
454<div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">armnn::profiling::MockProfilingConnection::PacketType</a></div><div class="ttdeci">PacketType</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00044">ProfilingMocks.hpp:44</a></div></div>
455<div class="ttc" id="_profiling_tests_8cpp_xhtml_a50c4e63be72ccec884654d07f81bc9e9"><div class="ttname"><a href="_profiling_tests_8cpp.xhtml#a50c4e63be72ccec884654d07f81bc9e9">PacketType</a></div><div class="ttdeci">MockProfilingConnection::PacketType PacketType</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_tests_8cpp_source.xhtml#l00051">ProfilingTests.cpp:51</a></div></div>
456<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e">armnn::profiling::PackageActivity::Unknown</a></div></div>
457<div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7">armnn::profiling::MockProfilingConnection::PacketType::PeriodicCounterCapture</a></div></div>
458<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const IPacketBufferPtr &amp;packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00204">ProfilingUtils.cpp:204</a></div></div>
459</div><!-- fragment -->
460</div>
461</div>
462<a id="a4ae3f922dfaad569006a2fc2cc12b3a6"></a>
463<h2 class="memtitle"><span class="permalink"><a href="#a4ae3f922dfaad569006a2fc2cc12b3a6">&#9670;&nbsp;</a></span>WritePacket() <span class="overload">[2/2]</span></h2>
464
465<div class="memitem">
466<div class="memproto">
467<table class="mlabels">
468 <tr>
469 <td class="mlabels-left">
470 <table class="memname">
471 <tr>
472 <td class="memname">bool WritePacket </td>
473 <td>(</td>
474 <td class="paramtype"><a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> &amp;&amp;&#160;</td>
475 <td class="paramname"><em>packet</em></td><td>)</td>
476 <td></td>
477 </tr>
478 </table>
479 </td>
480 <td class="mlabels-right">
481<span class="mlabels"><span class="mlabel">inline</span></span> </td>
482 </tr>
483</table>
484</div><div class="memdoc">
485
486<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00121">121</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
487<div class="fragment"><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; {</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; m_Packet = std::move(packet);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; }</div></div><!-- fragment -->
488</div>
489</div>
490<hr/>The documentation for this class was generated from the following file:<ul>
491<li>src/profiling/test/<a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a></li>
492</ul>
493</div><!-- contents -->
494</div><!-- doc-content -->
495<!-- start footer part -->
496<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
497 <ul>
498 <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_mock_profiling_connection.xhtml">MockProfilingConnection</a></li>
499 <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by
500 <a href="http://www.doxygen.org/index.html">
501 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
502 </ul>
503</div>
504</body>
505</html>