blob: ded3f1fc2e24a77d82bd6e75743520150a05e141 [file] [log] [blame]
mathad01add078b2021-05-10 16:51:20 +01001<!-- 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">21.05</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#a0a80a7bc045affcf10846075b88cbca0a2f84b9fefbbd5a3bc6d655e9ddb70547">ActivateTimelineReporting</a>,
131<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ae1161354f5dc60bd440e23cc4ecbfa5a">DeactivateTimelineReporting</a>,
132<a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">Unknown</a>
133<br />
134 }</td></tr>
135<tr class="separator:a0a80a7bc045affcf10846075b88cbca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
136</table><table class="memberdecls">
137<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
138Public Member Functions</h2></td></tr>
139<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>
140<tr class="separator:a372bdcb3088c30e1a5bb38cf4b30d586"><td class="memSeparator" colspan="2">&#160;</td></tr>
141<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>
142<tr class="separator:a91bdc9d5497d47f5d707418beb83b140"><td class="memSeparator" colspan="2">&#160;</td></tr>
143<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>
144<tr class="separator:a0f9aecd570c4e5e6d41337f0e2f1adf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
145<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>
146<tr class="separator:a42eb542b5a1d73d00c4ce474140bb78c"><td class="memSeparator" colspan="2">&#160;</td></tr>
147<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>
148<tr class="separator:a1de32cbfa025fc6e4eb2ff7a4fd16d6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
149<tr class="memitem:aae7fa615d4a944a10122344cf8bbd1be"><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#aae7fa615d4a944a10122344cf8bbd1be">WritePacket</a> (arm::pipe::Packet &amp;&amp;packet)</td></tr>
150<tr class="separator:aae7fa615d4a944a10122344cf8bbd1be"><td class="memSeparator" colspan="2">&#160;</td></tr>
151<tr class="memitem:a47c113357d105d4f7a549a058e5661ab"><td class="memItemLeft" align="right" valign="top">arm::pipe::Packet&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a47c113357d105d4f7a549a058e5661ab">ReadPacket</a> (uint32_t timeout) override</td></tr>
152<tr class="separator:a47c113357d105d4f7a549a058e5661ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
153<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>
154<tr class="separator:adc32d741a992ea6f9af3f9e65aebf34d"><td class="memSeparator" colspan="2">&#160;</td></tr>
155<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>
156<tr class="separator:aa71d36872f416feaa853788a7a7a7ef8"><td class="memSeparator" colspan="2">&#160;</td></tr>
157<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>
158<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>
159<tr class="separator:a8c5a75b8ee005a7aa9391f3991480d74 inherit pub_methods_classarmnn_1_1profiling_1_1_i_profiling_connection"><td class="memSeparator" colspan="2">&#160;</td></tr>
160</table>
161<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
162<div class="textblock">
163<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>
164</div><h2 class="groupheader">Member Enumeration Documentation</h2>
165<a id="a0a80a7bc045affcf10846075b88cbca0"></a>
166<h2 class="memtitle"><span class="permalink"><a href="#a0a80a7bc045affcf10846075b88cbca0">&#9670;&nbsp;</a></span>PacketType</h2>
167
168<div class="memitem">
169<div class="memproto">
170<table class="mlabels">
171 <tr>
172 <td class="mlabels-left">
173 <table class="memname">
174 <tr>
175 <td class="memname">enum <a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a></td>
176 </tr>
177 </table>
178 </td>
179 <td class="mlabels-right">
180<span class="mlabels"><span class="mlabel">strong</span></span> </td>
181 </tr>
182</table>
183</div><div class="memdoc">
184<table class="fieldtable">
185<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ae43273a3645f4894a1088081feb9827d"></a>StreamMetaData&#160;</td><td class="fielddoc"></td></tr>
186<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ab9eaea43754be09188f3b4d2e20f6c95"></a>ConnectionAcknowledge&#160;</td><td class="fielddoc"></td></tr>
187<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ad2cacb6bc37a3363ae810b656e3b6190"></a>CounterDirectory&#160;</td><td class="fielddoc"></td></tr>
188<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a79bb5b82761f89b8d72b4c79a9511c54"></a>ReqCounterDirectory&#160;</td><td class="fielddoc"></td></tr>
189<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0aebabc0e295bef3bf6d0d659a4843ebe4"></a>PeriodicCounterSelection&#160;</td><td class="fielddoc"></td></tr>
190<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ac0b9859e4ac3c476e5cf6bb0c7a70dc5"></a>PerJobCounterSelection&#160;</td><td class="fielddoc"></td></tr>
191<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b"></a>TimelineMessageDirectory&#160;</td><td class="fielddoc"></td></tr>
192<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7"></a>PeriodicCounterCapture&#160;</td><td class="fielddoc"></td></tr>
193<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a2f84b9fefbbd5a3bc6d655e9ddb70547"></a>ActivateTimelineReporting&#160;</td><td class="fielddoc"></td></tr>
194<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0ae1161354f5dc60bd440e23cc4ecbfa5a"></a>DeactivateTimelineReporting&#160;</td><td class="fielddoc"></td></tr>
195<tr><td class="fieldname"><a id="a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e"></a>Unknown&#160;</td><td class="fielddoc"></td></tr>
196</table>
197
198<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>
199<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; StreamMetaData,</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; CounterDirectory,</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; ActivateTimelineReporting,</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; DeactivateTimelineReporting,</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; Unknown</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; };</div></div><!-- fragment -->
200</div>
201</div>
202<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
203<a id="a372bdcb3088c30e1a5bb38cf4b30d586"></a>
204<h2 class="memtitle"><span class="permalink"><a href="#a372bdcb3088c30e1a5bb38cf4b30d586">&#9670;&nbsp;</a></span>MockProfilingConnection()</h2>
205
206<div class="memitem">
207<div class="memproto">
208<table class="mlabels">
209 <tr>
210 <td class="mlabels-left">
211 <table class="memname">
212 <tr>
213 <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml">MockProfilingConnection</a> </td>
214 <td>(</td>
215 <td class="paramname"></td><td>)</td>
216 <td></td>
217 </tr>
218 </table>
219 </td>
220 <td class="mlabels-right">
221<span class="mlabels"><span class="mlabel">inline</span></span> </td>
222 </tr>
223</table>
224</div><div class="memdoc">
225
226<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>
227<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 -->
228</div>
229</div>
230<h2 class="groupheader">Member Function Documentation</h2>
231<a id="a1de32cbfa025fc6e4eb2ff7a4fd16d6b"></a>
232<h2 class="memtitle"><span class="permalink"><a href="#a1de32cbfa025fc6e4eb2ff7a4fd16d6b">&#9670;&nbsp;</a></span>CheckForPacket()</h2>
233
234<div class="memitem">
235<div class="memproto">
236<table class="mlabels">
237 <tr>
238 <td class="mlabels-left">
239 <table class="memname">
240 <tr>
241 <td class="memname">long CheckForPacket </td>
242 <td>(</td>
243 <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>
244 <td class="paramname"><em>packetInfo</em></td><td>)</td>
245 <td></td>
246 </tr>
247 </table>
248 </td>
249 <td class="mlabels-right">
250<span class="mlabels"><span class="mlabel">inline</span></span> </td>
251 </tr>
252</table>
253</div><div class="memdoc">
254
255<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00108">108</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
256
257<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l02147">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_profiling_tests_8hpp_source.xhtml#l00242">SwapProfilingConnectionFactoryHelper::WaitForPacketsSent()</a>.</p>
258<div class="fragment"><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; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</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">if</span>(packetInfo.second != 0)</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">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(std::count(m_WrittenData.begin(), m_WrittenData.end(), packetInfo));</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">else</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">long</span><span class="keyword">&gt;</span>(std::count_if(m_WrittenData.begin(), m_WrittenData.end(),</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</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="l00120"></a><span class="lineno"> 120</span>&#160; }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; }</div></div><!-- fragment -->
259</div>
260</div>
261<a id="aa71d36872f416feaa853788a7a7a7ef8"></a>
262<h2 class="memtitle"><span class="permalink"><a href="#aa71d36872f416feaa853788a7a7a7ef8">&#9670;&nbsp;</a></span>Clear()</h2>
263
264<div class="memitem">
265<div class="memproto">
266<table class="mlabels">
267 <tr>
268 <td class="mlabels-left">
269 <table class="memname">
270 <tr>
271 <td class="memname">void Clear </td>
272 <td>(</td>
273 <td class="paramname"></td><td>)</td>
274 <td></td>
275 </tr>
276 </table>
277 </td>
278 <td class="mlabels-right">
279<span class="mlabels"><span class="mlabel">inline</span></span> </td>
280 </tr>
281</table>
282</div><div class="memdoc">
283
284<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00148">148</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
285
286<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02546">BOOST_AUTO_TEST_CASE()</a>.</p>
287<div class="fragment"><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; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; m_WrittenData.clear();</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; }</div></div><!-- fragment -->
288</div>
289</div>
290<a id="a0f9aecd570c4e5e6d41337f0e2f1adf5"></a>
291<h2 class="memtitle"><span class="permalink"><a href="#a0f9aecd570c4e5e6d41337f0e2f1adf5">&#9670;&nbsp;</a></span>Close()</h2>
292
293<div class="memitem">
294<div class="memproto">
295<table class="mlabels">
296 <tr>
297 <td class="mlabels-left">
298 <table class="memname">
299 <tr>
300 <td class="memname">void Close </td>
301 <td>(</td>
302 <td class="paramname"></td><td>)</td>
303 <td></td>
304 </tr>
305 </table>
306 </td>
307 <td class="mlabels-right">
308<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
309 </tr>
310</table>
311</div><div class="memdoc">
312
313<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#aacb6d0e5e6d570cdc2b0da14c3921ff0">IProfilingConnection</a>.</p>
314
315<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00066">66</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
316<div class="fragment"><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; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; m_IsOpen = <span class="keyword">false</span>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; }</div></div><!-- fragment -->
317</div>
318</div>
319<a id="adc32d741a992ea6f9af3f9e65aebf34d"></a>
320<h2 class="memtitle"><span class="permalink"><a href="#adc32d741a992ea6f9af3f9e65aebf34d">&#9670;&nbsp;</a></span>GetWrittenDataSize()</h2>
321
322<div class="memitem">
323<div class="memproto">
324<table class="mlabels">
325 <tr>
326 <td class="mlabels-left">
327 <table class="memname">
328 <tr>
329 <td class="memname">unsigned long GetWrittenDataSize </td>
330 <td>(</td>
331 <td class="paramname"></td><td>)</td>
332 <td></td>
333 </tr>
334 </table>
335 </td>
336 <td class="mlabels-right">
337<span class="mlabels"><span class="mlabel">inline</span></span> </td>
338 </tr>
339</table>
340</div><div class="memdoc">
341
342<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00141">141</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
343
344<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l03024">BOOST_AUTO_TEST_CASE()</a>.</p>
345<div class="fragment"><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; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">long</span><span class="keyword">&gt;</span>(m_WrittenData.size());</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; }</div></div><!-- fragment -->
346</div>
347</div>
348<a id="a91bdc9d5497d47f5d707418beb83b140"></a>
349<h2 class="memtitle"><span class="permalink"><a href="#a91bdc9d5497d47f5d707418beb83b140">&#9670;&nbsp;</a></span>IsOpen()</h2>
350
351<div class="memitem">
352<div class="memproto">
353<table class="mlabels">
354 <tr>
355 <td class="mlabels-left">
356 <table class="memname">
357 <tr>
358 <td class="memname">bool IsOpen </td>
359 <td>(</td>
360 <td class="paramname"></td><td>)</td>
361 <td> const</td>
362 </tr>
363 </table>
364 </td>
365 <td class="mlabels-right">
366<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
367 </tr>
368</table>
369</div><div class="memdoc">
370
371<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#a8a3511046982c64efa3e3833d749e5ef">IProfilingConnection</a>.</p>
372
373<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00059">59</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
374
375<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02966">BOOST_AUTO_TEST_CASE()</a>.</p>
376<div class="fragment"><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; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> m_IsOpen;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; }</div></div><!-- fragment -->
377</div>
378</div>
379<a id="a47c113357d105d4f7a549a058e5661ab"></a>
380<h2 class="memtitle"><span class="permalink"><a href="#a47c113357d105d4f7a549a058e5661ab">&#9670;&nbsp;</a></span>ReadPacket()</h2>
381
382<div class="memitem">
383<div class="memproto">
384<table class="mlabels">
385 <tr>
386 <td class="mlabels-left">
387 <table class="memname">
388 <tr>
389 <td class="memname">arm::pipe::Packet ReadPacket </td>
390 <td>(</td>
391 <td class="paramtype">uint32_t&#160;</td>
392 <td class="paramname"><em>timeout</em></td><td>)</td>
393 <td></td>
394 </tr>
395 </table>
396 </td>
397 <td class="mlabels-right">
398<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
399 </tr>
400</table>
401</div><div class="memdoc">
402
403<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#a5247de645666d82d97c2b047835404ee">IProfilingConnection</a>.</p>
404
405<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00131">131</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
406
407<p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p>
408<div class="fragment"><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; <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(timeout);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</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="l00136"></a><span class="lineno"> 136</span>&#160; std::this_thread::sleep_for(std::chrono::milliseconds(5));</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">return</span> std::move(m_Packet);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</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>
409</div><!-- fragment -->
410</div>
411</div>
412<a id="a42eb542b5a1d73d00c4ce474140bb78c"></a>
413<h2 class="memtitle"><span class="permalink"><a href="#a42eb542b5a1d73d00c4ce474140bb78c">&#9670;&nbsp;</a></span>WritePacket() <span class="overload">[1/2]</span></h2>
414
415<div class="memitem">
416<div class="memproto">
417<table class="mlabels">
418 <tr>
419 <td class="mlabels-left">
420 <table class="memname">
421 <tr>
422 <td class="memname">bool WritePacket </td>
423 <td>(</td>
424 <td class="paramtype">const unsigned char *&#160;</td>
425 <td class="paramname"><em>buffer</em>, </td>
426 </tr>
427 <tr>
428 <td class="paramkey"></td>
429 <td></td>
430 <td class="paramtype">uint32_t&#160;</td>
431 <td class="paramname"><em>length</em>&#160;</td>
432 </tr>
433 <tr>
434 <td></td>
435 <td>)</td>
436 <td></td><td></td>
437 </tr>
438 </table>
439 </td>
440 <td class="mlabels-right">
441<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
442 </tr>
443</table>
444</div><div class="memdoc">
445
446<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml#ac78c6bd1a545934a805c88194214b09d">IProfilingConnection</a>.</p>
447
448<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00073">73</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
449
450<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#l00181">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>
451
452<p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02546">BOOST_AUTO_TEST_CASE()</a>.</p>
453<div class="fragment"><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">if</span> (buffer == <span class="keyword">nullptr</span> || length == 0)</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; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; }</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 header = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer, 0);</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; uint32_t packetFamily = (header &gt;&gt; 26);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; uint32_t packetId = ((header &gt;&gt; 16) &amp; 1023);</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; <a class="code" href="_profiling_tests_8cpp.xhtml#a50c4e63be72ccec884654d07f81bc9e9">PacketType</a> packetType;</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">switch</span> (packetFamily)</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; {</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">case</span> 0:</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; packetType = packetId &lt; 8 ? <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a>(packetId) : PacketType::Unknown;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">case</span> 1:</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</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="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">case</span> 3:</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</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="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">default</span>:</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</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="l00100"></a><span class="lineno"> 100</span>&#160; }</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; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; m_WrittenData.push_back({ packetType, length });</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</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>
454<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>
455<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>
456<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#l00052">ProfilingTests.cpp:52</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#l00181">ProfilingUtils.cpp:181</a></div></div>
459</div><!-- fragment -->
460</div>
461</div>
462<a id="aae7fa615d4a944a10122344cf8bbd1be"></a>
463<h2 class="memtitle"><span class="permalink"><a href="#aae7fa615d4a944a10122344cf8bbd1be">&#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">arm::pipe::Packet &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#l00123">123</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="l00124"></a><span class="lineno"> 124</span>&#160; {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; std::lock_guard&lt;std::mutex&gt; lock(m_Mutex);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; m_Packet = std::move(packet);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</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 Mon May 10 2021 16:39:57 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>