aboutsummaryrefslogtreecommitdiff
path: root/21.02/classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml
blob: 932e50203a7d2b708e1dc9ed18cd9c3c97407e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
<!-- Copyright (c) 2020 ARM Limited. -->
<!--                                 -->
<!-- SPDX-License-Identifier: MIT    -->
<!--                                 -->
<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: SendTimelinePacket Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
  <td style="padding-left: 0.5em;">
   <div id="projectname">
   &#160;<span id="projectnumber">21.02</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classarmnn_1_1profiling_1_1_send_timeline_packet-members.xhtml">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SendTimelinePacket Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_send_timeline_packet_8hpp_source.xhtml">SendTimelinePacket.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SendTimelinePacket:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classarmnn_1_1profiling_1_1_send_timeline_packet.png" usemap="#SendTimelinePacket_map" alt=""/>
  <map id="SendTimelinePacket_map" name="SendTimelinePacket_map">
<area href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml" alt="ISendTimelinePacket" shape="rect" coords="0,0,128,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a05059cbd48e6062eb75159827604ebe5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#a05059cbd48e6062eb75159827604ebe5">SendTimelinePacket</a> (<a class="el" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">IBufferManager</a> &amp;bufferManager)</td></tr>
<tr class="separator:a05059cbd48e6062eb75159827604ebe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9021304686f700d19d1d295baeaab39"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#af9021304686f700d19d1d295baeaab39">Commit</a> () override</td></tr>
<tr class="memdesc:af9021304686f700d19d1d295baeaab39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Commits the current buffer and reset the member variables.  <a href="#af9021304686f700d19d1d295baeaab39">More...</a><br /></td></tr>
<tr class="separator:af9021304686f700d19d1d295baeaab39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48386cd82ddc0f5e4326fe74aaca6785"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#a48386cd82ddc0f5e4326fe74aaca6785">SendTimelineEntityBinaryPacket</a> (uint64_t profilingGuid) override</td></tr>
<tr class="memdesc:a48386cd82ddc0f5e4326fe74aaca6785"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and write a TimelineEntityBinaryPacket from the parameters to the buffer.  <a href="#a48386cd82ddc0f5e4326fe74aaca6785">More...</a><br /></td></tr>
<tr class="separator:a48386cd82ddc0f5e4326fe74aaca6785"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c039087bfccb3124f256d1299a884dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#a0c039087bfccb3124f256d1299a884dd">SendTimelineEventBinaryPacket</a> (uint64_t timestamp, int threadId, uint64_t profilingGuid) override</td></tr>
<tr class="memdesc:a0c039087bfccb3124f256d1299a884dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and write a TimelineEventBinaryPacket from the parameters to the buffer.  <a href="#a0c039087bfccb3124f256d1299a884dd">More...</a><br /></td></tr>
<tr class="separator:a0c039087bfccb3124f256d1299a884dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e9e4931dca26558ba5015f61f455108"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#a3e9e4931dca26558ba5015f61f455108">SendTimelineEventClassBinaryPacket</a> (uint64_t profilingGuid, uint64_t nameGuid) override</td></tr>
<tr class="memdesc:a3e9e4931dca26558ba5015f61f455108"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and write a TimelineEventClassBinaryPacket from the parameters to the buffer.  <a href="#a3e9e4931dca26558ba5015f61f455108">More...</a><br /></td></tr>
<tr class="separator:a3e9e4931dca26558ba5015f61f455108"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefad76a72ee0bb54f465d4b4c064b189"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#aefad76a72ee0bb54f465d4b4c064b189">SendTimelineLabelBinaryPacket</a> (uint64_t profilingGuid, const std::string &amp;label) override</td></tr>
<tr class="memdesc:aefad76a72ee0bb54f465d4b4c064b189"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and write a TimelineLabelBinaryPacket from the parameters to the buffer.  <a href="#aefad76a72ee0bb54f465d4b4c064b189">More...</a><br /></td></tr>
<tr class="separator:aefad76a72ee0bb54f465d4b4c064b189"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd0d8c7ed93283f25fd8a1d1e433842f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#afd0d8c7ed93283f25fd8a1d1e433842f">SendTimelineMessageDirectoryPackage</a> () override</td></tr>
<tr class="memdesc:afd0d8c7ed93283f25fd8a1d1e433842f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and write a TimelineMessageDirectoryPackage in the buffer.  <a href="#afd0d8c7ed93283f25fd8a1d1e433842f">More...</a><br /></td></tr>
<tr class="separator:afd0d8c7ed93283f25fd8a1d1e433842f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3abfaceb8268196e9bca18b3aa47a4b6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#a3abfaceb8268196e9bca18b3aa47a4b6">SendTimelineRelationshipBinaryPacket</a> (<a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, uint64_t attributeGuid) override</td></tr>
<tr class="memdesc:a3abfaceb8268196e9bca18b3aa47a4b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and write a TimelineRelationshipBinaryPacket from the parameters to the buffer.  <a href="#a3abfaceb8268196e9bca18b3aa47a4b6">More...</a><br /></td></tr>
<tr class="separator:a3abfaceb8268196e9bca18b3aa47a4b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_send_timeline_packet"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_send_timeline_packet')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml">ISendTimelinePacket</a></td></tr>
<tr class="memitem:a86e61b430276d7fe2861e2b3ac30221c inherit pub_methods_classarmnn_1_1profiling_1_1_i_send_timeline_packet"><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_send_timeline_packet.xhtml#a86e61b430276d7fe2861e2b3ac30221c">~ISendTimelinePacket</a> ()</td></tr>
<tr class="separator:a86e61b430276d7fe2861e2b3ac30221c inherit pub_methods_classarmnn_1_1profiling_1_1_i_send_timeline_packet"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00022">22</a> of file <a class="el" href="_send_timeline_packet_8hpp_source.xhtml">SendTimelinePacket.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a05059cbd48e6062eb75159827604ebe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05059cbd48e6062eb75159827604ebe5">&#9670;&nbsp;</a></span>SendTimelinePacket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml">SendTimelinePacket</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">IBufferManager</a> &amp;&#160;</td>
          <td class="paramname"><em>bufferManager</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">25</a> of file <a class="el" href="_send_timeline_packet_8hpp_source.xhtml">SendTimelinePacket.hpp</a>.</p>

<p class="reference">References <a class="el" href="_assert_8hpp_source.xhtml#l00014">ARMNN_ASSERT</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00197">CHECK_LOCATION</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00014">SendTimelinePacket::Commit()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0a902b0d55fddef6f8d651fe1035b7d4bd">armnn::profiling::Error</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00085">SendTimelinePacket::SendTimelineEntityBinaryPacket()</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00091">SendTimelinePacket::SendTimelineEventBinaryPacket()</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00101">SendTimelinePacket::SendTimelineEventClassBinaryPacket()</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00108">SendTimelinePacket::SendTimelineLabelBinaryPacket()</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00129">SendTimelinePacket::SendTimelineMessageDirectoryPackage()</a>, and <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00115">SendTimelinePacket::SendTimelineRelationshipBinaryPacket()</a>.</p>
<div class="fragment"><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;      : m_BufferManager(bufferManager)</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;      , m_WriteBuffer(<span class="keyword">nullptr</span>)</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;      , m_Offset(8u)</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;      , m_RemainingBufferSize(0u)</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    {}</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="af9021304686f700d19d1d295baeaab39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9021304686f700d19d1d295baeaab39">&#9670;&nbsp;</a></span>Commit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Commit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Commits the current buffer and reset the member variables. </p>

<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml#afa8522a76e7102e41d7c73a34fe493d4">ISendTimelinePacket</a>.</p>

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00014">14</a> of file <a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a>.</p>

<p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::BufferExhaustion</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00197">CHECK_LOCATION</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml#ad0faa8a317506b2e72252f087c7f3c46">IBufferManager::Commit()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00263">armnn::profiling::CreateTimelinePacketHeader()</a>, <a class="el" href="_i_buffer_manager_8hpp_source.xhtml#l00013">MAX_METADATA_PACKET_LENGTH</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml#a49c88b0e052621f30462c3bdbf3e4a7a">IBufferManager::Reserve()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00121">armnn::profiling::WriteUint32()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00129">SendTimelinePacket::SendTimelineMessageDirectoryPackage()</a>, and <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">SendTimelinePacket::SendTimelinePacket()</a>.</p>
<div class="fragment"><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="keywordflow">if</span> (m_WriteBuffer == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <span class="comment">// Can&#39;t commit from a null buffer</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    }</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">if</span> (!m_DirectoryPackage)</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="comment">// Datalength should be Offset minus the two header words</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        m_PacketDataLength = m_Offset - m_uint32_t_size * 2;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        <span class="comment">// Reset offset to prepend header with full packet datalength</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        m_Offset = 0;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <span class="comment">// Add header before commit</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        m_PacketHeader = <a class="code" href="namespacearmnn_1_1profiling.xhtml#aca8b4bad45009e1d42dc8de69a0b7e2c">CreateTimelinePacketHeader</a>(1,0,1,0,0,m_PacketDataLength);</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="comment">// Write the timeline binary packet header to the buffer</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <a class="code" href="namespacearmnn_1_1profiling.xhtml#a3e638748a39d46e2943dfcef94dcb828">WriteUint32</a>(m_WriteBuffer-&gt;GetWritableData(), m_Offset, m_PacketHeader.first);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        m_Offset += m_uint32_t_size;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <a class="code" href="namespacearmnn_1_1profiling.xhtml#a3e638748a39d46e2943dfcef94dcb828">WriteUint32</a>(m_WriteBuffer-&gt;GetWritableData(), m_Offset, m_PacketHeader.second);</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        m_BufferManager.<a class="code" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml#ad0faa8a317506b2e72252f087c7f3c46">Commit</a>(m_WriteBuffer, m_PacketDataLength + m_uint32_t_size * 2);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    }</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    {</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        m_DirectoryPackage = <span class="keyword">false</span>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        m_BufferManager.<a class="code" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml#ad0faa8a317506b2e72252f087c7f3c46">Commit</a>(m_WriteBuffer, m_Offset);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    }</div><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;    <span class="comment">// Commit the message</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    m_WriteBuffer.reset(<span class="keyword">nullptr</span>);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="comment">// Reset offset to start after prepended header</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    m_Offset = 8;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    m_RemainingBufferSize = 0;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a3e638748a39d46e2943dfcef94dcb828"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a3e638748a39d46e2943dfcef94dcb828">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(const IPacketBufferPtr &amp;packetBuffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00121">ProfilingUtils.cpp:121</a></div></div>
<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aca8b4bad45009e1d42dc8de69a0b7e2c"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aca8b4bad45009e1d42dc8de69a0b7e2c">armnn::profiling::CreateTimelinePacketHeader</a></div><div class="ttdeci">std::pair&lt; uint32_t, uint32_t &gt; CreateTimelinePacketHeader(uint32_t packetFamily, uint32_t packetClass, uint32_t packetType, uint32_t streamId, uint32_t sequenceNumbered, uint32_t dataLength)</div><div class="ttdoc">Creates a timeline packet header. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00263">ProfilingUtils.cpp:263</a></div></div>
<div class="ttc" id="classarmnn_1_1profiling_1_1_i_buffer_manager_xhtml_ad0faa8a317506b2e72252f087c7f3c46"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml#ad0faa8a317506b2e72252f087c7f3c46">armnn::profiling::IBufferManager::Commit</a></div><div class="ttdeci">virtual void Commit(IPacketBufferPtr &amp;packetBuffer, unsigned int size, bool notifyConsumer=true)=0</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a48386cd82ddc0f5e4326fe74aaca6785"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48386cd82ddc0f5e4326fe74aaca6785">&#9670;&nbsp;</a></span>SendTimelineEntityBinaryPacket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SendTimelineEntityBinaryPacket </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>profilingGuid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create and write a TimelineEntityBinaryPacket from the parameters to the buffer. </p>

<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml#af7eb3c2db53d7cba441b9a8d3a7bede9">ISendTimelinePacket</a>.</p>

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00085">85</a> of file <a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a>.</p>

<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00376">armnn::profiling::WriteTimelineEntityBinary()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">SendTimelinePacket::SendTimelinePacket()</a>.</p>
<div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;{</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    ForwardWriteBinaryFunction(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a27d1c992711722739250e2bbd9ce7ede">WriteTimelineEntityBinary</a>,</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                               profilingGuid);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a27d1c992711722739250e2bbd9ce7ede"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a27d1c992711722739250e2bbd9ce7ede">armnn::profiling::WriteTimelineEntityBinary</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEntityBinary(uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &amp;numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00376">ProfilingUtils.cpp:376</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0c039087bfccb3124f256d1299a884dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c039087bfccb3124f256d1299a884dd">&#9670;&nbsp;</a></span>SendTimelineEventBinaryPacket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SendTimelineEventBinaryPacket </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>timestamp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>threadId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>profilingGuid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create and write a TimelineEventBinaryPacket from the parameters to the buffer. </p>

<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml#aa1921dccbfed331790218cff3ead123c">ISendTimelinePacket</a>.</p>

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00091">91</a> of file <a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a>.</p>

<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00675">armnn::profiling::WriteTimelineEventBinary()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">SendTimelinePacket::SendTimelinePacket()</a>.</p>
<div class="fragment"><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;{</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    ForwardWriteBinaryFunction(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a0211123136217f6dfe15b39f5a58690d">WriteTimelineEventBinary</a>,</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                               timestamp,</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                               threadId,</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                               profilingGuid);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a0211123136217f6dfe15b39f5a58690d"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a0211123136217f6dfe15b39f5a58690d">armnn::profiling::WriteTimelineEventBinary</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventBinary(uint64_t timestamp, int threadId, uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &amp;numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00675">ProfilingUtils.cpp:675</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a3e9e4931dca26558ba5015f61f455108"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e9e4931dca26558ba5015f61f455108">&#9670;&nbsp;</a></span>SendTimelineEventClassBinaryPacket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SendTimelineEventClassBinaryPacket </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>profilingGuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>nameGuid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create and write a TimelineEventClassBinaryPacket from the parameters to the buffer. </p>

<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml#a03cfe74e636be82dcf63bc90de194519">ISendTimelinePacket</a>.</p>

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00101">101</a> of file <a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a>.</p>

<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00628">armnn::profiling::WriteTimelineEventClassBinary()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">SendTimelinePacket::SendTimelinePacket()</a>.</p>
<div class="fragment"><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;{</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    ForwardWriteBinaryFunction(<a class="code" href="namespacearmnn_1_1profiling.xhtml#aaa1dfefc0a6a75d79dad86151fc2ce41">WriteTimelineEventClassBinary</a>,</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                               profilingGuid,</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                               nameGuid);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aaa1dfefc0a6a75d79dad86151fc2ce41"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aaa1dfefc0a6a75d79dad86151fc2ce41">armnn::profiling::WriteTimelineEventClassBinary</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineEventClassBinary(uint64_t profilingGuid, uint64_t nameGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &amp;numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00628">ProfilingUtils.cpp:628</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aefad76a72ee0bb54f465d4b4c064b189"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefad76a72ee0bb54f465d4b4c064b189">&#9670;&nbsp;</a></span>SendTimelineLabelBinaryPacket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SendTimelineLabelBinaryPacket </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>profilingGuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>label</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create and write a TimelineLabelBinaryPacket from the parameters to the buffer. </p>

<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml#a0426a9f8bc2789012477f08c3e03a532">ISendTimelinePacket</a>.</p>

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00108">108</a> of file <a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a>.</p>

<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00313">armnn::profiling::WriteTimelineLabelBinaryPacket()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">SendTimelinePacket::SendTimelinePacket()</a>.</p>
<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;    ForwardWriteBinaryFunction(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a3583b5fbfe555acc552a63458e665939">WriteTimelineLabelBinaryPacket</a>,</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;                               profilingGuid,</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                               label);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a3583b5fbfe555acc552a63458e665939"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a3583b5fbfe555acc552a63458e665939">armnn::profiling::WriteTimelineLabelBinaryPacket</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineLabelBinaryPacket(uint64_t profilingGuid, const std::string &amp;label, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &amp;numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00313">ProfilingUtils.cpp:313</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="afd0d8c7ed93283f25fd8a1d1e433842f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd0d8c7ed93283f25fd8a1d1e433842f">&#9670;&nbsp;</a></span>SendTimelineMessageDirectoryPackage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SendTimelineMessageDirectoryPackage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create and write a TimelineMessageDirectoryPackage in the buffer. </p>

<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml#a4025973da19ce55930abfd8b6df4edbe">ISendTimelinePacket</a>.</p>

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00129">129</a> of file <a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a>.</p>

<p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00197">CHECK_LOCATION</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00014">SendTimelinePacket::Commit()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::Ok</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00497">armnn::profiling::WriteTimelineMessageDirectoryPackage()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_activate_timeline_reporting_command_handler_8cpp_source.xhtml#l00018">ActivateTimelineReportingCommandHandler::operator()()</a>, and <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">SendTimelinePacket::SendTimelinePacket()</a>.</p>
<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;    <span class="keywordflow">try</span></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">// Flag to Reserve &amp; Commit() that a DirectoryPackage is being sent</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        m_DirectoryPackage = <span class="keyword">true</span>;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        <span class="comment">// Reserve buffer if it hasn&#39;t already been reserved</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        ReserveBuffer();</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="comment">// Write to buffer</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfBytesWritten = 0;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="comment">// Offset is initialised to 8</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        m_Offset = 0;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <a class="code" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> result = <a class="code" href="namespacearmnn_1_1profiling.xhtml#aecc8787efb41f033785074f2d362895a">WriteTimelineMessageDirectoryPackage</a>(&amp;m_WriteBuffer-&gt;GetWritableData()[m_Offset],</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                                                                           m_RemainingBufferSize,</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                                                                           numberOfBytesWritten);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        <span class="keywordflow">if</span> (result != <a class="code" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::TimelinePacketStatus::Ok</a>)</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        {</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            <span class="keywordflow">throw</span> RuntimeException(<span class="stringliteral">&quot;Error processing TimelineMessageDirectoryPackage&quot;</span>, <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        }</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;        <span class="comment">// Commit the message</span></div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        m_Offset     += numberOfBytesWritten;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        m_RemainingBufferSize -= numberOfBytesWritten;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <a class="code" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#af9021304686f700d19d1d295baeaab39">Commit</a>();</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    }</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">catch</span> (...)</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    {</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <span class="keywordflow">throw</span> RuntimeException(<span class="stringliteral">&quot;Error processing TimelineMessageDirectoryPackage&quot;</span>, <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    }</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aecc8787efb41f033785074f2d362895a"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aecc8787efb41f033785074f2d362895a">armnn::profiling::WriteTimelineMessageDirectoryPackage</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineMessageDirectoryPackage(unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &amp;numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00497">ProfilingUtils.cpp:497</a></div></div>
<div class="ttc" id="classarmnn_1_1profiling_1_1_send_timeline_packet_xhtml_af9021304686f700d19d1d295baeaab39"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml#af9021304686f700d19d1d295baeaab39">armnn::profiling::SendTimelinePacket::Commit</a></div><div class="ttdeci">void Commit() override</div><div class="ttdoc">Commits the current buffer and reset the member variables. </div><div class="ttdef"><b>Definition:</b> <a href="_send_timeline_packet_8cpp_source.xhtml#l00014">SendTimelinePacket.cpp:14</a></div></div>
<div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00197">Exceptions.hpp:197</a></div></div>
<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">armnn::profiling::TimelinePacketStatus::Ok</a></div></div>
<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acdfc0158f71b04526602ef51444da4c0"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">armnn::profiling::TimelinePacketStatus</a></div><div class="ttdeci">TimelinePacketStatus</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8hpp_source.xhtml#l00096">ProfilingUtils.hpp:96</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a3abfaceb8268196e9bca18b3aa47a4b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3abfaceb8268196e9bca18b3aa47a4b6">&#9670;&nbsp;</a></span>SendTimelineRelationshipBinaryPacket()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SendTimelineRelationshipBinaryPacket </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a>&#160;</td>
          <td class="paramname"><em>relationshipType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>relationshipGuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>headGuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>tailGuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>attributeGuid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create and write a TimelineRelationshipBinaryPacket from the parameters to the buffer. </p>

<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml#a2be6f27a85d299bcf22dd54c600d0987">ISendTimelinePacket</a>.</p>

<p class="definition">Definition at line <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00115">115</a> of file <a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a>.</p>

<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00419">armnn::profiling::WriteTimelineRelationshipBinary()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_send_timeline_packet_8hpp_source.xhtml#l00025">SendTimelinePacket::SendTimelinePacket()</a>.</p>
<div class="fragment"><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;    ForwardWriteBinaryFunction(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a9314a87188b8a4ad89e2e39b57f672c1">WriteTimelineRelationshipBinary</a>,</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                               relationshipType,</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                               relationshipGuid,</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                               headGuid,</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                               tailGuid,</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                               attributeGuid);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;}</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a9314a87188b8a4ad89e2e39b57f672c1"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a9314a87188b8a4ad89e2e39b57f672c1">armnn::profiling::WriteTimelineRelationshipBinary</a></div><div class="ttdeci">TimelinePacketStatus WriteTimelineRelationshipBinary(ProfilingRelationshipType relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, uint64_t attributeGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &amp;numberOfBytesWritten)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00419">ProfilingUtils.cpp:419</a></div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/profiling/<a class="el" href="_send_timeline_packet_8hpp_source.xhtml">SendTimelinePacket.hpp</a></li>
<li>src/profiling/<a class="el" href="_send_timeline_packet_8cpp_source.xhtml">SendTimelinePacket.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacearmnn.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_send_timeline_packet.xhtml">SendTimelinePacket</a></li>
    <li class="footer">Generated on Thu Feb 25 2021 17:28:02 for ArmNN by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>