Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- 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: armnn::profiling Namespace 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 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var 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('namespacearmnn_1_1profiling.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="#nested-classes">Classes</a> | |
| 99 | <a href="#typedef-members">Typedefs</a> | |
| 100 | <a href="#enum-members">Enumerations</a> | |
| 101 | <a href="#func-members">Functions</a> | |
| 102 | <a href="#var-members">Variables</a> </div> |
| 103 | <div class="headertitle"> |
| 104 | <div class="title">armnn::profiling Namespace Reference</div> </div> |
| 105 | </div><!--header--> |
| 106 | <div class="contents"> |
| 107 | <table class="memberdecls"> |
| 108 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> |
| 109 | Classes</h2></td></tr> |
| 110 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_backend_profiling.xhtml">BackendProfiling</a></td></tr> |
| 111 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_buffer_exhaustion.xhtml">BufferExhaustion</a></td></tr> |
| 113 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_buffer_manager.xhtml">BufferManager</a></td></tr> |
| 115 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_capture_data.xhtml">CaptureData</a></td></tr> |
| 117 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a></td></tr> |
| 119 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_command_handler.xhtml">CommandHandler</a></td></tr> |
| 121 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_command_handler_functor.xhtml">CommandHandlerFunctor</a></td></tr> |
| 123 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_command_handler_hash.xhtml">CommandHandlerHash</a></td></tr> |
| 125 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_command_handler_key.xhtml">CommandHandlerKey</a></td></tr> |
| 127 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_command_handler_registry.xhtml">CommandHandlerRegistry</a></td></tr> |
| 129 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_connection_acknowledged_command_handler.xhtml">ConnectionAcknowledgedCommandHandler</a></td></tr> |
| 131 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a></td></tr> |
| 133 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_directory.xhtml">CounterDirectory</a></td></tr> |
| 135 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_counter_directory_event_record.xhtml">CounterDirectoryEventRecord</a></td></tr> |
| 137 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_id_map.xhtml">CounterIdMap</a></td></tr> |
| 139 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a></td></tr> |
| 141 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_counter_status.xhtml">CounterStatus</a></td></tr> |
| 143 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_counter_value.xhtml">CounterValue</a></td></tr> |
| 145 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a></td></tr> |
| 147 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_directory_capture_command_handler.xhtml">DirectoryCaptureCommandHandler</a></td></tr> |
| 149 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_file_only_profiling_connection.xhtml">FileOnlyProfilingConnection</a></td></tr> |
| 151 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_holder.xhtml">Holder</a></td></tr> |
| 153 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 154 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling.xhtml">IBackendProfiling</a></td></tr> |
| 155 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 156 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.xhtml">IBackendProfilingContext</a></td></tr> |
| 157 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">IBufferManager</a></td></tr> |
| 159 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_consumer.xhtml">IConsumer</a></td></tr> |
| 161 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 162 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml">ICounterDirectory</a></td></tr> |
| 163 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_counter_mappings.xhtml">ICounterMappings</a></td></tr> |
| 165 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 166 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_counter_registry.xhtml">ICounterRegistry</a></td></tr> |
| 167 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 168 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a></td></tr> |
| 169 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 170 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_periodic_counter_capture.xhtml">IPeriodicCounterCapture</a></td></tr> |
| 171 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 172 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml">IProfilingConnection</a></td></tr> |
| 173 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 174 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_connection_factory.xhtml">IProfilingConnectionFactory</a></td></tr> |
| 175 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_guid_generator.xhtml">IProfilingGuidGenerator</a></td></tr> |
| 177 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_profiling_service.xhtml">IProfilingService</a></td></tr> |
| 179 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_read_counter_values.xhtml">IReadCounterValues</a></td></tr> |
| 181 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_read_only_packet_buffer.xhtml">IReadOnlyPacketBuffer</a></td></tr> |
| 183 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_read_write_counter_values.xhtml">IReadWriteCounterValues</a></td></tr> |
| 185 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 186 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_register_backend_counters.xhtml">IRegisterBackendCounters</a></td></tr> |
| 187 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.xhtml">IRegisterCounterMapping</a></td></tr> |
| 189 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_send_counter_packet.xhtml">ISendCounterPacket</a></td></tr> |
| 191 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_send_thread.xhtml">ISendThread</a></td></tr> |
| 193 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_send_timeline_packet.xhtml">ISendTimelinePacket</a></td></tr> |
| 195 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_write_counter_values.xhtml">IWriteCounterValues</a></td></tr> |
| 197 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 198 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_labels_and_event_classes.xhtml">LabelsAndEventClasses</a></td></tr> |
| 199 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 200 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_log_level_swapper.xhtml">LogLevelSwapper</a></td></tr> |
| 201 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 202 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml">MockBufferManager</a></td></tr> |
| 203 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 204 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">MockCounterDirectory</a></td></tr> |
| 205 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 206 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml">MockPacketBuffer</a></td></tr> |
| 207 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 208 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml">MockProfilingConnection</a></td></tr> |
| 209 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 210 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory.xhtml">MockProfilingConnectionFactory</a></td></tr> |
| 211 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 212 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml">MockProfilingService</a></td></tr> |
| 213 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 214 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml">MockSendCounterPacket</a></td></tr> |
| 215 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 216 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml">MockStreamCounterBuffer</a></td></tr> |
| 217 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 218 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a></td></tr> |
| 219 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 220 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_buffer.xhtml">PacketBuffer</a></td></tr> |
| 221 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 222 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_key.xhtml">PacketKey</a></td></tr> |
| 223 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 224 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_packet_version_resolver.xhtml">PacketVersionResolver</a></td></tr> |
| 225 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 226 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_capture.xhtml">PeriodicCounterCapture</a></td></tr> |
| 227 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 228 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_periodic_counter_selection_command_handler.xhtml">PeriodicCounterSelectionCommandHandler</a></td></tr> |
| 229 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 230 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_per_job_counter_selection_command_handler.xhtml">PerJobCounterSelectionCommandHandler</a></td></tr> |
| 231 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 232 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_dump_to_file_decorator.xhtml">ProfilingConnectionDumpToFileDecorator</a></td></tr> |
| 233 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 234 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_connection_factory.xhtml">ProfilingConnectionFactory</a></td></tr> |
| 235 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 236 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">ProfilingDynamicGuid</a></td></tr> |
| 237 | <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Strongly typed guids to distinguish between those generated at runtime, and those that are statically defined. <a href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml#details">More...</a><br /></td></tr> |
| 238 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 239 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_guid.xhtml">ProfilingGuid</a></td></tr> |
| 240 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 241 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">ProfilingGuidGenerator</a></td></tr> |
| 242 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 243 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_service.xhtml">ProfilingService</a></td></tr> |
| 244 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 245 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_service_runtime_helper.xhtml">ProfilingServiceRuntimeHelper</a></td></tr> |
| 246 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 247 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_profiling_state_machine.xhtml">ProfilingStateMachine</a></td></tr> |
| 248 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 249 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a></td></tr> |
| 250 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 251 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_register_backend_counters.xhtml">RegisterBackendCounters</a></td></tr> |
| 252 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 253 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_request_counter_directory_command_handler.xhtml">RequestCounterDirectoryCommandHandler</a></td></tr> |
| 254 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 255 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_counter_packet.xhtml">SendCounterPacket</a></td></tr> |
| 256 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 257 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_counter_packet_test.xhtml">SendCounterPacketTest</a></td></tr> |
| 258 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 259 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_thread.xhtml">SendThread</a></td></tr> |
| 260 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 261 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_send_timeline_packet.xhtml">SendTimelinePacket</a></td></tr> |
| 262 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 263 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_socket_profiling_connection.xhtml">SocketProfilingConnection</a></td></tr> |
| 264 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 265 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_stream_redirector.xhtml">StreamRedirector</a></td></tr> |
| 266 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 267 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_swap_profiling_connection_factory_helper.xhtml">SwapProfilingConnectionFactoryHelper</a></td></tr> |
| 268 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 269 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_sw_trace_char_policy.xhtml">SwTraceCharPolicy</a></td></tr> |
| 270 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 271 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_sw_trace_header.xhtml">SwTraceHeader</a></td></tr> |
| 272 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 273 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml">SwTraceMessage</a></td></tr> |
| 274 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 275 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_sw_trace_name_char_policy.xhtml">SwTraceNameCharPolicy</a></td></tr> |
| 276 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 277 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_sw_trace_type_char_policy.xhtml">SwTraceTypeCharPolicy</a></td></tr> |
| 278 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 279 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_functor_a.xhtml">TestFunctorA</a></td></tr> |
| 280 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 281 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_functor_b.xhtml">TestFunctorB</a></td></tr> |
| 282 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 283 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_functor_c.xhtml">TestFunctorC</a></td></tr> |
| 284 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 285 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_armnn_error.xhtml">TestProfilingConnectionArmnnError</a></td></tr> |
| 286 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 287 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_bad_ack_packet.xhtml">TestProfilingConnectionBadAckPacket</a></td></tr> |
| 288 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 289 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_base.xhtml">TestProfilingConnectionBase</a></td></tr> |
| 290 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 291 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_test_profiling_connection_timeout_error.xhtml">TestProfilingConnectionTimeoutError</a></td></tr> |
| 292 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 293 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_timeline_packet_writer_factory.xhtml">TimelinePacketWriterFactory</a></td></tr> |
| 294 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 295 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_timeline_utility_methods.xhtml">TimelineUtilityMethods</a></td></tr> |
| 296 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 297 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_1_1profiling_1_1_timestamp.xhtml">Timestamp</a></td></tr> |
| 298 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 299 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_version.xhtml">Version</a></td></tr> |
| 300 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 301 | </table><table class="memberdecls"> |
| 302 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> |
| 303 | Typedefs</h2></td></tr> |
| 304 | <tr class="memitem:a279ea800bb05b316615dab6857187fe6"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a279ea800bb05b316615dab6857187fe6">IBackendProfilingContextUniquePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.xhtml">IBackendProfilingContext</a> ></td></tr> |
| 305 | <tr class="separator:a279ea800bb05b316615dab6857187fe6"><td class="memSeparator" colspan="2"> </td></tr> |
| 306 | <tr class="memitem:a8adee535828386656b4c8acfa8bcf871"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a> ></td></tr> |
| 307 | <tr class="separator:a8adee535828386656b4c8acfa8bcf871"><td class="memSeparator" colspan="2"> </td></tr> |
| 308 | <tr class="memitem:a22a0d730c0d08335585e6e8999be8f8b"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a22a0d730c0d08335585e6e8999be8f8b">DevicePtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a> ></td></tr> |
| 309 | <tr class="separator:a22a0d730c0d08335585e6e8999be8f8b"><td class="memSeparator" colspan="2"> </td></tr> |
| 310 | <tr class="memitem:abaedc7fcb8ecb2e086482afe10737fb7"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#abaedc7fcb8ecb2e086482afe10737fb7">CounterSetPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a> ></td></tr> |
| 311 | <tr class="separator:abaedc7fcb8ecb2e086482afe10737fb7"><td class="memSeparator" colspan="2"> </td></tr> |
| 312 | <tr class="memitem:a38de53725b010ce63ea7557bb1d270e7"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a38de53725b010ce63ea7557bb1d270e7">CounterPtr</a> = std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a> ></td></tr> |
| 313 | <tr class="separator:a38de53725b010ce63ea7557bb1d270e7"><td class="memSeparator" colspan="2"> </td></tr> |
| 314 | <tr class="memitem:af55bc6e5233a4720fe8a813db470b06f"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af55bc6e5233a4720fe8a813db470b06f">Categories</a> = std::unordered_set< <a class="el" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a> ></td></tr> |
| 315 | <tr class="separator:af55bc6e5233a4720fe8a813db470b06f"><td class="memSeparator" colspan="2"> </td></tr> |
| 316 | <tr class="memitem:a3ff1066867cb9bd3b08338957c414401"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a3ff1066867cb9bd3b08338957c414401">Devices</a> = std::unordered_map< uint16_t, <a class="el" href="namespacearmnn_1_1profiling.xhtml#a22a0d730c0d08335585e6e8999be8f8b">DevicePtr</a> ></td></tr> |
| 317 | <tr class="separator:a3ff1066867cb9bd3b08338957c414401"><td class="memSeparator" colspan="2"> </td></tr> |
| 318 | <tr class="memitem:acfe20da73b5dc66439a65b49f04f7a21"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a> = std::unordered_map< uint16_t, <a class="el" href="namespacearmnn_1_1profiling.xhtml#abaedc7fcb8ecb2e086482afe10737fb7">CounterSetPtr</a> ></td></tr> |
| 319 | <tr class="separator:acfe20da73b5dc66439a65b49f04f7a21"><td class="memSeparator" colspan="2"> </td></tr> |
| 320 | <tr class="memitem:aeeb6904ffbae435c8d0a7138427688f4"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aeeb6904ffbae435c8d0a7138427688f4">Counters</a> = std::unordered_map< uint16_t, <a class="el" href="namespacearmnn_1_1profiling.xhtml#a38de53725b010ce63ea7557bb1d270e7">CounterPtr</a> ></td></tr> |
| 321 | <tr class="separator:aeeb6904ffbae435c8d0a7138427688f4"><td class="memSeparator" colspan="2"> </td></tr> |
| 322 | <tr class="memitem:ae0e827b027dec7961cafe031a6db4a3a"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ae0e827b027dec7961cafe031a6db4a3a">CategoriesIt</a> = Categories::const_iterator</td></tr> |
| 323 | <tr class="separator:ae0e827b027dec7961cafe031a6db4a3a"><td class="memSeparator" colspan="2"> </td></tr> |
| 324 | <tr class="memitem:a9910176873fe91e4be8ea1eaf546f6c4"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a9910176873fe91e4be8ea1eaf546f6c4">DevicesIt</a> = Devices::const_iterator</td></tr> |
| 325 | <tr class="separator:a9910176873fe91e4be8ea1eaf546f6c4"><td class="memSeparator" colspan="2"> </td></tr> |
| 326 | <tr class="memitem:a2a9b5858b458649152c82e295a6683c1"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a2a9b5858b458649152c82e295a6683c1">CounterSetsIt</a> = CounterSets::const_iterator</td></tr> |
| 327 | <tr class="separator:a2a9b5858b458649152c82e295a6683c1"><td class="memSeparator" colspan="2"> </td></tr> |
| 328 | <tr class="memitem:af0ab9a50fa6e07232065ebd5a8da6fbd"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af0ab9a50fa6e07232065ebd5a8da6fbd">CountersIt</a> = Counters::const_iterator</td></tr> |
| 329 | <tr class="separator:af0ab9a50fa6e07232065ebd5a8da6fbd"><td class="memSeparator" colspan="2"> </td></tr> |
| 330 | <tr class="memitem:a14328d977cec3abadcfd5935f04f3409"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> = std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a> ></td></tr> |
| 331 | <tr class="separator:a14328d977cec3abadcfd5935f04f3409"><td class="memSeparator" colspan="2"> </td></tr> |
| 332 | </table><table class="memberdecls"> |
| 333 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> |
| 334 | Enumerations</h2></td></tr> |
| 335 | <tr class="memitem:ab805f5aa9f101e7f6d971daba044c3c2"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> { <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2afc04d023850b425f3b9c62b3a55dc110">RetentionLink</a>, |
| 336 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a5265db1a79410fbe447a3faa98e7b914">ExecutionLink</a>, |
| 337 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">DataLink</a>, |
| 338 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a47d6c060a0aa40c6fd018f12b7c96f1f">LabelLink</a> |
| 339 | }</td></tr> |
| 340 | <tr class="separator:ab805f5aa9f101e7f6d971daba044c3c2"><td class="memSeparator" colspan="2"> </td></tr> |
| 341 | <tr class="memitem:a006732ecc1f16712db06bf622eb79651"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651">TargetEndianness</a> { <a class="el" href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651aefe19217ee8d2186e7bbecbf2f171eb9">BeWire</a>, |
| 342 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651ab2db365e5027e9a57988c7054e9bd6b7">LeWire</a> |
| 343 | }</td></tr> |
| 344 | <tr class="separator:a006732ecc1f16712db06bf622eb79651"><td class="memSeparator" colspan="2"> </td></tr> |
| 345 | <tr class="memitem:a083225fb2313ee056142bbee0c44de36"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36">PackageActivity</a> { <a class="el" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d">StreamMetaData</a>, |
| 346 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190">CounterDirectory</a>, |
| 347 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e">Unknown</a> |
| 348 | }</td></tr> |
| 349 | <tr class="separator:a083225fb2313ee056142bbee0c44de36"><td class="memSeparator" colspan="2"> </td></tr> |
| 350 | <tr class="memitem:acb0c054138599582d5a5f537e9798806"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> { <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">Uninitialised</a>, |
| 351 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">NotConnected</a>, |
| 352 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">WaitingForAck</a>, |
| 353 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">Active</a> |
| 354 | }</td></tr> |
| 355 | <tr class="separator:acb0c054138599582d5a5f537e9798806"><td class="memSeparator" colspan="2"> </td></tr> |
| 356 | <tr class="memitem:acdfc0158f71b04526602ef51444da4c0"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> { <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>, |
| 357 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0a902b0d55fddef6f8d651fe1035b7d4bd">Error</a>, |
| 358 | <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a> |
| 359 | }</td></tr> |
| 360 | <tr class="separator:acdfc0158f71b04526602ef51444da4c0"><td class="memSeparator" colspan="2"> </td></tr> |
| 361 | </table><table class="memberdecls"> |
| 362 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 363 | Functions</h2></td></tr> |
| 364 | <tr class="memitem:ab2199204c88b5456af0e820b8e821bc6"><td class="memItemLeft" align="right" valign="top">constexpr uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ab2199204c88b5456af0e820b8e821bc6">EncodeVersion</a> (uint32_t major, uint32_t minor, uint32_t patch)</td></tr> |
| 365 | <tr class="separator:ab2199204c88b5456af0e820b8e821bc6"><td class="memSeparator" colspan="2"> </td></tr> |
| 366 | <tr class="memitem:a4614388c6a708b8efe76b883a046ffaf"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a4614388c6a708b8efe76b883a046ffaf">operator<<</a> (std::ostream &os, const <a class="el" href="classarmnn_1_1profiling_1_1_version.xhtml">Version</a> &version)</td></tr> |
| 367 | <tr class="separator:a4614388c6a708b8efe76b883a046ffaf"><td class="memSeparator" colspan="2"> </td></tr> |
| 368 | <tr class="memitem:aa6851e58c103f77fcf83b722b4b81e9d"><td class="memItemLeft" align="right" valign="top">constexpr char const * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aa6851e58c103f77fcf83b722b4b81e9d">GetProfilingStateName</a> (<a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> state)</td></tr> |
| 369 | <tr class="separator:aa6851e58c103f77fcf83b722b4b81e9d"><td class="memSeparator" colspan="2"> </td></tr> |
| 370 | <tr class="memitem:a982b094fe2faa67a3560cdaf3901d0f8"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a982b094fe2faa67a3560cdaf3901d0f8">GetNextUid</a> (bool peekOnly)</td></tr> |
| 371 | <tr class="separator:a982b094fe2faa67a3560cdaf3901d0f8"><td class="memSeparator" colspan="2"> </td></tr> |
| 372 | <tr class="memitem:a6605c82bc625fbd40f24d35edee15fe3"><td class="memItemLeft" align="right" valign="top">std::vector< uint16_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a6605c82bc625fbd40f24d35edee15fe3">GetNextCounterUids</a> (uint16_t firstUid, uint16_t cores)</td></tr> |
| 373 | <tr class="separator:a6605c82bc625fbd40f24d35edee15fe3"><td class="memSeparator" colspan="2"> </td></tr> |
| 374 | <tr class="memitem:af0cddaa4e116d294dacaaced90ca341c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af0cddaa4e116d294dacaaced90ca341c">WriteBytes</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset, const void *value, unsigned int valueSize)</td></tr> |
| 375 | <tr class="separator:af0cddaa4e116d294dacaaced90ca341c"><td class="memSeparator" colspan="2"> </td></tr> |
| 376 | <tr class="memitem:a750935094e7dc62a6ce69be8688ee9fc"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a750935094e7dc62a6ce69be8688ee9fc">ConstructHeader</a> (uint32_t packetFamily, uint32_t packetId)</td></tr> |
| 377 | <tr class="separator:a750935094e7dc62a6ce69be8688ee9fc"><td class="memSeparator" colspan="2"> </td></tr> |
| 378 | <tr class="memitem:a59d5594b6e4e7d3fe9dbde5febd8da81"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a59d5594b6e4e7d3fe9dbde5febd8da81">ConstructHeader</a> (uint32_t packetFamily, uint32_t packetClass, uint32_t packetType)</td></tr> |
| 379 | <tr class="separator:a59d5594b6e4e7d3fe9dbde5febd8da81"><td class="memSeparator" colspan="2"> </td></tr> |
| 380 | <tr class="memitem:a79be042e55fdf16ca562f14cd15d9aa6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a79be042e55fdf16ca562f14cd15d9aa6">WriteUint64</a> (const std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a> > &packetBuffer, unsigned int offset, uint64_t value)</td></tr> |
| 381 | <tr class="separator:a79be042e55fdf16ca562f14cd15d9aa6"><td class="memSeparator" colspan="2"> </td></tr> |
| 382 | <tr class="memitem:a3e638748a39d46e2943dfcef94dcb828"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a3e638748a39d46e2943dfcef94dcb828">WriteUint32</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset, uint32_t value)</td></tr> |
| 383 | <tr class="separator:a3e638748a39d46e2943dfcef94dcb828"><td class="memSeparator" colspan="2"> </td></tr> |
| 384 | <tr class="memitem:ae5ace88c65e65ab7cf5572613601a60d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ae5ace88c65e65ab7cf5572613601a60d">WriteUint16</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset, uint16_t value)</td></tr> |
| 385 | <tr class="separator:ae5ace88c65e65ab7cf5572613601a60d"><td class="memSeparator" colspan="2"> </td></tr> |
| 386 | <tr class="memitem:af63b6e5ffc769286c32d55a090b1602a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af63b6e5ffc769286c32d55a090b1602a">WriteUint8</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset, uint8_t value)</td></tr> |
| 387 | <tr class="separator:af63b6e5ffc769286c32d55a090b1602a"><td class="memSeparator" colspan="2"> </td></tr> |
| 388 | <tr class="memitem:a1c81dacff6eb2062571f7f4db1cb7617"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a1c81dacff6eb2062571f7f4db1cb7617">WriteBytes</a> (unsigned char *buffer, unsigned int offset, const void *value, unsigned int valueSize)</td></tr> |
| 389 | <tr class="separator:a1c81dacff6eb2062571f7f4db1cb7617"><td class="memSeparator" colspan="2"> </td></tr> |
| 390 | <tr class="memitem:af2bb4db604c56391c1361b32402c65a7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a> (unsigned char *buffer, unsigned int offset, uint64_t value)</td></tr> |
| 391 | <tr class="separator:af2bb4db604c56391c1361b32402c65a7"><td class="memSeparator" colspan="2"> </td></tr> |
| 392 | <tr class="memitem:aa3e447531d9bdaad3da25f23edf18fb4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a> (unsigned char *buffer, unsigned int offset, uint32_t value)</td></tr> |
| 393 | <tr class="separator:aa3e447531d9bdaad3da25f23edf18fb4"><td class="memSeparator" colspan="2"> </td></tr> |
| 394 | <tr class="memitem:a0cf33f59f4e39a415e08497644b0b6f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a0cf33f59f4e39a415e08497644b0b6f8">WriteUint16</a> (unsigned char *buffer, unsigned int offset, uint16_t value)</td></tr> |
| 395 | <tr class="separator:a0cf33f59f4e39a415e08497644b0b6f8"><td class="memSeparator" colspan="2"> </td></tr> |
| 396 | <tr class="memitem:ae00e76f4552e2dad3bdcf1dd72100b4f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ae00e76f4552e2dad3bdcf1dd72100b4f">WriteUint8</a> (unsigned char *buffer, unsigned int offset, uint8_t value)</td></tr> |
| 397 | <tr class="separator:ae00e76f4552e2dad3bdcf1dd72100b4f"><td class="memSeparator" colspan="2"> </td></tr> |
| 398 | <tr class="memitem:a097646e1b460c992b553061a3436fb47"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a097646e1b460c992b553061a3436fb47">ReadBytes</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset, unsigned int valueSize, uint8_t outValue[])</td></tr> |
| 399 | <tr class="separator:a097646e1b460c992b553061a3436fb47"><td class="memSeparator" colspan="2"> </td></tr> |
| 400 | <tr class="memitem:aa4de2b511faa41accc2c35cadf051124"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aa4de2b511faa41accc2c35cadf051124">ReadUint64</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset)</td></tr> |
| 401 | <tr class="separator:aa4de2b511faa41accc2c35cadf051124"><td class="memSeparator" colspan="2"> </td></tr> |
| 402 | <tr class="memitem:ad56f4c3ea5e88279bb6ef1f31d9dc6df"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset)</td></tr> |
| 403 | <tr class="separator:ad56f4c3ea5e88279bb6ef1f31d9dc6df"><td class="memSeparator" colspan="2"> </td></tr> |
| 404 | <tr class="memitem:a0ffb94cb0085a54a92f1c4eeaa6cf772"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a0ffb94cb0085a54a92f1c4eeaa6cf772">ReadUint16</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset)</td></tr> |
| 405 | <tr class="separator:a0ffb94cb0085a54a92f1c4eeaa6cf772"><td class="memSeparator" colspan="2"> </td></tr> |
| 406 | <tr class="memitem:a74b483b652cc32f03151b10a1366d607"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a74b483b652cc32f03151b10a1366d607">ReadUint8</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset)</td></tr> |
| 407 | <tr class="separator:a74b483b652cc32f03151b10a1366d607"><td class="memSeparator" colspan="2"> </td></tr> |
| 408 | <tr class="memitem:aaeaa3d9d5e1f03bc8966f1428e1cb672"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aaeaa3d9d5e1f03bc8966f1428e1cb672">ReadBytes</a> (const unsigned char *buffer, unsigned int offset, unsigned int valueSize, uint8_t outValue[])</td></tr> |
| 409 | <tr class="separator:aaeaa3d9d5e1f03bc8966f1428e1cb672"><td class="memSeparator" colspan="2"> </td></tr> |
| 410 | <tr class="memitem:a6226b639a80d73acb1e66c622beed309"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a6226b639a80d73acb1e66c622beed309">ReadUint64</a> (const unsigned char *buffer, unsigned int offset)</td></tr> |
| 411 | <tr class="separator:a6226b639a80d73acb1e66c622beed309"><td class="memSeparator" colspan="2"> </td></tr> |
| 412 | <tr class="memitem:a100e71143e7c9abe8fb6f3ec9a810c63"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">ReadUint32</a> (const unsigned char *buffer, unsigned int offset)</td></tr> |
| 413 | <tr class="separator:a100e71143e7c9abe8fb6f3ec9a810c63"><td class="memSeparator" colspan="2"> </td></tr> |
| 414 | <tr class="memitem:a727b3d8a62d5910f2d2efe321748ee15"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a727b3d8a62d5910f2d2efe321748ee15">ReadUint16</a> (const unsigned char *buffer, unsigned int offset)</td></tr> |
| 415 | <tr class="separator:a727b3d8a62d5910f2d2efe321748ee15"><td class="memSeparator" colspan="2"> </td></tr> |
| 416 | <tr class="memitem:a4f91fd7ff84cd6bbfbc8dd065bf493dd"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a4f91fd7ff84cd6bbfbc8dd065bf493dd">ReadUint8</a> (const unsigned char *buffer, unsigned int offset)</td></tr> |
| 417 | <tr class="separator:a4f91fd7ff84cd6bbfbc8dd065bf493dd"><td class="memSeparator" colspan="2"> </td></tr> |
| 418 | <tr class="memitem:af38e9c5d82c9317255665a6315842166"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af38e9c5d82c9317255665a6315842166">GetSoftwareInfo</a> ()</td></tr> |
| 419 | <tr class="separator:af38e9c5d82c9317255665a6315842166"><td class="memSeparator" colspan="2"> </td></tr> |
| 420 | <tr class="memitem:a66ccd202fa7bf1e52476e61d49a45ee6"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a66ccd202fa7bf1e52476e61d49a45ee6">GetHardwareVersion</a> ()</td></tr> |
| 421 | <tr class="separator:a66ccd202fa7bf1e52476e61d49a45ee6"><td class="memSeparator" colspan="2"> </td></tr> |
| 422 | <tr class="memitem:a1a90cae723e311b3b71272a7f5ecccbb"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a1a90cae723e311b3b71272a7f5ecccbb">GetSoftwareVersion</a> ()</td></tr> |
| 423 | <tr class="separator:a1a90cae723e311b3b71272a7f5ecccbb"><td class="memSeparator" colspan="2"> </td></tr> |
| 424 | <tr class="memitem:a52fbcd350a9f12a385a7c5562c1efd9a"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a52fbcd350a9f12a385a7c5562c1efd9a">GetProcessName</a> ()</td></tr> |
| 425 | <tr class="separator:a52fbcd350a9f12a385a7c5562c1efd9a"><td class="memSeparator" colspan="2"> </td></tr> |
| 426 | <tr class="memitem:af9eb13006d20d612855b0eb00bd7b1f0"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af9eb13006d20d612855b0eb00bd7b1f0">CalculateSizeOfPaddedSwString</a> (const std::string &str)</td></tr> |
| 427 | <tr class="separator:af9eb13006d20d612855b0eb00bd7b1f0"><td class="memSeparator" colspan="2"> </td></tr> |
| 428 | <tr class="memitem:aaa7e58f376ab96ad3fb6dbd16074a5cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml">SwTraceMessage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aaa7e58f376ab96ad3fb6dbd16074a5cb">ReadSwTraceMessage</a> (const unsigned char *packetBuffer, unsigned int &offset)</td></tr> |
| 429 | <tr class="separator:aaa7e58f376ab96ad3fb6dbd16074a5cb"><td class="memSeparator" colspan="2"> </td></tr> |
| 430 | <tr class="memitem:aca8b4bad45009e1d42dc8de69a0b7e2c"><td class="memItemLeft" align="right" valign="top">std::pair< uint32_t, uint32_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aca8b4bad45009e1d42dc8de69a0b7e2c">CreateTimelinePacketHeader</a> (uint32_t packetFamily, uint32_t packetClass, uint32_t packetType, uint32_t streamId, uint32_t sequenceNumbered, uint32_t dataLength)</td></tr> |
| 431 | <tr class="memdesc:aca8b4bad45009e1d42dc8de69a0b7e2c"><td class="mdescLeft"> </td><td class="mdescRight">Creates a timeline packet header. <a href="#aca8b4bad45009e1d42dc8de69a0b7e2c">More...</a><br /></td></tr> |
| 432 | <tr class="separator:aca8b4bad45009e1d42dc8de69a0b7e2c"><td class="memSeparator" colspan="2"> </td></tr> |
| 433 | <tr class="memitem:a4295e2d34b34c57b2065b80fcad431c9"><td class="memItemLeft" align="right" valign="top">std::pair< uint32_t, uint32_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a4295e2d34b34c57b2065b80fcad431c9">CreateTimelineMessagePacketHeader</a> (unsigned int dataLength)</td></tr> |
| 434 | <tr class="memdesc:a4295e2d34b34c57b2065b80fcad431c9"><td class="mdescLeft"> </td><td class="mdescRight">Creates a packet header for the timeline messages: <a href="#a4295e2d34b34c57b2065b80fcad431c9">More...</a><br /></td></tr> |
| 435 | <tr class="separator:a4295e2d34b34c57b2065b80fcad431c9"><td class="memSeparator" colspan="2"> </td></tr> |
| 436 | <tr class="memitem:a3583b5fbfe555acc552a63458e665939"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a3583b5fbfe555acc552a63458e665939">WriteTimelineLabelBinaryPacket</a> (uint64_t profilingGuid, const std::string &label, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten)</td></tr> |
| 437 | <tr class="separator:a3583b5fbfe555acc552a63458e665939"><td class="memSeparator" colspan="2"> </td></tr> |
| 438 | <tr class="memitem:a27d1c992711722739250e2bbd9ce7ede"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a27d1c992711722739250e2bbd9ce7ede">WriteTimelineEntityBinary</a> (uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten)</td></tr> |
| 439 | <tr class="separator:a27d1c992711722739250e2bbd9ce7ede"><td class="memSeparator" colspan="2"> </td></tr> |
| 440 | <tr class="memitem:a2af6f2d1806265a2c84ca05ea8a62fb8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a2af6f2d1806265a2c84ca05ea8a62fb8">WriteTimelineRelationshipBinary</a> (<a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> relationshipType, uint64_t relationshipGuid, uint64_t headGuid, uint64_t tailGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten)</td></tr> |
| 441 | <tr class="separator:a2af6f2d1806265a2c84ca05ea8a62fb8"><td class="memSeparator" colspan="2"> </td></tr> |
| 442 | <tr class="memitem:aecc8787efb41f033785074f2d362895a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aecc8787efb41f033785074f2d362895a">WriteTimelineMessageDirectoryPackage</a> (unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten)</td></tr> |
| 443 | <tr class="separator:aecc8787efb41f033785074f2d362895a"><td class="memSeparator" colspan="2"> </td></tr> |
| 444 | <tr class="memitem:ac42b224ad252c5c31ee01c6b77fa4737"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ac42b224ad252c5c31ee01c6b77fa4737">WriteTimelineEventClassBinary</a> (uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten)</td></tr> |
| 445 | <tr class="separator:ac42b224ad252c5c31ee01c6b77fa4737"><td class="memSeparator" colspan="2"> </td></tr> |
| 446 | <tr class="memitem:a0a84cb02cb3580ed0bf872cf6b5c09ae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a0a84cb02cb3580ed0bf872cf6b5c09ae">WriteTimelineEventBinary</a> (uint64_t timestamp, std::thread::id threadId, uint64_t profilingGuid, unsigned char *buffer, unsigned int remainingBufferSize, unsigned int &numberOfBytesWritten)</td></tr> |
| 447 | <tr class="separator:a0a84cb02cb3580ed0bf872cf6b5c09ae"><td class="memSeparator" colspan="2"> </td></tr> |
| 448 | <tr class="memitem:a6c000fcf0c62f7bc417fef72be783129"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a> (const std::string &stringToPass, const int spacingWidth)</td></tr> |
| 449 | <tr class="separator:a6c000fcf0c62f7bc417fef72be783129"><td class="memSeparator" colspan="2"> </td></tr> |
| 450 | <tr class="memitem:aea08b4cb21e58d159630a6929c90bf64"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aea08b4cb21e58d159630a6929c90bf64">PrintDeviceDetails</a> (const std::pair< const unsigned short, std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a> >> &devicePair)</td></tr> |
| 451 | <tr class="separator:aea08b4cb21e58d159630a6929c90bf64"><td class="memSeparator" colspan="2"> </td></tr> |
| 452 | <tr class="memitem:abd2137ee62a2c96882f3d8d9e665ed09"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#abd2137ee62a2c96882f3d8d9e665ed09">PrintCounterSetDetails</a> (const std::pair< const unsigned short, std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a> >> &counterSetPair)</td></tr> |
| 453 | <tr class="separator:abd2137ee62a2c96882f3d8d9e665ed09"><td class="memSeparator" colspan="2"> </td></tr> |
| 454 | <tr class="memitem:a3e7c9cd02bf5ed5b588b24b0a8b8a2b1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a3e7c9cd02bf5ed5b588b24b0a8b8a2b1">PrintCounterDetails</a> (std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a> > &counter)</td></tr> |
| 455 | <tr class="separator:a3e7c9cd02bf5ed5b588b24b0a8b8a2b1"><td class="memSeparator" colspan="2"> </td></tr> |
| 456 | <tr class="memitem:af33888588c5afaab1eb0d0bfbed2f6ee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#af33888588c5afaab1eb0d0bfbed2f6ee">PrintCategoryDetails</a> (const std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a> > &category, std::unordered_map< unsigned short, std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a> >> counterMap)</td></tr> |
| 457 | <tr class="separator:af33888588c5afaab1eb0d0bfbed2f6ee"><td class="memSeparator" colspan="2"> </td></tr> |
| 458 | <tr class="memitem:a02f98a63d0ef3a10bb359c3ac525f330"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a02f98a63d0ef3a10bb359c3ac525f330">PrintCounterDirectory</a> (<a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml">ICounterDirectory</a> &counterDirectory)</td></tr> |
| 459 | <tr class="separator:a02f98a63d0ef3a10bb359c3ac525f330"><td class="memSeparator" colspan="2"> </td></tr> |
| 460 | <tr class="memitem:a77a41a7625d3134c0cccdf11d169acb4"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a77a41a7625d3134c0cccdf11d169acb4">GetTimestamp</a> ()</td></tr> |
| 461 | <tr class="separator:a77a41a7625d3134c0cccdf11d169acb4"><td class="memSeparator" colspan="2"> </td></tr> |
| 462 | <tr class="memitem:a88c92fd3fdbf9deb6f1606eb14818ea9"><td class="memTemplParams" colspan="2">template<typename SwTracePolicy > </td></tr> |
| 463 | <tr class="memitem:a88c92fd3fdbf9deb6f1606eb14818ea9"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a88c92fd3fdbf9deb6f1606eb14818ea9">IsValidSwTraceString</a> (const std::string &s)</td></tr> |
| 464 | <tr class="separator:a88c92fd3fdbf9deb6f1606eb14818ea9"><td class="memSeparator" colspan="2"> </td></tr> |
| 465 | <tr class="memitem:a5e25734c0aca661f0fe02479743719a1"><td class="memTemplParams" colspan="2">template<typename SwTracePolicy > </td></tr> |
| 466 | <tr class="memitem:a5e25734c0aca661f0fe02479743719a1"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a5e25734c0aca661f0fe02479743719a1">StringToSwTraceString</a> (const std::string &s, std::vector< uint32_t > &outputBuffer)</td></tr> |
| 467 | <tr class="separator:a5e25734c0aca661f0fe02479743719a1"><td class="memSeparator" colspan="2"> </td></tr> |
| 468 | <tr class="memitem:a8c4f707828a9d965b59f4ec3414cb490"><td class="memTemplParams" colspan="2">template<typename SwTracePolicy , typename SwTraceBuffer = std::vector<uint32_t>> </td></tr> |
| 469 | <tr class="memitem:a8c4f707828a9d965b59f4ec3414cb490"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a8c4f707828a9d965b59f4ec3414cb490">ConvertDirectoryComponent</a> (const std::string &directoryComponent, SwTraceBuffer &swTraceBuffer)</td></tr> |
| 470 | <tr class="separator:a8c4f707828a9d965b59f4ec3414cb490"><td class="memSeparator" colspan="2"> </td></tr> |
| 471 | <tr class="memitem:a7024ffa58173d70426a51899d35266d7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a7024ffa58173d70426a51899d35266d7">WriteBytes</a> (const <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a> &packetBuffer, unsigned int offset, const void *value, unsigned int valueSize)</td></tr> |
| 472 | <tr class="separator:a7024ffa58173d70426a51899d35266d7"><td class="memSeparator" colspan="2"> </td></tr> |
| 473 | <tr class="memitem:a3b0223f6d6877fe5852c93c4670e32c6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a3b0223f6d6877fe5852c93c4670e32c6">WriteUint64</a> (const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> &packetBuffer, unsigned int offset, uint64_t value)</td></tr> |
| 474 | <tr class="separator:a3b0223f6d6877fe5852c93c4670e32c6"><td class="memSeparator" colspan="2"> </td></tr> |
| 475 | </table><table class="memberdecls"> |
| 476 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> |
| 477 | Variables</h2></td></tr> |
| 478 | <tr class="memitem:a2fd55777ec061a6c6df855677c165a03"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#a2fd55777ec061a6c6df855677c165a03">uint16_t_size</a> = sizeof(uint16_t)</td></tr> |
| 479 | <tr class="separator:a2fd55777ec061a6c6df855677c165a03"><td class="memSeparator" colspan="2"> </td></tr> |
| 480 | <tr class="memitem:aabcf5c25522e8a0542c95174056cfcac"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = sizeof(uint32_t)</td></tr> |
| 481 | <tr class="separator:aabcf5c25522e8a0542c95174056cfcac"><td class="memSeparator" colspan="2"> </td></tr> |
| 482 | </table> |
| 483 | <h2 class="groupheader">Typedef Documentation</h2> |
| 484 | <a id="af55bc6e5233a4720fe8a813db470b06f"></a> |
| 485 | <h2 class="memtitle"><span class="permalink"><a href="#af55bc6e5233a4720fe8a813db470b06f">◆ </a></span>Categories</h2> |
| 486 | |
| 487 | <div class="memitem"> |
| 488 | <div class="memproto"> |
| 489 | <table class="memname"> |
| 490 | <tr> |
| 491 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#af55bc6e5233a4720fe8a813db470b06f">Categories</a> = std::unordered_set<<a class="el" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a>></td> |
| 492 | </tr> |
| 493 | </table> |
| 494 | </div><div class="memdoc"> |
| 495 | |
| 496 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00037">37</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 497 | |
| 498 | </div> |
| 499 | </div> |
| 500 | <a id="ae0e827b027dec7961cafe031a6db4a3a"></a> |
| 501 | <h2 class="memtitle"><span class="permalink"><a href="#ae0e827b027dec7961cafe031a6db4a3a">◆ </a></span>CategoriesIt</h2> |
| 502 | |
| 503 | <div class="memitem"> |
| 504 | <div class="memproto"> |
| 505 | <table class="memname"> |
| 506 | <tr> |
| 507 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#ae0e827b027dec7961cafe031a6db4a3a">CategoriesIt</a> = Categories::const_iterator</td> |
| 508 | </tr> |
| 509 | </table> |
| 510 | </div><div class="memdoc"> |
| 511 | |
| 512 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00043">43</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 513 | |
| 514 | </div> |
| 515 | </div> |
| 516 | <a id="a8adee535828386656b4c8acfa8bcf871"></a> |
| 517 | <h2 class="memtitle"><span class="permalink"><a href="#a8adee535828386656b4c8acfa8bcf871">◆ </a></span>CategoryPtr</h2> |
| 518 | |
| 519 | <div class="memitem"> |
| 520 | <div class="memproto"> |
| 521 | <table class="memname"> |
| 522 | <tr> |
| 523 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a> = std::unique_ptr<<a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>></td> |
| 524 | </tr> |
| 525 | </table> |
| 526 | </div><div class="memdoc"> |
| 527 | |
| 528 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00031">31</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 529 | |
| 530 | </div> |
| 531 | </div> |
| 532 | <a id="a38de53725b010ce63ea7557bb1d270e7"></a> |
| 533 | <h2 class="memtitle"><span class="permalink"><a href="#a38de53725b010ce63ea7557bb1d270e7">◆ </a></span>CounterPtr</h2> |
| 534 | |
| 535 | <div class="memitem"> |
| 536 | <div class="memproto"> |
| 537 | <table class="memname"> |
| 538 | <tr> |
| 539 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a38de53725b010ce63ea7557bb1d270e7">CounterPtr</a> = std::shared_ptr<<a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a>></td> |
| 540 | </tr> |
| 541 | </table> |
| 542 | </div><div class="memdoc"> |
| 543 | |
| 544 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00034">34</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 545 | |
| 546 | </div> |
| 547 | </div> |
| 548 | <a id="aeeb6904ffbae435c8d0a7138427688f4"></a> |
| 549 | <h2 class="memtitle"><span class="permalink"><a href="#aeeb6904ffbae435c8d0a7138427688f4">◆ </a></span>Counters</h2> |
| 550 | |
| 551 | <div class="memitem"> |
| 552 | <div class="memproto"> |
| 553 | <table class="memname"> |
| 554 | <tr> |
| 555 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#aeeb6904ffbae435c8d0a7138427688f4">Counters</a> = std::unordered_map<uint16_t, <a class="el" href="namespacearmnn_1_1profiling.xhtml#a38de53725b010ce63ea7557bb1d270e7">CounterPtr</a>></td> |
| 556 | </tr> |
| 557 | </table> |
| 558 | </div><div class="memdoc"> |
| 559 | |
| 560 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00040">40</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 561 | |
| 562 | </div> |
| 563 | </div> |
| 564 | <a id="abaedc7fcb8ecb2e086482afe10737fb7"></a> |
| 565 | <h2 class="memtitle"><span class="permalink"><a href="#abaedc7fcb8ecb2e086482afe10737fb7">◆ </a></span>CounterSetPtr</h2> |
| 566 | |
| 567 | <div class="memitem"> |
| 568 | <div class="memproto"> |
| 569 | <table class="memname"> |
| 570 | <tr> |
| 571 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#abaedc7fcb8ecb2e086482afe10737fb7">CounterSetPtr</a> = std::unique_ptr<<a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a>></td> |
| 572 | </tr> |
| 573 | </table> |
| 574 | </div><div class="memdoc"> |
| 575 | |
| 576 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00033">33</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 577 | |
| 578 | </div> |
| 579 | </div> |
| 580 | <a id="acfe20da73b5dc66439a65b49f04f7a21"></a> |
| 581 | <h2 class="memtitle"><span class="permalink"><a href="#acfe20da73b5dc66439a65b49f04f7a21">◆ </a></span>CounterSets</h2> |
| 582 | |
| 583 | <div class="memitem"> |
| 584 | <div class="memproto"> |
| 585 | <table class="memname"> |
| 586 | <tr> |
| 587 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a> = std::unordered_map<uint16_t, <a class="el" href="namespacearmnn_1_1profiling.xhtml#abaedc7fcb8ecb2e086482afe10737fb7">CounterSetPtr</a>></td> |
| 588 | </tr> |
| 589 | </table> |
| 590 | </div><div class="memdoc"> |
| 591 | |
| 592 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00039">39</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 593 | |
| 594 | </div> |
| 595 | </div> |
| 596 | <a id="a2a9b5858b458649152c82e295a6683c1"></a> |
| 597 | <h2 class="memtitle"><span class="permalink"><a href="#a2a9b5858b458649152c82e295a6683c1">◆ </a></span>CounterSetsIt</h2> |
| 598 | |
| 599 | <div class="memitem"> |
| 600 | <div class="memproto"> |
| 601 | <table class="memname"> |
| 602 | <tr> |
| 603 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a2a9b5858b458649152c82e295a6683c1">CounterSetsIt</a> = CounterSets::const_iterator</td> |
| 604 | </tr> |
| 605 | </table> |
| 606 | </div><div class="memdoc"> |
| 607 | |
| 608 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00045">45</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 609 | |
| 610 | </div> |
| 611 | </div> |
| 612 | <a id="af0ab9a50fa6e07232065ebd5a8da6fbd"></a> |
| 613 | <h2 class="memtitle"><span class="permalink"><a href="#af0ab9a50fa6e07232065ebd5a8da6fbd">◆ </a></span>CountersIt</h2> |
| 614 | |
| 615 | <div class="memitem"> |
| 616 | <div class="memproto"> |
| 617 | <table class="memname"> |
| 618 | <tr> |
| 619 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#af0ab9a50fa6e07232065ebd5a8da6fbd">CountersIt</a> = Counters::const_iterator</td> |
| 620 | </tr> |
| 621 | </table> |
| 622 | </div><div class="memdoc"> |
| 623 | |
| 624 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00046">46</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 625 | |
| 626 | </div> |
| 627 | </div> |
| 628 | <a id="a22a0d730c0d08335585e6e8999be8f8b"></a> |
| 629 | <h2 class="memtitle"><span class="permalink"><a href="#a22a0d730c0d08335585e6e8999be8f8b">◆ </a></span>DevicePtr</h2> |
| 630 | |
| 631 | <div class="memitem"> |
| 632 | <div class="memproto"> |
| 633 | <table class="memname"> |
| 634 | <tr> |
| 635 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a22a0d730c0d08335585e6e8999be8f8b">DevicePtr</a> = std::unique_ptr<<a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a>></td> |
| 636 | </tr> |
| 637 | </table> |
| 638 | </div><div class="memdoc"> |
| 639 | |
| 640 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00032">32</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 641 | |
| 642 | </div> |
| 643 | </div> |
| 644 | <a id="a3ff1066867cb9bd3b08338957c414401"></a> |
| 645 | <h2 class="memtitle"><span class="permalink"><a href="#a3ff1066867cb9bd3b08338957c414401">◆ </a></span>Devices</h2> |
| 646 | |
| 647 | <div class="memitem"> |
| 648 | <div class="memproto"> |
| 649 | <table class="memname"> |
| 650 | <tr> |
| 651 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a3ff1066867cb9bd3b08338957c414401">Devices</a> = std::unordered_map<uint16_t, <a class="el" href="namespacearmnn_1_1profiling.xhtml#a22a0d730c0d08335585e6e8999be8f8b">DevicePtr</a>></td> |
| 652 | </tr> |
| 653 | </table> |
| 654 | </div><div class="memdoc"> |
| 655 | |
| 656 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00038">38</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 657 | |
| 658 | </div> |
| 659 | </div> |
| 660 | <a id="a9910176873fe91e4be8ea1eaf546f6c4"></a> |
| 661 | <h2 class="memtitle"><span class="permalink"><a href="#a9910176873fe91e4be8ea1eaf546f6c4">◆ </a></span>DevicesIt</h2> |
| 662 | |
| 663 | <div class="memitem"> |
| 664 | <div class="memproto"> |
| 665 | <table class="memname"> |
| 666 | <tr> |
| 667 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a9910176873fe91e4be8ea1eaf546f6c4">DevicesIt</a> = Devices::const_iterator</td> |
| 668 | </tr> |
| 669 | </table> |
| 670 | </div><div class="memdoc"> |
| 671 | |
| 672 | <p class="definition">Definition at line <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00044">44</a> of file <a class="el" href="_i_counter_directory_8hpp_source.xhtml">ICounterDirectory.hpp</a>.</p> |
| 673 | |
| 674 | </div> |
| 675 | </div> |
| 676 | <a id="a279ea800bb05b316615dab6857187fe6"></a> |
| 677 | <h2 class="memtitle"><span class="permalink"><a href="#a279ea800bb05b316615dab6857187fe6">◆ </a></span>IBackendProfilingContextUniquePtr</h2> |
| 678 | |
| 679 | <div class="memitem"> |
| 680 | <div class="memproto"> |
| 681 | <table class="memname"> |
| 682 | <tr> |
| 683 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a279ea800bb05b316615dab6857187fe6">IBackendProfilingContextUniquePtr</a> = std::unique_ptr<<a class="el" href="classarmnn_1_1profiling_1_1_i_backend_profiling_context.xhtml">IBackendProfilingContext</a>></td> |
| 684 | </tr> |
| 685 | </table> |
| 686 | </div><div class="memdoc"> |
| 687 | |
| 688 | <p class="definition">Definition at line <a class="el" href="_i_backend_profiling_context_8hpp_source.xhtml#l00027">27</a> of file <a class="el" href="_i_backend_profiling_context_8hpp_source.xhtml">IBackendProfilingContext.hpp</a>.</p> |
| 689 | |
| 690 | </div> |
| 691 | </div> |
| 692 | <a id="a14328d977cec3abadcfd5935f04f3409"></a> |
| 693 | <h2 class="memtitle"><span class="permalink"><a href="#a14328d977cec3abadcfd5935f04f3409">◆ </a></span>IPacketBufferPtr</h2> |
| 694 | |
| 695 | <div class="memitem"> |
| 696 | <div class="memproto"> |
| 697 | <table class="memname"> |
| 698 | <tr> |
| 699 | <td class="memname">using <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> = std::unique_ptr<<a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a>></td> |
| 700 | </tr> |
| 701 | </table> |
| 702 | </div><div class="memdoc"> |
| 703 | |
| 704 | <p class="definition">Definition at line <a class="el" href="_i_packet_buffer_8hpp_source.xhtml#l00040">40</a> of file <a class="el" href="_i_packet_buffer_8hpp_source.xhtml">IPacketBuffer.hpp</a>.</p> |
| 705 | |
| 706 | </div> |
| 707 | </div> |
| 708 | <h2 class="groupheader">Enumeration Type Documentation</h2> |
| 709 | <a id="a083225fb2313ee056142bbee0c44de36"></a> |
| 710 | <h2 class="memtitle"><span class="permalink"><a href="#a083225fb2313ee056142bbee0c44de36">◆ </a></span>PackageActivity</h2> |
| 711 | |
| 712 | <div class="memitem"> |
| 713 | <div class="memproto"> |
| 714 | <table class="mlabels"> |
| 715 | <tr> |
| 716 | <td class="mlabels-left"> |
| 717 | <table class="memname"> |
| 718 | <tr> |
| 719 | <td class="memname">enum <a class="el" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36">PackageActivity</a></td> |
| 720 | </tr> |
| 721 | </table> |
| 722 | </td> |
| 723 | <td class="mlabels-right"> |
| 724 | <span class="mlabels"><span class="mlabel">strong</span></span> </td> |
| 725 | </tr> |
| 726 | </table> |
| 727 | </div><div class="memdoc"> |
| 728 | <table class="fieldtable"> |
| 729 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d"></a>StreamMetaData </td><td class="fielddoc"></td></tr> |
| 730 | <tr><td class="fieldname"><a id="a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190"></a>CounterDirectory </td><td class="fielddoc"></td></tr> |
| 731 | <tr><td class="fieldname"><a id="a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e"></a>Unknown </td><td class="fielddoc"></td></tr> |
| 732 | </table> |
| 733 | |
| 734 | <p class="definition">Definition at line <a class="el" href="_file_only_profiling_connection_8hpp_source.xhtml#l00030">30</a> of file <a class="el" href="_file_only_profiling_connection_8hpp_source.xhtml">FileOnlyProfilingConnection.hpp</a>.</p> |
| 735 | <div class="fragment"><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d">StreamMetaData</a>,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190">CounterDirectory</a>,</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e">Unknown</a></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> };</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36a88183b946cc5f0e8c96b2e66e1c74a7e">armnn::profiling::PackageActivity::Unknown</a></div></div> |
| 736 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ae43273a3645f4894a1088081feb9827d">armnn::profiling::PackageActivity::StreamMetaData</a></div></div> |
| 737 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a083225fb2313ee056142bbee0c44de36ad2cacb6bc37a3363ae810b656e3b6190">armnn::profiling::PackageActivity::CounterDirectory</a></div></div> |
| 738 | </div><!-- fragment --> |
| 739 | </div> |
| 740 | </div> |
| 741 | <a id="ab805f5aa9f101e7f6d971daba044c3c2"></a> |
| 742 | <h2 class="memtitle"><span class="permalink"><a href="#ab805f5aa9f101e7f6d971daba044c3c2">◆ </a></span>ProfilingRelationshipType</h2> |
| 743 | |
| 744 | <div class="memitem"> |
| 745 | <div class="memproto"> |
| 746 | <table class="mlabels"> |
| 747 | <tr> |
| 748 | <td class="mlabels-left"> |
| 749 | <table class="memname"> |
| 750 | <tr> |
| 751 | <td class="memname">enum <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a></td> |
| 752 | </tr> |
| 753 | </table> |
| 754 | </td> |
| 755 | <td class="mlabels-right"> |
| 756 | <span class="mlabels"><span class="mlabel">strong</span></span> </td> |
| 757 | </tr> |
| 758 | </table> |
| 759 | </div><div class="memdoc"> |
| 760 | <table class="fieldtable"> |
| 761 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ab805f5aa9f101e7f6d971daba044c3c2afc04d023850b425f3b9c62b3a55dc110"></a>RetentionLink </td><td class="fielddoc"></td></tr> |
| 762 | <tr><td class="fieldname"><a id="ab805f5aa9f101e7f6d971daba044c3c2a5265db1a79410fbe447a3faa98e7b914"></a>ExecutionLink </td><td class="fielddoc"><p>Head retains(parents) Tail. </p> |
| 763 | </td></tr> |
| 764 | <tr><td class="fieldname"><a id="ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b"></a>DataLink </td><td class="fielddoc"><p>Head execution start depends on Tail execution completion. </p> |
| 765 | </td></tr> |
| 766 | <tr><td class="fieldname"><a id="ab805f5aa9f101e7f6d971daba044c3c2a47d6c060a0aa40c6fd018f12b7c96f1f"></a>LabelLink </td><td class="fielddoc"><p>Head uses data of Tail. </p> |
| 767 | <p>Head uses label Tail (Tail MUST be a guid of a label). </p> |
| 768 | </td></tr> |
| 769 | </table> |
| 770 | |
| 771 | <p class="definition">Definition at line <a class="el" href="_i_send_timeline_packet_8hpp_source.xhtml#l00019">19</a> of file <a class="el" href="_i_send_timeline_packet_8hpp_source.xhtml">ISendTimelinePacket.hpp</a>.</p> |
| 772 | <div class="fragment"><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2afc04d023850b425f3b9c62b3a55dc110">RetentionLink</a>, <span class="comment">/// Head retains(parents) Tail</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"></span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a5265db1a79410fbe447a3faa98e7b914">ExecutionLink</a>, <span class="comment">/// Head execution start depends on Tail execution completion</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"></span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">DataLink</a>, <span class="comment">/// Head uses data of Tail</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"></span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a47d6c060a0aa40c6fd018f12b7c96f1f">LabelLink</a> <span class="comment">/// Head uses label Tail (Tail MUST be a guid of a label).</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"></span>};</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ab805f5aa9f101e7f6d971daba044c3c2a5265db1a79410fbe447a3faa98e7b914"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a5265db1a79410fbe447a3faa98e7b914">armnn::profiling::ProfilingRelationshipType::ExecutionLink</a></div><div class="ttdoc">Head retains(parents) Tail. </div></div> |
| 773 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">armnn::profiling::ProfilingRelationshipType::DataLink</a></div><div class="ttdoc">Head execution start depends on Tail execution completion. </div></div> |
| 774 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ab805f5aa9f101e7f6d971daba044c3c2a47d6c060a0aa40c6fd018f12b7c96f1f"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a47d6c060a0aa40c6fd018f12b7c96f1f">armnn::profiling::ProfilingRelationshipType::LabelLink</a></div><div class="ttdoc">Head uses data of Tail. </div></div> |
| 775 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ab805f5aa9f101e7f6d971daba044c3c2afc04d023850b425f3b9c62b3a55dc110"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2afc04d023850b425f3b9c62b3a55dc110">armnn::profiling::ProfilingRelationshipType::RetentionLink</a></div></div> |
| 776 | </div><!-- fragment --> |
| 777 | </div> |
| 778 | </div> |
| 779 | <a id="acb0c054138599582d5a5f537e9798806"></a> |
| 780 | <h2 class="memtitle"><span class="permalink"><a href="#acb0c054138599582d5a5f537e9798806">◆ </a></span>ProfilingState</h2> |
| 781 | |
| 782 | <div class="memitem"> |
| 783 | <div class="memproto"> |
| 784 | <table class="mlabels"> |
| 785 | <tr> |
| 786 | <td class="mlabels-left"> |
| 787 | <table class="memname"> |
| 788 | <tr> |
| 789 | <td class="memname">enum <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a></td> |
| 790 | </tr> |
| 791 | </table> |
| 792 | </td> |
| 793 | <td class="mlabels-right"> |
| 794 | <span class="mlabels"><span class="mlabel">strong</span></span> </td> |
| 795 | </tr> |
| 796 | </table> |
| 797 | </div><div class="memdoc"> |
| 798 | <table class="fieldtable"> |
| 799 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820"></a>Uninitialised </td><td class="fielddoc"></td></tr> |
| 800 | <tr><td class="fieldname"><a id="acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463"></a>NotConnected </td><td class="fielddoc"></td></tr> |
| 801 | <tr><td class="fieldname"><a id="acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5"></a>WaitingForAck </td><td class="fielddoc"></td></tr> |
| 802 | <tr><td class="fieldname"><a id="acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d"></a>Active </td><td class="fielddoc"></td></tr> |
| 803 | </table> |
| 804 | |
| 805 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00018">18</a> of file <a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>.</p> |
| 806 | <div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">Uninitialised</a>,</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">NotConnected</a>,</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">WaitingForAck</a>,</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">Active</a></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> };</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">armnn::profiling::ProfilingState::NotConnected</a></div></div> |
| 807 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">armnn::profiling::ProfilingState::Active</a></div></div> |
| 808 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">armnn::profiling::ProfilingState::WaitingForAck</a></div></div> |
| 809 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">armnn::profiling::ProfilingState::Uninitialised</a></div></div> |
| 810 | </div><!-- fragment --> |
| 811 | </div> |
| 812 | </div> |
| 813 | <a id="a006732ecc1f16712db06bf622eb79651"></a> |
| 814 | <h2 class="memtitle"><span class="permalink"><a href="#a006732ecc1f16712db06bf622eb79651">◆ </a></span>TargetEndianness</h2> |
| 815 | |
| 816 | <div class="memitem"> |
| 817 | <div class="memproto"> |
| 818 | <table class="mlabels"> |
| 819 | <tr> |
| 820 | <td class="mlabels-left"> |
| 821 | <table class="memname"> |
| 822 | <tr> |
| 823 | <td class="memname">enum <a class="el" href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651">TargetEndianness</a></td> |
| 824 | </tr> |
| 825 | </table> |
| 826 | </td> |
| 827 | <td class="mlabels-right"> |
| 828 | <span class="mlabels"><span class="mlabel">strong</span></span> </td> |
| 829 | </tr> |
| 830 | </table> |
| 831 | </div><div class="memdoc"> |
| 832 | <table class="fieldtable"> |
| 833 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a006732ecc1f16712db06bf622eb79651aefe19217ee8d2186e7bbecbf2f171eb9"></a>BeWire </td><td class="fielddoc"></td></tr> |
| 834 | <tr><td class="fieldname"><a id="a006732ecc1f16712db06bf622eb79651ab2db365e5027e9a57988c7054e9bd6b7"></a>LeWire </td><td class="fielddoc"></td></tr> |
| 835 | </table> |
| 836 | |
| 837 | <p class="definition">Definition at line <a class="el" href="_file_only_profiling_connection_8hpp_source.xhtml#l00024">24</a> of file <a class="el" href="_file_only_profiling_connection_8hpp_source.xhtml">FileOnlyProfilingConnection.hpp</a>.</p> |
| 838 | <div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651aefe19217ee8d2186e7bbecbf2f171eb9">BeWire</a>,</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651ab2db365e5027e9a57988c7054e9bd6b7">LeWire</a></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> };</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a006732ecc1f16712db06bf622eb79651ab2db365e5027e9a57988c7054e9bd6b7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651ab2db365e5027e9a57988c7054e9bd6b7">armnn::profiling::TargetEndianness::LeWire</a></div></div> |
| 839 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a006732ecc1f16712db06bf622eb79651aefe19217ee8d2186e7bbecbf2f171eb9"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a006732ecc1f16712db06bf622eb79651aefe19217ee8d2186e7bbecbf2f171eb9">armnn::profiling::TargetEndianness::BeWire</a></div></div> |
| 840 | </div><!-- fragment --> |
| 841 | </div> |
| 842 | </div> |
| 843 | <a id="acdfc0158f71b04526602ef51444da4c0"></a> |
| 844 | <h2 class="memtitle"><span class="permalink"><a href="#acdfc0158f71b04526602ef51444da4c0">◆ </a></span>TimelinePacketStatus</h2> |
| 845 | |
| 846 | <div class="memitem"> |
| 847 | <div class="memproto"> |
| 848 | <table class="mlabels"> |
| 849 | <tr> |
| 850 | <td class="mlabels-left"> |
| 851 | <table class="memname"> |
| 852 | <tr> |
| 853 | <td class="memname">enum <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a></td> |
| 854 | </tr> |
| 855 | </table> |
| 856 | </td> |
| 857 | <td class="mlabels-right"> |
| 858 | <span class="mlabels"><span class="mlabel">strong</span></span> </td> |
| 859 | </tr> |
| 860 | </table> |
| 861 | </div><div class="memdoc"> |
| 862 | <table class="fieldtable"> |
| 863 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115"></a>Ok </td><td class="fielddoc"></td></tr> |
| 864 | <tr><td class="fieldname"><a id="acdfc0158f71b04526602ef51444da4c0a902b0d55fddef6f8d651fe1035b7d4bd"></a>Error </td><td class="fielddoc"></td></tr> |
| 865 | <tr><td class="fieldname"><a id="acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773"></a>BufferExhaustion </td><td class="fielddoc"></td></tr> |
| 866 | </table> |
| 867 | |
| 868 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00204">204</a> of file <a class="el" href="_profiling_utils_8hpp_source.xhtml">ProfilingUtils.hpp</a>.</p> |
| 869 | <div class="fragment"><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>,</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <a class="code" href="namespacearmnn.xhtml#a93a3ba385cad27c4774e5fe64c025d3da902b0d55fddef6f8d651fe1035b7d4bd">Error</a>,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> };</div><div class="ttc" id="namespacearmnn_xhtml_a93a3ba385cad27c4774e5fe64c025d3da902b0d55fddef6f8d651fe1035b7d4bd"><div class="ttname"><a href="namespacearmnn.xhtml#a93a3ba385cad27c4774e5fe64c025d3da902b0d55fddef6f8d651fe1035b7d4bd">armnn::LogSeverity::Error</a></div></div> |
| 870 | <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> |
| 871 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">armnn::profiling::TimelinePacketStatus::BufferExhaustion</a></div></div> |
| 872 | </div><!-- fragment --> |
| 873 | </div> |
| 874 | </div> |
| 875 | <h2 class="groupheader">Function Documentation</h2> |
| 876 | <a id="af9eb13006d20d612855b0eb00bd7b1f0"></a> |
| 877 | <h2 class="memtitle"><span class="permalink"><a href="#af9eb13006d20d612855b0eb00bd7b1f0">◆ </a></span>CalculateSizeOfPaddedSwString()</h2> |
| 878 | |
| 879 | <div class="memitem"> |
| 880 | <div class="memproto"> |
| 881 | <table class="memname"> |
| 882 | <tr> |
| 883 | <td class="memname">uint32_t CalculateSizeOfPaddedSwString </td> |
| 884 | <td>(</td> |
| 885 | <td class="paramtype">const std::string & </td> |
| 886 | <td class="paramname"><em>str</em></td><td>)</td> |
| 887 | <td></td> |
| 888 | </tr> |
| 889 | </table> |
| 890 | </div><div class="memdoc"> |
| 891 | |
| 892 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00310">310</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 893 | |
| 894 | <p class="reference">References <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>, and <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>.</p> |
| 895 | |
| 896 | <p class="reference">Referenced by <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00320">ReadSwTraceMessage()</a>.</p> |
| 897 | <div class="fragment"><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> {</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  std::vector<uint32_t> swTraceString;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  StringToSwTraceString<SwTraceCharPolicy>(str, swTraceString);</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  uint32_t size = (<a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint32_t>(swTraceString.size()) - 1) * <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keywordflow">return</span> size;</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a37fa39012e90d568df7f774cd6d1e956"><div class="ttname"><a href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">armnn::numeric_cast</a></div><div class="ttdeci">std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)</div><div class="ttdef"><b>Definition:</b> <a href="_numeric_cast_8hpp_source.xhtml#l00033">NumericCast.hpp:33</a></div></div> |
| 898 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 899 | </div><!-- fragment --> |
| 900 | </div> |
| 901 | </div> |
| 902 | <a id="a6c000fcf0c62f7bc417fef72be783129"></a> |
| 903 | <h2 class="memtitle"><span class="permalink"><a href="#a6c000fcf0c62f7bc417fef72be783129">◆ </a></span>CentreAlignFormatting()</h2> |
| 904 | |
| 905 | <div class="memitem"> |
| 906 | <div class="memproto"> |
| 907 | <table class="memname"> |
| 908 | <tr> |
| 909 | <td class="memname">std::string CentreAlignFormatting </td> |
| 910 | <td>(</td> |
| 911 | <td class="paramtype">const std::string & </td> |
| 912 | <td class="paramname"><em>stringToPass</em>, </td> |
| 913 | </tr> |
| 914 | <tr> |
| 915 | <td class="paramkey"></td> |
| 916 | <td></td> |
| 917 | <td class="paramtype">const int </td> |
| 918 | <td class="paramname"><em>spacingWidth</em> </td> |
| 919 | </tr> |
| 920 | <tr> |
| 921 | <td></td> |
| 922 | <td>)</td> |
| 923 | <td></td><td></td> |
| 924 | </tr> |
| 925 | </table> |
| 926 | </div><div class="memdoc"> |
| 927 | |
| 928 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00858">858</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 929 | |
| 930 | <p class="reference">Referenced by <a class="el" href="_periodic_counter_capture_command_handler_8cpp_source.xhtml#l00077">PeriodicCounterCaptureCommandHandler::operator()()</a>, <a class="el" href="_timeline_decoder_8cpp_source.xhtml#l00123">TimelineDecoder::print()</a>, <a class="el" href="tests_2profiling_2gatordmock_2_counter_directory_8hpp_source.xhtml#l00113">CategoryRecord::print()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00940">PrintCategoryDetails()</a>, <a class="el" href="tests_2profiling_2gatordmock_2_counter_directory_8hpp_source.xhtml#l00075">EventRecord::printContents()</a>, <a class="el" href="tests_2profiling_2gatordmock_2_counter_directory_8hpp_source.xhtml#l00172">CounterSetRecord::printContents()</a>, <a class="el" href="tests_2profiling_2gatordmock_2_counter_directory_8hpp_source.xhtml#l00213">DeviceRecord::printContents()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00909">PrintCounterDetails()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l01003">PrintCounterDirectory()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00893">PrintCounterSetDetails()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00878">PrintDeviceDetails()</a>, <a class="el" href="tests_2profiling_2gatordmock_2_counter_directory_8hpp_source.xhtml#l00042">EventRecord::printHeader()</a>, <a class="el" href="tests_2profiling_2gatordmock_2_counter_directory_8hpp_source.xhtml#l00153">CounterSetRecord::printHeader()</a>, and <a class="el" href="tests_2profiling_2gatordmock_2_counter_directory_8hpp_source.xhtml#l00195">DeviceRecord::printHeader()</a>.</p> |
| 931 | <div class="fragment"><div class="line"><a name="l00859"></a><span class="lineno"> 859</span> {</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  std::stringstream outputStream, centrePadding;</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  <span class="keywordtype">int</span> padding = spacingWidth - <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(stringToPass.size());</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span> </div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < padding / 2; ++i)</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  {</div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  centrePadding << <span class="stringliteral">" "</span>;</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  }</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span> </div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span>  outputStream << centrePadding.str() << stringToPass << centrePadding.str();</div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span> </div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  <span class="keywordflow">if</span> (padding > 0 && padding %2 != 0)</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  {</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span>  outputStream << <span class="stringliteral">" "</span>;</div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  }</div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span> </div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  <span class="keywordflow">return</span> outputStream.str();</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span> }</div></div><!-- fragment --> |
| 932 | </div> |
| 933 | </div> |
| 934 | <a id="a750935094e7dc62a6ce69be8688ee9fc"></a> |
| 935 | <h2 class="memtitle"><span class="permalink"><a href="#a750935094e7dc62a6ce69be8688ee9fc">◆ </a></span>ConstructHeader() <span class="overload">[1/2]</span></h2> |
| 936 | |
| 937 | <div class="memitem"> |
| 938 | <div class="memproto"> |
| 939 | <table class="memname"> |
| 940 | <tr> |
| 941 | <td class="memname">uint32_t ConstructHeader </td> |
| 942 | <td>(</td> |
| 943 | <td class="paramtype">uint32_t </td> |
| 944 | <td class="paramname"><em>packetFamily</em>, </td> |
| 945 | </tr> |
| 946 | <tr> |
| 947 | <td class="paramkey"></td> |
| 948 | <td></td> |
| 949 | <td class="paramtype">uint32_t </td> |
| 950 | <td class="paramname"><em>packetId</em> </td> |
| 951 | </tr> |
| 952 | <tr> |
| 953 | <td></td> |
| 954 | <td>)</td> |
| 955 | <td></td><td></td> |
| 956 | </tr> |
| 957 | </table> |
| 958 | </div><div class="memdoc"> |
| 959 | |
| 960 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00096">96</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 961 | |
| 962 | <p class="reference">Referenced by <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>.</p> |
| 963 | <div class="fragment"><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> {</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordflow">return</span> ((packetFamily & 0x3F) << 26)|</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  ((packetId & 0x3FF) << 16);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div></div><!-- fragment --> |
| 964 | </div> |
| 965 | </div> |
| 966 | <a id="a59d5594b6e4e7d3fe9dbde5febd8da81"></a> |
| 967 | <h2 class="memtitle"><span class="permalink"><a href="#a59d5594b6e4e7d3fe9dbde5febd8da81">◆ </a></span>ConstructHeader() <span class="overload">[2/2]</span></h2> |
| 968 | |
| 969 | <div class="memitem"> |
| 970 | <div class="memproto"> |
| 971 | <table class="memname"> |
| 972 | <tr> |
| 973 | <td class="memname">uint32_t ConstructHeader </td> |
| 974 | <td>(</td> |
| 975 | <td class="paramtype">uint32_t </td> |
| 976 | <td class="paramname"><em>packetFamily</em>, </td> |
| 977 | </tr> |
| 978 | <tr> |
| 979 | <td class="paramkey"></td> |
| 980 | <td></td> |
| 981 | <td class="paramtype">uint32_t </td> |
| 982 | <td class="paramname"><em>packetClass</em>, </td> |
| 983 | </tr> |
| 984 | <tr> |
| 985 | <td class="paramkey"></td> |
| 986 | <td></td> |
| 987 | <td class="paramtype">uint32_t </td> |
| 988 | <td class="paramname"><em>packetType</em> </td> |
| 989 | </tr> |
| 990 | <tr> |
| 991 | <td></td> |
| 992 | <td>)</td> |
| 993 | <td></td><td></td> |
| 994 | </tr> |
| 995 | </table> |
| 996 | </div><div class="memdoc"> |
| 997 | |
| 998 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00103">103</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 999 | <div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> ((packetFamily & 0x3F) << 26)|</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  ((packetClass & 0x3FF) << 19)|</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  ((packetType & 0x3FFF) << 16);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> }</div></div><!-- fragment --> |
| 1000 | </div> |
| 1001 | </div> |
| 1002 | <a id="a8c4f707828a9d965b59f4ec3414cb490"></a> |
| 1003 | <h2 class="memtitle"><span class="permalink"><a href="#a8c4f707828a9d965b59f4ec3414cb490">◆ </a></span>ConvertDirectoryComponent()</h2> |
| 1004 | |
| 1005 | <div class="memitem"> |
| 1006 | <div class="memproto"> |
| 1007 | <table class="memname"> |
| 1008 | <tr> |
| 1009 | <td class="memname">bool armnn::profiling::ConvertDirectoryComponent </td> |
| 1010 | <td>(</td> |
| 1011 | <td class="paramtype">const std::string & </td> |
| 1012 | <td class="paramname"><em>directoryComponent</em>, </td> |
| 1013 | </tr> |
| 1014 | <tr> |
| 1015 | <td class="paramkey"></td> |
| 1016 | <td></td> |
| 1017 | <td class="paramtype">SwTraceBuffer & </td> |
| 1018 | <td class="paramname"><em>swTraceBuffer</em> </td> |
| 1019 | </tr> |
| 1020 | <tr> |
| 1021 | <td></td> |
| 1022 | <td>)</td> |
| 1023 | <td></td><td></td> |
| 1024 | </tr> |
| 1025 | </table> |
| 1026 | </div><div class="memdoc"> |
| 1027 | |
| 1028 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">126</a> of file <a class="el" href="_profiling_utils_8hpp_source.xhtml">ProfilingUtils.hpp</a>.</p> |
| 1029 | |
| 1030 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00096">ConstructHeader()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00404">CreateTimelinePacketHeader()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00287">GetHardwareVersion()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00074">GetNextCounterUids()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00054">GetNextUid()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00299">GetProcessName()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00282">GetSoftwareInfo()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00292">GetSoftwareVersion()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00190">ReadBytes()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00211">ReadUint16()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">ReadUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00197">ReadUint64()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00218">ReadUint8()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00089">WriteBytes()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00126">WriteUint16()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">WriteUint32()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00112">WriteUint64()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00133">WriteUint8()</a>.</p> |
| 1031 | <div class="fragment"><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="comment">// Convert the directory component using the given policy</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  SwTraceBuffer tempSwTraceBuffer;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">bool</span> result = StringToSwTraceString<SwTracePolicy>(directoryComponent, tempSwTraceBuffer);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">if</span> (!result)</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  }</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  swTraceBuffer.insert(swTraceBuffer.end(), tempSwTraceBuffer.begin(), tempSwTraceBuffer.end());</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div></div><!-- fragment --> |
| 1032 | </div> |
| 1033 | </div> |
| 1034 | <a id="a4295e2d34b34c57b2065b80fcad431c9"></a> |
| 1035 | <h2 class="memtitle"><span class="permalink"><a href="#a4295e2d34b34c57b2065b80fcad431c9">◆ </a></span>CreateTimelineMessagePacketHeader()</h2> |
| 1036 | |
| 1037 | <div class="memitem"> |
| 1038 | <div class="memproto"> |
| 1039 | <table class="memname"> |
| 1040 | <tr> |
| 1041 | <td class="memname">std::pair<uint32_t, uint32_t> armnn::profiling::CreateTimelineMessagePacketHeader </td> |
| 1042 | <td>(</td> |
| 1043 | <td class="paramtype">unsigned int </td> |
| 1044 | <td class="paramname"><em>dataLength</em></td><td>)</td> |
| 1045 | <td></td> |
| 1046 | </tr> |
| 1047 | </table> |
| 1048 | </div><div class="memdoc"> |
| 1049 | |
| 1050 | <p>Creates a packet header for the timeline messages: </p> |
| 1051 | <ul> |
| 1052 | <li>declareLabel</li> |
| 1053 | <li>declareEntity</li> |
| 1054 | <li>declareEventClass</li> |
| 1055 | <li>declareRelationship</li> |
| 1056 | <li>declareEvent</li> |
| 1057 | </ul> |
| 1058 | <dl class="params"><dt>Parameters</dt><dd> |
| 1059 | <table class="params"> |
| 1060 | <tr><td class="paramname">dataLength</td><td>The length of the message body in bytes</td></tr> |
| 1061 | </table> |
| 1062 | </dd> |
| 1063 | </dl> |
| 1064 | <dl class="section return"><dt>Returns</dt><dd>Pair of uint32_t containing word0 and word1 of the header </dd></dl> |
| 1065 | |
| 1066 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00444">444</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1067 | |
| 1068 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00404">CreateTimelinePacketHeader()</a>.</p> |
| 1069 | <div class="fragment"><div class="line"><a name="l00445"></a><span class="lineno"> 445</span> {</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aca8b4bad45009e1d42dc8de69a0b7e2c">CreateTimelinePacketHeader</a>(1, <span class="comment">// Packet family</span></div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  0, <span class="comment">// Packet class</span></div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  1, <span class="comment">// Packet type</span></div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  0, <span class="comment">// Stream id</span></div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  0, <span class="comment">// Sequence number</span></div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  dataLength); <span class="comment">// Data length</span></div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span> }</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< uint32_t, uint32_t > 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#l00404">ProfilingUtils.cpp:404</a></div></div> |
| 1070 | </div><!-- fragment --> |
| 1071 | </div> |
| 1072 | </div> |
| 1073 | <a id="aca8b4bad45009e1d42dc8de69a0b7e2c"></a> |
| 1074 | <h2 class="memtitle"><span class="permalink"><a href="#aca8b4bad45009e1d42dc8de69a0b7e2c">◆ </a></span>CreateTimelinePacketHeader()</h2> |
| 1075 | |
| 1076 | <div class="memitem"> |
| 1077 | <div class="memproto"> |
| 1078 | <table class="memname"> |
| 1079 | <tr> |
| 1080 | <td class="memname">std::pair< uint32_t, uint32_t > CreateTimelinePacketHeader </td> |
| 1081 | <td>(</td> |
| 1082 | <td class="paramtype">uint32_t </td> |
| 1083 | <td class="paramname"><em>packetFamily</em>, </td> |
| 1084 | </tr> |
| 1085 | <tr> |
| 1086 | <td class="paramkey"></td> |
| 1087 | <td></td> |
| 1088 | <td class="paramtype">uint32_t </td> |
| 1089 | <td class="paramname"><em>packetClass</em>, </td> |
| 1090 | </tr> |
| 1091 | <tr> |
| 1092 | <td class="paramkey"></td> |
| 1093 | <td></td> |
| 1094 | <td class="paramtype">uint32_t </td> |
| 1095 | <td class="paramname"><em>packetType</em>, </td> |
| 1096 | </tr> |
| 1097 | <tr> |
| 1098 | <td class="paramkey"></td> |
| 1099 | <td></td> |
| 1100 | <td class="paramtype">uint32_t </td> |
| 1101 | <td class="paramname"><em>streamId</em>, </td> |
| 1102 | </tr> |
| 1103 | <tr> |
| 1104 | <td class="paramkey"></td> |
| 1105 | <td></td> |
| 1106 | <td class="paramtype">uint32_t </td> |
| 1107 | <td class="paramname"><em>sequenceNumbered</em>, </td> |
| 1108 | </tr> |
| 1109 | <tr> |
| 1110 | <td class="paramkey"></td> |
| 1111 | <td></td> |
| 1112 | <td class="paramtype">uint32_t </td> |
| 1113 | <td class="paramname"><em>dataLength</em> </td> |
| 1114 | </tr> |
| 1115 | <tr> |
| 1116 | <td></td> |
| 1117 | <td>)</td> |
| 1118 | <td></td><td></td> |
| 1119 | </tr> |
| 1120 | </table> |
| 1121 | </div><div class="memdoc"> |
| 1122 | |
| 1123 | <p>Creates a timeline packet header. </p> |
| 1124 | <p>packetFamiliy Timeline <a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> Family packetClass Timeline <a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> Class packetType Timeline <a class="el" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> Type streamId Stream identifier seqeunceNumbered When non-zero the 4 bytes following the header is a u32 sequence number dataLength Unsigned 24-bit integer. Length of data, in bytes. Zero is permitted</p> |
| 1125 | <dl class="section return"><dt>Returns</dt><dd>Pair of uint32_t containing word0 and word1 of the header </dd></dl> |
| 1126 | |
| 1127 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00404">404</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1128 | |
| 1129 | <p class="reference">Referenced by <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00014">SendTimelinePacket::Commit()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00444">CreateTimelineMessagePacketHeader()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00633">WriteTimelineMessageDirectoryPackage()</a>.</p> |
| 1130 | <div class="fragment"><div class="line"><a name="l00410"></a><span class="lineno"> 410</span> {</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="comment">// Packet header word 0:</span></div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="comment">// 26:31 [6] packet_family: timeline Packet Family, value 0b000001</span></div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="comment">// 19:25 [7] packet_class: packet class</span></div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="comment">// 16:18 [3] packet_type: packet type</span></div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="comment">// 8:15 [8] reserved: all zeros</span></div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="comment">// 0:7 [8] stream_id: stream identifier</span></div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  uint32_t packetHeaderWord0 = ((packetFamily & 0x0000003F) << 26) |</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  ((packetClass & 0x0000007F) << 19) |</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  ((packetType & 0x00000007) << 16) |</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  ((streamId & 0x00000007) << 0);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> </div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <span class="comment">// Packet header word 1:</span></div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <span class="comment">// 25:31 [7] reserved: all zeros</span></div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="comment">// 24 [1] sequence_numbered: when non-zero the 4 bytes following the header is a u32 sequence number</span></div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="comment">// 0:23 [24] data_length: unsigned 24-bit integer. Length of data, in bytes. Zero is permitted</span></div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  uint32_t packetHeaderWord1 = ((sequenceNumbered & 0x00000001) << 24) |</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  ((dataLength & 0x00FFFFFF) << 0);</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span> </div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordflow">return</span> std::make_pair(packetHeaderWord0, packetHeaderWord1);</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span> }</div></div><!-- fragment --> |
| 1131 | </div> |
| 1132 | </div> |
| 1133 | <a id="ab2199204c88b5456af0e820b8e821bc6"></a> |
| 1134 | <h2 class="memtitle"><span class="permalink"><a href="#ab2199204c88b5456af0e820b8e821bc6">◆ </a></span>EncodeVersion()</h2> |
| 1135 | |
| 1136 | <div class="memitem"> |
| 1137 | <div class="memproto"> |
| 1138 | <table class="mlabels"> |
| 1139 | <tr> |
| 1140 | <td class="mlabels-left"> |
| 1141 | <table class="memname"> |
| 1142 | <tr> |
| 1143 | <td class="memname">constexpr uint32_t armnn::profiling::EncodeVersion </td> |
| 1144 | <td>(</td> |
| 1145 | <td class="paramtype">uint32_t </td> |
| 1146 | <td class="paramname"><em>major</em>, </td> |
| 1147 | </tr> |
| 1148 | <tr> |
| 1149 | <td class="paramkey"></td> |
| 1150 | <td></td> |
| 1151 | <td class="paramtype">uint32_t </td> |
| 1152 | <td class="paramname"><em>minor</em>, </td> |
| 1153 | </tr> |
| 1154 | <tr> |
| 1155 | <td class="paramkey"></td> |
| 1156 | <td></td> |
| 1157 | <td class="paramtype">uint32_t </td> |
| 1158 | <td class="paramname"><em>patch</em> </td> |
| 1159 | </tr> |
| 1160 | <tr> |
| 1161 | <td></td> |
| 1162 | <td>)</td> |
| 1163 | <td></td><td></td> |
| 1164 | </tr> |
| 1165 | </table> |
| 1166 | </td> |
| 1167 | <td class="mlabels-right"> |
| 1168 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 1169 | </tr> |
| 1170 | </table> |
| 1171 | </div><div class="memdoc"> |
| 1172 | |
| 1173 | <p class="definition">Definition at line <a class="el" href="_encode_version_8hpp_source.xhtml#l00018">18</a> of file <a class="el" href="_encode_version_8hpp_source.xhtml">EncodeVersion.hpp</a>.</p> |
| 1174 | |
| 1175 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l00286">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_encode_version_8hpp_source.xhtml#l00045">Version::GetEncodedValue()</a>, and <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00029">SendCounterPacket::SendStreamMetaDataPacket()</a>.</p> |
| 1176 | <div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">return</span> (major << 22) | (minor << 12) | patch;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div></div><!-- fragment --> |
| 1177 | </div> |
| 1178 | </div> |
| 1179 | <a id="a66ccd202fa7bf1e52476e61d49a45ee6"></a> |
| 1180 | <h2 class="memtitle"><span class="permalink"><a href="#a66ccd202fa7bf1e52476e61d49a45ee6">◆ </a></span>GetHardwareVersion()</h2> |
| 1181 | |
| 1182 | <div class="memitem"> |
| 1183 | <div class="memproto"> |
| 1184 | <table class="memname"> |
| 1185 | <tr> |
| 1186 | <td class="memname">std::string GetHardwareVersion </td> |
| 1187 | <td>(</td> |
| 1188 | <td class="paramname"></td><td>)</td> |
| 1189 | <td></td> |
| 1190 | </tr> |
| 1191 | </table> |
| 1192 | </div><div class="memdoc"> |
| 1193 | |
| 1194 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00287">287</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1195 | |
| 1196 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l00286">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00029">SendCounterPacket::SendStreamMetaDataPacket()</a>.</p> |
| 1197 | <div class="fragment"><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> {</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">return</span> std::string();</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> }</div></div><!-- fragment --> |
| 1198 | </div> |
| 1199 | </div> |
| 1200 | <a id="a6605c82bc625fbd40f24d35edee15fe3"></a> |
| 1201 | <h2 class="memtitle"><span class="permalink"><a href="#a6605c82bc625fbd40f24d35edee15fe3">◆ </a></span>GetNextCounterUids()</h2> |
| 1202 | |
| 1203 | <div class="memitem"> |
| 1204 | <div class="memproto"> |
| 1205 | <table class="memname"> |
| 1206 | <tr> |
| 1207 | <td class="memname">std::vector< uint16_t > GetNextCounterUids </td> |
| 1208 | <td>(</td> |
| 1209 | <td class="paramtype">uint16_t </td> |
| 1210 | <td class="paramname"><em>firstUid</em>, </td> |
| 1211 | </tr> |
| 1212 | <tr> |
| 1213 | <td class="paramkey"></td> |
| 1214 | <td></td> |
| 1215 | <td class="paramtype">uint16_t </td> |
| 1216 | <td class="paramname"><em>cores</em> </td> |
| 1217 | </tr> |
| 1218 | <tr> |
| 1219 | <td></td> |
| 1220 | <td>)</td> |
| 1221 | <td></td><td></td> |
| 1222 | </tr> |
| 1223 | </table> |
| 1224 | </div><div class="memdoc"> |
| 1225 | |
| 1226 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00074">74</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1227 | |
| 1228 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l00732">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_counter_directory_8cpp_source.xhtml#l00181">CounterDirectory::RegisterCounter()</a>, and <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00503">MockCounterDirectory::RegisterCounter()</a>.</p> |
| 1229 | <div class="fragment"><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">// Check that it is possible to generate the next counter UID without causing an overflow (throws in case of error)</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  ThrowIfCantGenerateNextUid(firstUid, cores);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">// Get the next counter UIDs</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">size_t</span> counterUidsSize = cores == 0 ? 1 : cores;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  std::vector<uint16_t> counterUids(counterUidsSize, 0);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < counterUidsSize; i++)</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  counterUids[i] = firstUid++;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">return</span> counterUids;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> }</div></div><!-- fragment --> |
| 1230 | </div> |
| 1231 | </div> |
| 1232 | <a id="a982b094fe2faa67a3560cdaf3901d0f8"></a> |
| 1233 | <h2 class="memtitle"><span class="permalink"><a href="#a982b094fe2faa67a3560cdaf3901d0f8">◆ </a></span>GetNextUid()</h2> |
| 1234 | |
| 1235 | <div class="memitem"> |
| 1236 | <div class="memproto"> |
| 1237 | <table class="memname"> |
| 1238 | <tr> |
| 1239 | <td class="memname">uint16_t GetNextUid </td> |
| 1240 | <td>(</td> |
| 1241 | <td class="paramtype">bool </td> |
| 1242 | <td class="paramname"><em>peekOnly</em></td><td>)</td> |
| 1243 | <td></td> |
| 1244 | </tr> |
| 1245 | </table> |
| 1246 | </div><div class="memdoc"> |
| 1247 | |
| 1248 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00054">54</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1249 | |
| 1250 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l00732">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_counter_directory_8cpp_source.xhtml#l00114">CounterDirectory::RegisterCounterSet()</a>, <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00482">MockCounterDirectory::RegisterCounterSet()</a>, <a class="el" href="_counter_directory_8cpp_source.xhtml#l00052">CounterDirectory::RegisterDevice()</a>, and <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00462">MockCounterDirectory::RegisterDevice()</a>.</p> |
| 1251 | <div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> {</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// The UID used for profiling objects and events. The first valid UID is 1, as 0 is a reserved value</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">static</span> uint16_t uid = 1;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// Check that it is possible to generate the next UID without causing an overflow (throws in case of error)</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  ThrowIfCantGenerateNextUid(uid);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">if</span> (peekOnly)</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// Peek only</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> uid;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// Get the next UID</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">return</span> uid++;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> }</div></div><!-- fragment --> |
| 1252 | </div> |
| 1253 | </div> |
| 1254 | <a id="a52fbcd350a9f12a385a7c5562c1efd9a"></a> |
| 1255 | <h2 class="memtitle"><span class="permalink"><a href="#a52fbcd350a9f12a385a7c5562c1efd9a">◆ </a></span>GetProcessName()</h2> |
| 1256 | |
| 1257 | <div class="memitem"> |
| 1258 | <div class="memproto"> |
| 1259 | <table class="memname"> |
| 1260 | <tr> |
| 1261 | <td class="memname">std::string GetProcessName </td> |
| 1262 | <td>(</td> |
| 1263 | <td class="paramname"></td><td>)</td> |
| 1264 | <td></td> |
| 1265 | </tr> |
| 1266 | </table> |
| 1267 | </div><div class="memdoc"> |
| 1268 | |
| 1269 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00299">299</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1270 | |
| 1271 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l02333">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00029">SendCounterPacket::SendStreamMetaDataPacket()</a>.</p> |
| 1272 | <div class="fragment"><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> {</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  std::ifstream comm(<span class="stringliteral">"/proc/self/comm"</span>);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  std::string name;</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  getline(comm, name);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">return</span> name;</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> }</div></div><!-- fragment --> |
| 1273 | </div> |
| 1274 | </div> |
| 1275 | <a id="aa6851e58c103f77fcf83b722b4b81e9d"></a> |
| 1276 | <h2 class="memtitle"><span class="permalink"><a href="#aa6851e58c103f77fcf83b722b4b81e9d">◆ </a></span>GetProfilingStateName()</h2> |
| 1277 | |
| 1278 | <div class="memitem"> |
| 1279 | <div class="memproto"> |
| 1280 | <table class="memname"> |
| 1281 | <tr> |
| 1282 | <td class="memname">constexpr char const* armnn::profiling::GetProfilingStateName </td> |
| 1283 | <td>(</td> |
| 1284 | <td class="paramtype"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806">ProfilingState</a> </td> |
| 1285 | <td class="paramname"><em>state</em></td><td>)</td> |
| 1286 | <td></td> |
| 1287 | </tr> |
| 1288 | </table> |
| 1289 | </div><div class="memdoc"> |
| 1290 | |
| 1291 | <p class="definition">Definition at line <a class="el" href="_profiling_state_machine_8hpp_source.xhtml#l00059">59</a> of file <a class="el" href="_profiling_state_machine_8hpp_source.xhtml">ProfilingStateMachine.hpp</a>.</p> |
| 1292 | |
| 1293 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4d3d769b812b6faa6b76e1a8abaece2d">Active</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a4075072d219e061ca0f3124f8fbef463">NotConnected</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a962074a9de1cf3d6d7b6f955a0a94820">Uninitialised</a>, and <a class="el" href="namespacearmnn_1_1profiling.xhtml#acb0c054138599582d5a5f537e9798806a1dc1edc76d5b3c0325f00002f4c841f5">WaitingForAck</a>.</p> |
| 1294 | |
| 1295 | <p class="reference">Referenced by <a class="el" href="_per_job_counter_selection_command_handler_8cpp_source.xhtml#l00016">PerJobCounterSelectionCommandHandler::operator()()</a>, <a class="el" href="_request_counter_directory_command_handler_8cpp_source.xhtml#l00016">RequestCounterDirectoryCommandHandler::operator()()</a>, <a class="el" href="_connection_acknowledged_command_handler_8cpp_source.xhtml#l00018">ConnectionAcknowledgedCommandHandler::operator()()</a>, and <a class="el" href="_periodic_counter_selection_command_handler_8cpp_source.xhtml#l00059">PeriodicCounterSelectionCommandHandler::operator()()</a>.</p> |
| 1296 | <div class="fragment"><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">switch</span> (state)</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  {</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">case</span> ProfilingState::Uninitialised: <span class="keywordflow">return</span> <span class="stringliteral">"Uninitialised"</span>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">case</span> ProfilingState::NotConnected: <span class="keywordflow">return</span> <span class="stringliteral">"NotConnected"</span>;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">case</span> ProfilingState::WaitingForAck: <span class="keywordflow">return</span> <span class="stringliteral">"WaitingForAck"</span>;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">case</span> ProfilingState::Active: <span class="keywordflow">return</span> <span class="stringliteral">"Active"</span>;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">default</span>: <span class="keywordflow">return</span> <span class="stringliteral">"Unknown"</span>;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> }</div></div><!-- fragment --> |
| 1297 | </div> |
| 1298 | </div> |
| 1299 | <a id="af38e9c5d82c9317255665a6315842166"></a> |
| 1300 | <h2 class="memtitle"><span class="permalink"><a href="#af38e9c5d82c9317255665a6315842166">◆ </a></span>GetSoftwareInfo()</h2> |
| 1301 | |
| 1302 | <div class="memitem"> |
| 1303 | <div class="memproto"> |
| 1304 | <table class="memname"> |
| 1305 | <tr> |
| 1306 | <td class="memname">std::string GetSoftwareInfo </td> |
| 1307 | <td>(</td> |
| 1308 | <td class="paramname"></td><td>)</td> |
| 1309 | <td></td> |
| 1310 | </tr> |
| 1311 | </table> |
| 1312 | </div><div class="memdoc"> |
| 1313 | |
| 1314 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00282">282</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1315 | |
| 1316 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l00286">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00029">SendCounterPacket::SendStreamMetaDataPacket()</a>.</p> |
| 1317 | <div class="fragment"><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> {</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">return</span> std::string(<span class="stringliteral">"ArmNN"</span>);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> }</div></div><!-- fragment --> |
| 1318 | </div> |
| 1319 | </div> |
| 1320 | <a id="a1a90cae723e311b3b71272a7f5ecccbb"></a> |
| 1321 | <h2 class="memtitle"><span class="permalink"><a href="#a1a90cae723e311b3b71272a7f5ecccbb">◆ </a></span>GetSoftwareVersion()</h2> |
| 1322 | |
| 1323 | <div class="memitem"> |
| 1324 | <div class="memproto"> |
| 1325 | <table class="memname"> |
| 1326 | <tr> |
| 1327 | <td class="memname">std::string GetSoftwareVersion </td> |
| 1328 | <td>(</td> |
| 1329 | <td class="paramname"></td><td>)</td> |
| 1330 | <td></td> |
| 1331 | </tr> |
| 1332 | </table> |
| 1333 | </div><div class="memdoc"> |
| 1334 | |
| 1335 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00292">292</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1336 | |
| 1337 | <p class="reference">References <a class="el" href="_version_8hpp_source.xhtml#l00024">ARMNN_VERSION</a>.</p> |
| 1338 | |
| 1339 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l00286">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00029">SendCounterPacket::SendStreamMetaDataPacket()</a>.</p> |
| 1340 | <div class="fragment"><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> {</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  std::string armnnVersion(<a class="code" href="_version_8hpp.xhtml#a50bf0553d5c4b76d18a3d37e155b4d11">ARMNN_VERSION</a>);</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  std::string result = <span class="stringliteral">"Armnn "</span> + armnnVersion.substr(2,2) + <span class="stringliteral">"."</span> + armnnVersion.substr(4,2);</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> }</div><div class="ttc" id="_version_8hpp_xhtml_a50bf0553d5c4b76d18a3d37e155b4d11"><div class="ttname"><a href="_version_8hpp.xhtml#a50bf0553d5c4b76d18a3d37e155b4d11">ARMNN_VERSION</a></div><div class="ttdeci">#define ARMNN_VERSION</div><div class="ttdoc">ARMNN_VERSION: "YYYYMMPP" where: YYYY = 4-digit year number MM = 2-digit month number PP = 2-digit pa...</div><div class="ttdef"><b>Definition:</b> <a href="_version_8hpp_source.xhtml#l00024">Version.hpp:24</a></div></div> |
| 1341 | </div><!-- fragment --> |
| 1342 | </div> |
| 1343 | </div> |
| 1344 | <a id="a77a41a7625d3134c0cccdf11d169acb4"></a> |
| 1345 | <h2 class="memtitle"><span class="permalink"><a href="#a77a41a7625d3134c0cccdf11d169acb4">◆ </a></span>GetTimestamp()</h2> |
| 1346 | |
| 1347 | <div class="memitem"> |
| 1348 | <div class="memproto"> |
| 1349 | <table class="memname"> |
| 1350 | <tr> |
| 1351 | <td class="memname">uint64_t GetTimestamp </td> |
| 1352 | <td>(</td> |
| 1353 | <td class="paramname"></td><td>)</td> |
| 1354 | <td></td> |
| 1355 | </tr> |
| 1356 | </table> |
| 1357 | </div><div class="memdoc"> |
| 1358 | |
| 1359 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l01050">1050</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1360 | |
| 1361 | <p class="reference">Referenced by <a class="el" href="_timeline_utility_methods_8cpp_source.xhtml#l00362">TimelineUtilityMethods::RecordEvent()</a>, and <a class="el" href="_periodic_counter_capture_8cpp_source.xhtml#l00037">PeriodicCounterCapture::Stop()</a>.</p> |
| 1362 | <div class="fragment"><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span> {</div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> <span class="preprocessor">#if USE_CLOCK_MONOTONIC_RAW</span></div><div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>  <span class="keyword">using</span> clock = MonotonicClockRaw;</div><div class="line"><a name="l01054"></a><span class="lineno"> 1054</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>  <span class="keyword">using</span> clock = std::chrono::steady_clock;</div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span> </div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>  <span class="comment">// Take a timestamp</span></div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>  <span class="keyword">auto</span> timestamp = clock::now();</div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span> </div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(timestamp.time_since_epoch().count());</div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span> }</div></div><!-- fragment --> |
| 1363 | </div> |
| 1364 | </div> |
| 1365 | <a id="a88c92fd3fdbf9deb6f1606eb14818ea9"></a> |
| 1366 | <h2 class="memtitle"><span class="permalink"><a href="#a88c92fd3fdbf9deb6f1606eb14818ea9">◆ </a></span>IsValidSwTraceString()</h2> |
| 1367 | |
| 1368 | <div class="memitem"> |
| 1369 | <div class="memproto"> |
| 1370 | <table class="memname"> |
| 1371 | <tr> |
| 1372 | <td class="memname">bool armnn::profiling::IsValidSwTraceString </td> |
| 1373 | <td>(</td> |
| 1374 | <td class="paramtype">const std::string & </td> |
| 1375 | <td class="paramname"><em>s</em></td><td>)</td> |
| 1376 | <td></td> |
| 1377 | </tr> |
| 1378 | </table> |
| 1379 | </div><div class="memdoc"> |
| 1380 | |
| 1381 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00087">87</a> of file <a class="el" href="_profiling_utils_8hpp_source.xhtml">ProfilingUtils.hpp</a>.</p> |
| 1382 | <div class="fragment"><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> {</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">// Check that all the characters in the given string conform to the given policy</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">return</span> std::all_of(s.begin(), s.end(), [](<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c) { <span class="keywordflow">return</span> SwTracePolicy::IsValidChar(c); });</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> }</div></div><!-- fragment --> |
| 1383 | </div> |
| 1384 | </div> |
| 1385 | <a id="a4614388c6a708b8efe76b883a046ffaf"></a> |
| 1386 | <h2 class="memtitle"><span class="permalink"><a href="#a4614388c6a708b8efe76b883a046ffaf">◆ </a></span>operator<<()</h2> |
| 1387 | |
| 1388 | <div class="memitem"> |
| 1389 | <div class="memproto"> |
| 1390 | <table class="mlabels"> |
| 1391 | <tr> |
| 1392 | <td class="mlabels-left"> |
| 1393 | <table class="memname"> |
| 1394 | <tr> |
| 1395 | <td class="memname">std::ostream& armnn::profiling::operator<< </td> |
| 1396 | <td>(</td> |
| 1397 | <td class="paramtype">std::ostream & </td> |
| 1398 | <td class="paramname"><em>os</em>, </td> |
| 1399 | </tr> |
| 1400 | <tr> |
| 1401 | <td class="paramkey"></td> |
| 1402 | <td></td> |
| 1403 | <td class="paramtype">const <a class="el" href="classarmnn_1_1profiling_1_1_version.xhtml">Version</a> & </td> |
| 1404 | <td class="paramname"><em>version</em> </td> |
| 1405 | </tr> |
| 1406 | <tr> |
| 1407 | <td></td> |
| 1408 | <td>)</td> |
| 1409 | <td></td><td></td> |
| 1410 | </tr> |
| 1411 | </table> |
| 1412 | </td> |
| 1413 | <td class="mlabels-right"> |
| 1414 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 1415 | </tr> |
| 1416 | </table> |
| 1417 | </div><div class="memdoc"> |
| 1418 | |
| 1419 | <p class="definition">Definition at line <a class="el" href="_encode_version_8hpp_source.xhtml#l00075">75</a> of file <a class="el" href="_encode_version_8hpp_source.xhtml">EncodeVersion.hpp</a>.</p> |
| 1420 | |
| 1421 | <p class="reference">References <a class="el" href="_encode_version_8hpp_source.xhtml#l00059">Version::ToString()</a>.</p> |
| 1422 | <div class="fragment"><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  os << version.ToString();</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">return</span> os;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div></div><!-- fragment --> |
| 1423 | </div> |
| 1424 | </div> |
| 1425 | <a id="af33888588c5afaab1eb0d0bfbed2f6ee"></a> |
| 1426 | <h2 class="memtitle"><span class="permalink"><a href="#af33888588c5afaab1eb0d0bfbed2f6ee">◆ </a></span>PrintCategoryDetails()</h2> |
| 1427 | |
| 1428 | <div class="memitem"> |
| 1429 | <div class="memproto"> |
| 1430 | <table class="memname"> |
| 1431 | <tr> |
| 1432 | <td class="memname">void armnn::profiling::PrintCategoryDetails </td> |
| 1433 | <td>(</td> |
| 1434 | <td class="paramtype">const std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a> > & </td> |
| 1435 | <td class="paramname"><em>category</em>, </td> |
| 1436 | </tr> |
| 1437 | <tr> |
| 1438 | <td class="paramkey"></td> |
| 1439 | <td></td> |
| 1440 | <td class="paramtype">std::unordered_map< unsigned short, std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a> >> </td> |
| 1441 | <td class="paramname"><em>counterMap</em> </td> |
| 1442 | </tr> |
| 1443 | <tr> |
| 1444 | <td></td> |
| 1445 | <td>)</td> |
| 1446 | <td></td><td></td> |
| 1447 | </tr> |
| 1448 | </table> |
| 1449 | </div><div class="memdoc"> |
| 1450 | |
| 1451 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00940">940</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1452 | |
| 1453 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00858">CentreAlignFormatting()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00909">PrintCounterDetails()</a>.</p> |
| 1454 | |
| 1455 | <p class="reference">Referenced by <a class="el" href="_profiling_utils_8cpp_source.xhtml#l01003">PrintCounterDirectory()</a>.</p> |
| 1456 | <div class="fragment"><div class="line"><a name="l00942"></a><span class="lineno"> 942</span> {</div><div class="line"><a name="l00943"></a><span class="lineno"> 943</span>  std::string categoryBody;</div><div class="line"><a name="l00944"></a><span class="lineno"> 944</span>  std::string categoryHeader;</div><div class="line"><a name="l00945"></a><span class="lineno"> 945</span> </div><div class="line"><a name="l00946"></a><span class="lineno"> 946</span>  categoryHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Name"</span>, 20));</div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span>  categoryHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  categoryHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Event Count"</span>, 14));</div><div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  categoryHeader.append(<span class="stringliteral">"\n"</span>);</div><div class="line"><a name="l00950"></a><span class="lineno"> 950</span> </div><div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  categoryBody.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(category->m_Name, 20));</div><div class="line"><a name="l00952"></a><span class="lineno"> 952</span>  categoryBody.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00953"></a><span class="lineno"> 953</span>  categoryBody.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(category->m_Counters.size()), 14));</div><div class="line"><a name="l00954"></a><span class="lineno"> 954</span> </div><div class="line"><a name="l00955"></a><span class="lineno"> 955</span>  std::cout << <span class="stringliteral">"\n"</span> << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00956"></a><span class="lineno"> 956</span>  std::cout << <a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"CATEGORY"</span>, static_cast<int>(categoryHeader.size()));</div><div class="line"><a name="l00957"></a><span class="lineno"> 957</span>  std::cout << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00958"></a><span class="lineno"> 958</span>  std::cout << std::string(categoryHeader.size(), <span class="charliteral">'='</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00959"></a><span class="lineno"> 959</span> </div><div class="line"><a name="l00960"></a><span class="lineno"> 960</span>  std::cout << categoryHeader;</div><div class="line"><a name="l00961"></a><span class="lineno"> 961</span> </div><div class="line"><a name="l00962"></a><span class="lineno"> 962</span>  std::cout << std::string(categoryBody.size(), <span class="charliteral">'-'</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00963"></a><span class="lineno"> 963</span> </div><div class="line"><a name="l00964"></a><span class="lineno"> 964</span>  std::cout << categoryBody;</div><div class="line"><a name="l00965"></a><span class="lineno"> 965</span> </div><div class="line"><a name="l00966"></a><span class="lineno"> 966</span>  std::string counterHeader;</div><div class="line"><a name="l00967"></a><span class="lineno"> 967</span> </div><div class="line"><a name="l00968"></a><span class="lineno"> 968</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Counter Name"</span>, 20));</div><div class="line"><a name="l00969"></a><span class="lineno"> 969</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00970"></a><span class="lineno"> 970</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Description"</span>, 50));</div><div class="line"><a name="l00971"></a><span class="lineno"> 971</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00972"></a><span class="lineno"> 972</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Units"</span>, 14));</div><div class="line"><a name="l00973"></a><span class="lineno"> 973</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00974"></a><span class="lineno"> 974</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"UID"</span>, 6));</div><div class="line"><a name="l00975"></a><span class="lineno"> 975</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Max UID"</span>, 10));</div><div class="line"><a name="l00977"></a><span class="lineno"> 977</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00978"></a><span class="lineno"> 978</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Class"</span>, 8));</div><div class="line"><a name="l00979"></a><span class="lineno"> 979</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Interpolation"</span>, 14));</div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Multiplier"</span>, 20));</div><div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00984"></a><span class="lineno"> 984</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Counter set UID"</span>, 16));</div><div class="line"><a name="l00985"></a><span class="lineno"> 985</span>  counterHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00986"></a><span class="lineno"> 986</span>  counterHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Device UID"</span>, 14));</div><div class="line"><a name="l00987"></a><span class="lineno"> 987</span>  counterHeader.append(<span class="stringliteral">"\n"</span>);</div><div class="line"><a name="l00988"></a><span class="lineno"> 988</span> </div><div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  std::cout << <span class="stringliteral">"\n"</span> << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00990"></a><span class="lineno"> 990</span>  std::cout << <a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"EVENTS IN CATEGORY: "</span> + category->m_Name,</div><div class="line"><a name="l00991"></a><span class="lineno"> 991</span>  static_cast<int>(counterHeader.size()));</div><div class="line"><a name="l00992"></a><span class="lineno"> 992</span>  std::cout << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00993"></a><span class="lineno"> 993</span>  std::cout << std::string(counterHeader.size(), <span class="charliteral">'='</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00994"></a><span class="lineno"> 994</span>  std::cout << counterHeader;</div><div class="line"><a name="l00995"></a><span class="lineno"> 995</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& it: category->m_Counters) {</div><div class="line"><a name="l00996"></a><span class="lineno"> 996</span>  <span class="keyword">auto</span> search = counterMap.find(it);</div><div class="line"><a name="l00997"></a><span class="lineno"> 997</span>  <span class="keywordflow">if</span>(search != counterMap.end()) {</div><div class="line"><a name="l00998"></a><span class="lineno"> 998</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a3e7c9cd02bf5ed5b588b24b0a8b8a2b1">PrintCounterDetails</a>(search->second);</div><div class="line"><a name="l00999"></a><span class="lineno"> 999</span>  }</div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>  }</div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a3e7c9cd02bf5ed5b588b24b0a8b8a2b1"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a3e7c9cd02bf5ed5b588b24b0a8b8a2b1">armnn::profiling::PrintCounterDetails</a></div><div class="ttdeci">void PrintCounterDetails(std::shared_ptr< Counter > &counter)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00909">ProfilingUtils.cpp:909</a></div></div> |
| 1457 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a6c000fcf0c62f7bc417fef72be783129"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">armnn::profiling::CentreAlignFormatting</a></div><div class="ttdeci">std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00858">ProfilingUtils.cpp:858</a></div></div> |
| 1458 | </div><!-- fragment --> |
| 1459 | </div> |
| 1460 | </div> |
| 1461 | <a id="a3e7c9cd02bf5ed5b588b24b0a8b8a2b1"></a> |
| 1462 | <h2 class="memtitle"><span class="permalink"><a href="#a3e7c9cd02bf5ed5b588b24b0a8b8a2b1">◆ </a></span>PrintCounterDetails()</h2> |
| 1463 | |
| 1464 | <div class="memitem"> |
| 1465 | <div class="memproto"> |
| 1466 | <table class="memname"> |
| 1467 | <tr> |
| 1468 | <td class="memname">void armnn::profiling::PrintCounterDetails </td> |
| 1469 | <td>(</td> |
| 1470 | <td class="paramtype">std::shared_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a> > & </td> |
| 1471 | <td class="paramname"><em>counter</em></td><td>)</td> |
| 1472 | <td></td> |
| 1473 | </tr> |
| 1474 | </table> |
| 1475 | </div><div class="memdoc"> |
| 1476 | |
| 1477 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00909">909</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1478 | |
| 1479 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00858">CentreAlignFormatting()</a>.</p> |
| 1480 | |
| 1481 | <p class="reference">Referenced by <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00940">PrintCategoryDetails()</a>.</p> |
| 1482 | <div class="fragment"><div class="line"><a name="l00910"></a><span class="lineno"> 910</span> {</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  std::string body;</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span> </div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(counter->m_Name, 20));</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(counter->m_Description, 50));</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(counter->m_Units, 14));</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counter->m_Uid), 6));</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counter->m_MaxCounterUid), 10));</div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counter->m_Class), 8));</div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counter->m_Interpolation), 14));</div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counter->m_Multiplier), 20));</div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00929"></a><span class="lineno"> 929</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counter->m_CounterSetUid), 16));</div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00931"></a><span class="lineno"> 931</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counter->m_DeviceUid), 14));</div><div class="line"><a name="l00932"></a><span class="lineno"> 932</span> </div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span>  body.append(<span class="stringliteral">"\n"</span>);</div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span> </div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span>  std::cout << std::string(body.size(), <span class="charliteral">'-'</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span> </div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span>  std::cout << body;</div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a6c000fcf0c62f7bc417fef72be783129"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">armnn::profiling::CentreAlignFormatting</a></div><div class="ttdeci">std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00858">ProfilingUtils.cpp:858</a></div></div> |
| 1483 | </div><!-- fragment --> |
| 1484 | </div> |
| 1485 | </div> |
| 1486 | <a id="a02f98a63d0ef3a10bb359c3ac525f330"></a> |
| 1487 | <h2 class="memtitle"><span class="permalink"><a href="#a02f98a63d0ef3a10bb359c3ac525f330">◆ </a></span>PrintCounterDirectory()</h2> |
| 1488 | |
| 1489 | <div class="memitem"> |
| 1490 | <div class="memproto"> |
| 1491 | <table class="memname"> |
| 1492 | <tr> |
| 1493 | <td class="memname">void PrintCounterDirectory </td> |
| 1494 | <td>(</td> |
| 1495 | <td class="paramtype"><a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml">ICounterDirectory</a> & </td> |
| 1496 | <td class="paramname"><em>counterDirectory</em></td><td>)</td> |
| 1497 | <td></td> |
| 1498 | </tr> |
| 1499 | </table> |
| 1500 | </div><div class="memdoc"> |
| 1501 | |
| 1502 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l01003">1003</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1503 | |
| 1504 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00858">CentreAlignFormatting()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a718a75d4c178cf3f687b3f27b8f55091">ICounterDirectory::GetCategories()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#ad9fa9b8364fcaa2c940ef8e78eff8df2">ICounterDirectory::GetCounters()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a8908490db3b8a0003a639ac56b956cee">ICounterDirectory::GetCounterSets()</a>, <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a98e6769cb933d30bfd3ca25f61bd8438">ICounterDirectory::GetDevices()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00940">PrintCategoryDetails()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00893">PrintCounterSetDetails()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00878">PrintDeviceDetails()</a>.</p> |
| 1505 | |
| 1506 | <p class="reference">Referenced by <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00290">DirectoryCaptureCommandHandler::operator()()</a>.</p> |
| 1507 | <div class="fragment"><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span> {</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  std::string devicesHeader;</div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span> </div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>  devicesHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Device name"</span>, 20));</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>  devicesHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>  devicesHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"UID"</span>, 13));</div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>  devicesHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>  devicesHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Cores"</span>, 10));</div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>  devicesHeader.append(<span class="stringliteral">"\n"</span>);</div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span> </div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>  std::cout << <span class="stringliteral">"\n"</span> << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>  std::cout << <a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"DEVICES"</span>, static_cast<int>(devicesHeader.size()));</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>  std::cout << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>  std::cout << std::string(devicesHeader.size(), <span class="charliteral">'='</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>  std::cout << devicesHeader;</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& it: counterDirectory.GetDevices()) {</div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aea08b4cb21e58d159630a6929c90bf64">PrintDeviceDetails</a>(it);</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>  }</div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span> </div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>  std::string counterSetHeader;</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> </div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>  counterSetHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Counter set name"</span>, 20));</div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>  counterSetHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>  counterSetHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"UID"</span>, 13));</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>  counterSetHeader.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>  counterSetHeader.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"Count"</span>, 10));</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>  counterSetHeader.append(<span class="stringliteral">"\n"</span>);</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  std::cout << <span class="stringliteral">"\n"</span> << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>  std::cout << <a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(<span class="stringliteral">"COUNTER SETS"</span>, static_cast<int>(counterSetHeader.size()));</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>  std::cout << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>  std::cout << std::string(counterSetHeader.size(), <span class="charliteral">'='</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>  std::cout << counterSetHeader;</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span> </div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& it: counterDirectory.GetCounterSets()) {</div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#abd2137ee62a2c96882f3d8d9e665ed09">PrintCounterSetDetails</a>(it);</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  }</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> </div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  <span class="keyword">auto</span> counters = counterDirectory.GetCounters();</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& it: counterDirectory.GetCategories()) {</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af33888588c5afaab1eb0d0bfbed2f6ee">PrintCategoryDetails</a>(it, counters);</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>  }</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>  std::cout << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aea08b4cb21e58d159630a6929c90bf64"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aea08b4cb21e58d159630a6929c90bf64">armnn::profiling::PrintDeviceDetails</a></div><div class="ttdeci">void PrintDeviceDetails(const std::pair< const unsigned short, std::unique_ptr< Device >> &devicePair)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00878">ProfilingUtils.cpp:878</a></div></div> |
| 1508 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af33888588c5afaab1eb0d0bfbed2f6ee"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af33888588c5afaab1eb0d0bfbed2f6ee">armnn::profiling::PrintCategoryDetails</a></div><div class="ttdeci">void PrintCategoryDetails(const std::unique_ptr< Category > &category, std::unordered_map< unsigned short, std::shared_ptr< Counter >> counterMap)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00940">ProfilingUtils.cpp:940</a></div></div> |
| 1509 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_abd2137ee62a2c96882f3d8d9e665ed09"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#abd2137ee62a2c96882f3d8d9e665ed09">armnn::profiling::PrintCounterSetDetails</a></div><div class="ttdeci">void PrintCounterSetDetails(const std::pair< const unsigned short, std::unique_ptr< CounterSet >> &counterSetPair)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00893">ProfilingUtils.cpp:893</a></div></div> |
| 1510 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a6c000fcf0c62f7bc417fef72be783129"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">armnn::profiling::CentreAlignFormatting</a></div><div class="ttdeci">std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00858">ProfilingUtils.cpp:858</a></div></div> |
| 1511 | </div><!-- fragment --> |
| 1512 | </div> |
| 1513 | </div> |
| 1514 | <a id="abd2137ee62a2c96882f3d8d9e665ed09"></a> |
| 1515 | <h2 class="memtitle"><span class="permalink"><a href="#abd2137ee62a2c96882f3d8d9e665ed09">◆ </a></span>PrintCounterSetDetails()</h2> |
| 1516 | |
| 1517 | <div class="memitem"> |
| 1518 | <div class="memproto"> |
| 1519 | <table class="memname"> |
| 1520 | <tr> |
| 1521 | <td class="memname">void armnn::profiling::PrintCounterSetDetails </td> |
| 1522 | <td>(</td> |
| 1523 | <td class="paramtype">const std::pair< const unsigned short, std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a> >> & </td> |
| 1524 | <td class="paramname"><em>counterSetPair</em></td><td>)</td> |
| 1525 | <td></td> |
| 1526 | </tr> |
| 1527 | </table> |
| 1528 | </div><div class="memdoc"> |
| 1529 | |
| 1530 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00893">893</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1531 | |
| 1532 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00858">CentreAlignFormatting()</a>.</p> |
| 1533 | |
| 1534 | <p class="reference">Referenced by <a class="el" href="_profiling_utils_8cpp_source.xhtml#l01003">PrintCounterDirectory()</a>.</p> |
| 1535 | <div class="fragment"><div class="line"><a name="l00894"></a><span class="lineno"> 894</span> {</div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  std::string body;</div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span> </div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(counterSetPair.second->m_Name, 20));</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counterSetPair.first), 13));</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(counterSetPair.second->m_Count), 10));</div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  body.append(<span class="stringliteral">"\n"</span>);</div><div class="line"><a name="l00903"></a><span class="lineno"> 903</span> </div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  std::cout << std::string(body.size(), <span class="charliteral">'-'</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span> </div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  std::cout<< body;</div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a6c000fcf0c62f7bc417fef72be783129"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">armnn::profiling::CentreAlignFormatting</a></div><div class="ttdeci">std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00858">ProfilingUtils.cpp:858</a></div></div> |
| 1536 | </div><!-- fragment --> |
| 1537 | </div> |
| 1538 | </div> |
| 1539 | <a id="aea08b4cb21e58d159630a6929c90bf64"></a> |
| 1540 | <h2 class="memtitle"><span class="permalink"><a href="#aea08b4cb21e58d159630a6929c90bf64">◆ </a></span>PrintDeviceDetails()</h2> |
| 1541 | |
| 1542 | <div class="memitem"> |
| 1543 | <div class="memproto"> |
| 1544 | <table class="memname"> |
| 1545 | <tr> |
| 1546 | <td class="memname">void armnn::profiling::PrintDeviceDetails </td> |
| 1547 | <td>(</td> |
| 1548 | <td class="paramtype">const std::pair< const unsigned short, std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a> >> & </td> |
| 1549 | <td class="paramname"><em>devicePair</em></td><td>)</td> |
| 1550 | <td></td> |
| 1551 | </tr> |
| 1552 | </table> |
| 1553 | </div><div class="memdoc"> |
| 1554 | |
| 1555 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00878">878</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1556 | |
| 1557 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00858">CentreAlignFormatting()</a>.</p> |
| 1558 | |
| 1559 | <p class="reference">Referenced by <a class="el" href="_profiling_utils_8cpp_source.xhtml#l01003">PrintCounterDirectory()</a>.</p> |
| 1560 | <div class="fragment"><div class="line"><a name="l00879"></a><span class="lineno"> 879</span> {</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  std::string body;</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span> </div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(devicePair.second->m_Name, 20));</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(devicePair.first), 13));</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  body.append(<span class="stringliteral">" | "</span>);</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  body.append(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">CentreAlignFormatting</a>(std::to_string(devicePair.second->m_Cores), 10));</div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  body.append(<span class="stringliteral">"\n"</span>);</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span> </div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  std::cout << std::string(body.size(), <span class="charliteral">'-'</span>) << <span class="stringliteral">"\n"</span>;</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  std::cout<< body;</div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a6c000fcf0c62f7bc417fef72be783129"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a6c000fcf0c62f7bc417fef72be783129">armnn::profiling::CentreAlignFormatting</a></div><div class="ttdeci">std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00858">ProfilingUtils.cpp:858</a></div></div> |
| 1561 | </div><!-- fragment --> |
| 1562 | </div> |
| 1563 | </div> |
| 1564 | <a id="a097646e1b460c992b553061a3436fb47"></a> |
| 1565 | <h2 class="memtitle"><span class="permalink"><a href="#a097646e1b460c992b553061a3436fb47">◆ </a></span>ReadBytes() <span class="overload">[1/2]</span></h2> |
| 1566 | |
| 1567 | <div class="memitem"> |
| 1568 | <div class="memproto"> |
| 1569 | <table class="memname"> |
| 1570 | <tr> |
| 1571 | <td class="memname">void ReadBytes </td> |
| 1572 | <td>(</td> |
| 1573 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 1574 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 1575 | </tr> |
| 1576 | <tr> |
| 1577 | <td class="paramkey"></td> |
| 1578 | <td></td> |
| 1579 | <td class="paramtype">unsigned int </td> |
| 1580 | <td class="paramname"><em>offset</em>, </td> |
| 1581 | </tr> |
| 1582 | <tr> |
| 1583 | <td class="paramkey"></td> |
| 1584 | <td></td> |
| 1585 | <td class="paramtype">unsigned int </td> |
| 1586 | <td class="paramname"><em>valueSize</em>, </td> |
| 1587 | </tr> |
| 1588 | <tr> |
| 1589 | <td class="paramkey"></td> |
| 1590 | <td></td> |
| 1591 | <td class="paramtype">uint8_t </td> |
| 1592 | <td class="paramname"><em>outValue</em>[] </td> |
| 1593 | </tr> |
| 1594 | <tr> |
| 1595 | <td></td> |
| 1596 | <td>)</td> |
| 1597 | <td></td><td></td> |
| 1598 | </tr> |
| 1599 | </table> |
| 1600 | </div><div class="memdoc"> |
| 1601 | |
| 1602 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00190">190</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1603 | |
| 1604 | <p class="reference">Referenced by <a class="el" href="_send_timeline_packet_tests_8cpp_source.xhtml#l00209">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00232">VerifyTimelineEventBinaryPacket()</a>.</p> |
| 1605 | <div class="fragment"><div class="line"><a name="l00191"></a><span class="lineno"> 191</span> {</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aaeaa3d9d5e1f03bc8966f1428e1cb672">ReadBytes</a>(packetBuffer->GetReadableData(), offset, valueSize, outValue);</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aaeaa3d9d5e1f03bc8966f1428e1cb672"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aaeaa3d9d5e1f03bc8966f1428e1cb672">armnn::profiling::ReadBytes</a></div><div class="ttdeci">void ReadBytes(const unsigned char *buffer, unsigned int offset, unsigned int valueSize, uint8_t outValue[])</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00225">ProfilingUtils.cpp:225</a></div></div> |
| 1606 | </div><!-- fragment --> |
| 1607 | </div> |
| 1608 | </div> |
| 1609 | <a id="aaeaa3d9d5e1f03bc8966f1428e1cb672"></a> |
| 1610 | <h2 class="memtitle"><span class="permalink"><a href="#aaeaa3d9d5e1f03bc8966f1428e1cb672">◆ </a></span>ReadBytes() <span class="overload">[2/2]</span></h2> |
| 1611 | |
| 1612 | <div class="memitem"> |
| 1613 | <div class="memproto"> |
| 1614 | <table class="memname"> |
| 1615 | <tr> |
| 1616 | <td class="memname">void ReadBytes </td> |
| 1617 | <td>(</td> |
| 1618 | <td class="paramtype">const unsigned char * </td> |
| 1619 | <td class="paramname"><em>buffer</em>, </td> |
| 1620 | </tr> |
| 1621 | <tr> |
| 1622 | <td class="paramkey"></td> |
| 1623 | <td></td> |
| 1624 | <td class="paramtype">unsigned int </td> |
| 1625 | <td class="paramname"><em>offset</em>, </td> |
| 1626 | </tr> |
| 1627 | <tr> |
| 1628 | <td class="paramkey"></td> |
| 1629 | <td></td> |
| 1630 | <td class="paramtype">unsigned int </td> |
| 1631 | <td class="paramname"><em>valueSize</em>, </td> |
| 1632 | </tr> |
| 1633 | <tr> |
| 1634 | <td class="paramkey"></td> |
| 1635 | <td></td> |
| 1636 | <td class="paramtype">uint8_t </td> |
| 1637 | <td class="paramname"><em>outValue</em>[] </td> |
| 1638 | </tr> |
| 1639 | <tr> |
| 1640 | <td></td> |
| 1641 | <td>)</td> |
| 1642 | <td></td><td></td> |
| 1643 | </tr> |
| 1644 | </table> |
| 1645 | </div><div class="memdoc"> |
| 1646 | |
| 1647 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00225">225</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1648 | <div class="fragment"><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> {</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  BOOST_ASSERT(outValue);</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < valueSize; i++, offset++)</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  {</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  outValue[i] = <span class="keyword">static_cast<</span>uint8_t<span class="keyword">></span>(buffer[offset]);</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> }</div></div><!-- fragment --> |
| 1649 | </div> |
| 1650 | </div> |
| 1651 | <a id="aaa7e58f376ab96ad3fb6dbd16074a5cb"></a> |
| 1652 | <h2 class="memtitle"><span class="permalink"><a href="#aaa7e58f376ab96ad3fb6dbd16074a5cb">◆ </a></span>ReadSwTraceMessage()</h2> |
| 1653 | |
| 1654 | <div class="memitem"> |
| 1655 | <div class="memproto"> |
| 1656 | <table class="memname"> |
| 1657 | <tr> |
| 1658 | <td class="memname"><a class="el" href="structarmnn_1_1profiling_1_1_sw_trace_message.xhtml">SwTraceMessage</a> ReadSwTraceMessage </td> |
| 1659 | <td>(</td> |
| 1660 | <td class="paramtype">const unsigned char * </td> |
| 1661 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 1662 | </tr> |
| 1663 | <tr> |
| 1664 | <td class="paramkey"></td> |
| 1665 | <td></td> |
| 1666 | <td class="paramtype">unsigned int & </td> |
| 1667 | <td class="paramname"><em>offset</em> </td> |
| 1668 | </tr> |
| 1669 | <tr> |
| 1670 | <td></td> |
| 1671 | <td>)</td> |
| 1672 | <td></td><td></td> |
| 1673 | </tr> |
| 1674 | </table> |
| 1675 | </div><div class="memdoc"> |
| 1676 | |
| 1677 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00320">320</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1678 | |
| 1679 | <p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00310">CalculateSizeOfPaddedSwString()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00042">SwTraceMessage::m_ArgNames</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00041">SwTraceMessage::m_ArgTypes</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00038">SwTraceMessage::m_Id</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00039">SwTraceMessage::m_Name</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00040">SwTraceMessage::m_UiName</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">ReadUint32()</a>, and <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>.</p> |
| 1680 | |
| 1681 | <p class="reference">Referenced by <a class="el" href="_send_timeline_packet_tests_8cpp_source.xhtml#l00023">BOOST_AUTO_TEST_CASE()</a>.</p> |
| 1682 | <div class="fragment"><div class="line"><a name="l00321"></a><span class="lineno"> 321</span> {</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span> </div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  SwTraceMessage swTraceMessage;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="comment">// Read the decl_id</span></div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  uint32_t readDeclId = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  swTraceMessage.m_Id = readDeclId;</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> </div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="comment">// SWTrace "namestring" format</span></div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="comment">// length of the string (first 4 bytes) + string + null terminator</span></div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="comment">// Check the decl_name</span></div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  uint32_t swTraceDeclNameLength = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  std::vector<unsigned char> swTraceStringBuffer(swTraceDeclNameLength - 1);</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  std::memcpy(swTraceStringBuffer.data(),</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  packetBuffer + offset, swTraceStringBuffer.size());</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  swTraceMessage.m_Name.assign(swTraceStringBuffer.begin(), swTraceStringBuffer.end()); <span class="comment">// name</span></div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span> </div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="comment">// Check the ui_name</span></div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#af9eb13006d20d612855b0eb00bd7b1f0">CalculateSizeOfPaddedSwString</a>(swTraceMessage.m_Name);</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  uint32_t swTraceUINameLength = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  swTraceStringBuffer.resize(swTraceUINameLength - 1);</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  std::memcpy(swTraceStringBuffer.data(),</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  packetBuffer + offset, swTraceStringBuffer.size());</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> </div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  swTraceMessage.m_UiName.assign(swTraceStringBuffer.begin(), swTraceStringBuffer.end()); <span class="comment">// ui_name</span></div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> </div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="comment">// Check arg_types</span></div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#af9eb13006d20d612855b0eb00bd7b1f0">CalculateSizeOfPaddedSwString</a>(swTraceMessage.m_UiName);</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  uint32_t swTraceArgTypesLength = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  swTraceStringBuffer.resize(swTraceArgTypesLength - 1);</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  std::memcpy(swTraceStringBuffer.data(),</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  packetBuffer + offset, swTraceStringBuffer.size());</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> </div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  swTraceMessage.m_ArgTypes.assign(swTraceStringBuffer.begin(), swTraceStringBuffer.end()); <span class="comment">// arg_types</span></div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  std::string swTraceString(swTraceStringBuffer.begin(), swTraceStringBuffer.end());</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="comment">// Check arg_names</span></div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#af9eb13006d20d612855b0eb00bd7b1f0">CalculateSizeOfPaddedSwString</a>(swTraceString);</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  uint32_t swTraceArgNamesLength = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">ReadUint32</a>(packetBuffer, offset);</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  swTraceStringBuffer.resize(swTraceArgNamesLength - 1);</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  std::memcpy(swTraceStringBuffer.data(),</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  packetBuffer + offset, swTraceStringBuffer.size());</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  swTraceString.assign(swTraceStringBuffer.begin(), swTraceStringBuffer.end());</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  std::stringstream stringStream(swTraceString);</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  std::string argName;</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keywordflow">while</span> (std::getline(stringStream, argName, <span class="charliteral">','</span>))</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  {</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  swTraceMessage.m_ArgNames.push_back(argName);</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  }</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#af9eb13006d20d612855b0eb00bd7b1f0">CalculateSizeOfPaddedSwString</a>(swTraceString);</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordflow">return</span> swTraceMessage;</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a100e71143e7c9abe8fb6f3ec9a810c63"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const unsigned char *buffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00253">ProfilingUtils.cpp:253</a></div></div> |
| 1683 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af9eb13006d20d612855b0eb00bd7b1f0"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af9eb13006d20d612855b0eb00bd7b1f0">armnn::profiling::CalculateSizeOfPaddedSwString</a></div><div class="ttdeci">uint32_t CalculateSizeOfPaddedSwString(const std::string &str)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00310">ProfilingUtils.cpp:310</a></div></div> |
| 1684 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 1685 | </div><!-- fragment --> |
| 1686 | </div> |
| 1687 | </div> |
| 1688 | <a id="a0ffb94cb0085a54a92f1c4eeaa6cf772"></a> |
| 1689 | <h2 class="memtitle"><span class="permalink"><a href="#a0ffb94cb0085a54a92f1c4eeaa6cf772">◆ </a></span>ReadUint16() <span class="overload">[1/2]</span></h2> |
| 1690 | |
| 1691 | <div class="memitem"> |
| 1692 | <div class="memproto"> |
| 1693 | <table class="memname"> |
| 1694 | <tr> |
| 1695 | <td class="memname">uint16_t ReadUint16 </td> |
| 1696 | <td>(</td> |
| 1697 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 1698 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 1699 | </tr> |
| 1700 | <tr> |
| 1701 | <td class="paramkey"></td> |
| 1702 | <td></td> |
| 1703 | <td class="paramtype">unsigned int </td> |
| 1704 | <td class="paramname"><em>offset</em> </td> |
| 1705 | </tr> |
| 1706 | <tr> |
| 1707 | <td></td> |
| 1708 | <td>)</td> |
| 1709 | <td></td><td></td> |
| 1710 | </tr> |
| 1711 | </table> |
| 1712 | </div><div class="memdoc"> |
| 1713 | |
| 1714 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00211">211</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1715 | |
| 1716 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l01683">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_stream_metadata_command_handler_8cpp_source.xhtml#l00057">armnn::gatordmock::ReadString()</a>.</p> |
| 1717 | <div class="fragment"><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> {</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#a727b3d8a62d5910f2d2efe321748ee15">ReadUint16</a>(packetBuffer->GetReadableData(), offset);</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a727b3d8a62d5910f2d2efe321748ee15"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a727b3d8a62d5910f2d2efe321748ee15">armnn::profiling::ReadUint16</a></div><div class="ttdeci">uint16_t ReadUint16(const unsigned char *buffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00265">ProfilingUtils.cpp:265</a></div></div> |
| 1718 | </div><!-- fragment --> |
| 1719 | </div> |
| 1720 | </div> |
| 1721 | <a id="a727b3d8a62d5910f2d2efe321748ee15"></a> |
| 1722 | <h2 class="memtitle"><span class="permalink"><a href="#a727b3d8a62d5910f2d2efe321748ee15">◆ </a></span>ReadUint16() <span class="overload">[2/2]</span></h2> |
| 1723 | |
| 1724 | <div class="memitem"> |
| 1725 | <div class="memproto"> |
| 1726 | <table class="memname"> |
| 1727 | <tr> |
| 1728 | <td class="memname">uint16_t ReadUint16 </td> |
| 1729 | <td>(</td> |
| 1730 | <td class="paramtype">const unsigned char * </td> |
| 1731 | <td class="paramname"><em>buffer</em>, </td> |
| 1732 | </tr> |
| 1733 | <tr> |
| 1734 | <td class="paramkey"></td> |
| 1735 | <td></td> |
| 1736 | <td class="paramtype">unsigned int </td> |
| 1737 | <td class="paramname"><em>offset</em> </td> |
| 1738 | </tr> |
| 1739 | <tr> |
| 1740 | <td></td> |
| 1741 | <td>)</td> |
| 1742 | <td></td><td></td> |
| 1743 | </tr> |
| 1744 | </table> |
| 1745 | </div><div class="memdoc"> |
| 1746 | |
| 1747 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00265">265</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1748 | <div class="fragment"><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> {</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  uint32_t value = 0;</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  value = <span class="keyword">static_cast<</span>uint32_t<span class="keyword">></span>(buffer[offset]);</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  value |= <span class="keyword">static_cast<</span>uint32_t<span class="keyword">></span>(buffer[offset + 1]) << 8;</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>uint16_t<span class="keyword">></span>(value);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> }</div></div><!-- fragment --> |
| 1749 | </div> |
| 1750 | </div> |
| 1751 | <a id="ad56f4c3ea5e88279bb6ef1f31d9dc6df"></a> |
| 1752 | <h2 class="memtitle"><span class="permalink"><a href="#ad56f4c3ea5e88279bb6ef1f31d9dc6df">◆ </a></span>ReadUint32() <span class="overload">[1/2]</span></h2> |
| 1753 | |
| 1754 | <div class="memitem"> |
| 1755 | <div class="memproto"> |
| 1756 | <table class="memname"> |
| 1757 | <tr> |
| 1758 | <td class="memname">uint32_t ReadUint32 </td> |
| 1759 | <td>(</td> |
| 1760 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 1761 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 1762 | </tr> |
| 1763 | <tr> |
| 1764 | <td class="paramkey"></td> |
| 1765 | <td></td> |
| 1766 | <td class="paramtype">unsigned int </td> |
| 1767 | <td class="paramname"><em>offset</em> </td> |
| 1768 | </tr> |
| 1769 | <tr> |
| 1770 | <td></td> |
| 1771 | <td>)</td> |
| 1772 | <td></td><td></td> |
| 1773 | </tr> |
| 1774 | </table> |
| 1775 | </div><div class="memdoc"> |
| 1776 | |
| 1777 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00204">204</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1778 | |
| 1779 | <p class="reference">Referenced by <a class="el" href="_buffer_tests_8cpp_source.xhtml#l00018">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_periodic_counter_selection_response_handler_8cpp_source.xhtml#l00018">PeriodicCounterSelectionResponseHandler::operator()()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00105">TimelineCaptureCommandHandler::ReadEvent()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00049">TimelineCaptureCommandHandler::ReadLabel()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00087">TimelineCaptureCommandHandler::ReadRelationship()</a>, <a class="el" href="_stream_metadata_command_handler_8cpp_source.xhtml#l00057">armnn::gatordmock::ReadString()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00320">ReadSwTraceMessage()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00023">SendTimelinePacketToCommandHandler()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00201">VerifyTimelineEntityBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00232">VerifyTimelineEventBinaryPacket()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00097">VerifyTimelineEventClassBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00028">VerifyTimelineHeaderBinary()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00056">VerifyTimelineLabelBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00120">VerifyTimelineRelationshipBinaryPacketData()</a>, and <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00071">MockProfilingConnection::WritePacket()</a>.</p> |
| 1780 | <div class="fragment"><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">ReadUint32</a>(packetBuffer->GetReadableData(), offset);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a100e71143e7c9abe8fb6f3ec9a810c63"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a100e71143e7c9abe8fb6f3ec9a810c63">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const unsigned char *buffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00253">ProfilingUtils.cpp:253</a></div></div> |
| 1781 | </div><!-- fragment --> |
| 1782 | </div> |
| 1783 | </div> |
| 1784 | <a id="a100e71143e7c9abe8fb6f3ec9a810c63"></a> |
| 1785 | <h2 class="memtitle"><span class="permalink"><a href="#a100e71143e7c9abe8fb6f3ec9a810c63">◆ </a></span>ReadUint32() <span class="overload">[2/2]</span></h2> |
| 1786 | |
| 1787 | <div class="memitem"> |
| 1788 | <div class="memproto"> |
| 1789 | <table class="memname"> |
| 1790 | <tr> |
| 1791 | <td class="memname">uint32_t ReadUint32 </td> |
| 1792 | <td>(</td> |
| 1793 | <td class="paramtype">const unsigned char * </td> |
| 1794 | <td class="paramname"><em>buffer</em>, </td> |
| 1795 | </tr> |
| 1796 | <tr> |
| 1797 | <td class="paramkey"></td> |
| 1798 | <td></td> |
| 1799 | <td class="paramtype">unsigned int </td> |
| 1800 | <td class="paramname"><em>offset</em> </td> |
| 1801 | </tr> |
| 1802 | <tr> |
| 1803 | <td></td> |
| 1804 | <td>)</td> |
| 1805 | <td></td><td></td> |
| 1806 | </tr> |
| 1807 | </table> |
| 1808 | </div><div class="memdoc"> |
| 1809 | |
| 1810 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00253">253</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1811 | <div class="fragment"><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> {</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  uint32_t value = 0;</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  value = <span class="keyword">static_cast<</span>uint32_t<span class="keyword">></span>(buffer[offset]);</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  value |= <span class="keyword">static_cast<</span>uint32_t<span class="keyword">></span>(buffer[offset + 1]) << 8;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  value |= <span class="keyword">static_cast<</span>uint32_t<span class="keyword">></span>(buffer[offset + 2]) << 16;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  value |= <span class="keyword">static_cast<</span>uint32_t<span class="keyword">></span>(buffer[offset + 3]) << 24;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">return</span> value;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> }</div></div><!-- fragment --> |
| 1812 | </div> |
| 1813 | </div> |
| 1814 | <a id="aa4de2b511faa41accc2c35cadf051124"></a> |
| 1815 | <h2 class="memtitle"><span class="permalink"><a href="#aa4de2b511faa41accc2c35cadf051124">◆ </a></span>ReadUint64() <span class="overload">[1/2]</span></h2> |
| 1816 | |
| 1817 | <div class="memitem"> |
| 1818 | <div class="memproto"> |
| 1819 | <table class="memname"> |
| 1820 | <tr> |
| 1821 | <td class="memname">uint64_t ReadUint64 </td> |
| 1822 | <td>(</td> |
| 1823 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 1824 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 1825 | </tr> |
| 1826 | <tr> |
| 1827 | <td class="paramkey"></td> |
| 1828 | <td></td> |
| 1829 | <td class="paramtype">unsigned int </td> |
| 1830 | <td class="paramname"><em>offset</em> </td> |
| 1831 | </tr> |
| 1832 | <tr> |
| 1833 | <td></td> |
| 1834 | <td>)</td> |
| 1835 | <td></td><td></td> |
| 1836 | </tr> |
| 1837 | </table> |
| 1838 | </div><div class="memdoc"> |
| 1839 | |
| 1840 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00197">197</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1841 | |
| 1842 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l03382">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00071">TimelineCaptureCommandHandler::ReadEntity()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00105">TimelineCaptureCommandHandler::ReadEvent()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00079">TimelineCaptureCommandHandler::ReadEventClass()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00049">TimelineCaptureCommandHandler::ReadLabel()</a>, <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00087">TimelineCaptureCommandHandler::ReadRelationship()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00201">VerifyTimelineEntityBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00232">VerifyTimelineEventBinaryPacket()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00097">VerifyTimelineEventClassBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00056">VerifyTimelineLabelBinaryPacketData()</a>, and <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00120">VerifyTimelineRelationshipBinaryPacketData()</a>.</p> |
| 1843 | <div class="fragment"><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> {</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#a6226b639a80d73acb1e66c622beed309">ReadUint64</a>(packetBuffer->GetReadableData(), offset);</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a6226b639a80d73acb1e66c622beed309"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a6226b639a80d73acb1e66c622beed309">armnn::profiling::ReadUint64</a></div><div class="ttdeci">uint64_t ReadUint64(const unsigned char *buffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00236">ProfilingUtils.cpp:236</a></div></div> |
| 1844 | </div><!-- fragment --> |
| 1845 | </div> |
| 1846 | </div> |
| 1847 | <a id="a6226b639a80d73acb1e66c622beed309"></a> |
| 1848 | <h2 class="memtitle"><span class="permalink"><a href="#a6226b639a80d73acb1e66c622beed309">◆ </a></span>ReadUint64() <span class="overload">[2/2]</span></h2> |
| 1849 | |
| 1850 | <div class="memitem"> |
| 1851 | <div class="memproto"> |
| 1852 | <table class="memname"> |
| 1853 | <tr> |
| 1854 | <td class="memname">uint64_t ReadUint64 </td> |
| 1855 | <td>(</td> |
| 1856 | <td class="paramtype">const unsigned char * </td> |
| 1857 | <td class="paramname"><em>buffer</em>, </td> |
| 1858 | </tr> |
| 1859 | <tr> |
| 1860 | <td class="paramkey"></td> |
| 1861 | <td></td> |
| 1862 | <td class="paramtype">unsigned int </td> |
| 1863 | <td class="paramname"><em>offset</em> </td> |
| 1864 | </tr> |
| 1865 | <tr> |
| 1866 | <td></td> |
| 1867 | <td>)</td> |
| 1868 | <td></td><td></td> |
| 1869 | </tr> |
| 1870 | </table> |
| 1871 | </div><div class="memdoc"> |
| 1872 | |
| 1873 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00236">236</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1874 | <div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> {</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  uint64_t value = 0;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  value = <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset]);</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  value |= <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset + 1]) << 8;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  value |= <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset + 2]) << 16;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  value |= <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset + 3]) << 24;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  value |= <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset + 4]) << 32;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  value |= <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset + 5]) << 40;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  value |= <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset + 6]) << 48;</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  value |= <span class="keyword">static_cast<</span>uint64_t<span class="keyword">></span>(buffer[offset + 7]) << 56;</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordflow">return</span> value;</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> }</div></div><!-- fragment --> |
| 1875 | </div> |
| 1876 | </div> |
| 1877 | <a id="a74b483b652cc32f03151b10a1366d607"></a> |
| 1878 | <h2 class="memtitle"><span class="permalink"><a href="#a74b483b652cc32f03151b10a1366d607">◆ </a></span>ReadUint8() <span class="overload">[1/2]</span></h2> |
| 1879 | |
| 1880 | <div class="memitem"> |
| 1881 | <div class="memproto"> |
| 1882 | <table class="memname"> |
| 1883 | <tr> |
| 1884 | <td class="memname">uint8_t ReadUint8 </td> |
| 1885 | <td>(</td> |
| 1886 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 1887 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 1888 | </tr> |
| 1889 | <tr> |
| 1890 | <td class="paramkey"></td> |
| 1891 | <td></td> |
| 1892 | <td class="paramtype">unsigned int </td> |
| 1893 | <td class="paramname"><em>offset</em> </td> |
| 1894 | </tr> |
| 1895 | <tr> |
| 1896 | <td></td> |
| 1897 | <td>)</td> |
| 1898 | <td></td><td></td> |
| 1899 | </tr> |
| 1900 | </table> |
| 1901 | </div><div class="memdoc"> |
| 1902 | |
| 1903 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00218">218</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1904 | |
| 1905 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01135">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00310">DirectoryCaptureCommandHandler::GetCounterDirectory()</a>, and <a class="el" href="_timeline_capture_command_handler_8cpp_source.xhtml#l00049">TimelineCaptureCommandHandler::ReadLabel()</a>.</p> |
| 1906 | <div class="fragment"><div class="line"><a name="l00219"></a><span class="lineno"> 219</span> {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#a4f91fd7ff84cd6bbfbc8dd065bf493dd">ReadUint8</a>(packetBuffer->GetReadableData(), offset);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a4f91fd7ff84cd6bbfbc8dd065bf493dd"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a4f91fd7ff84cd6bbfbc8dd065bf493dd">armnn::profiling::ReadUint8</a></div><div class="ttdeci">uint8_t ReadUint8(const unsigned char *buffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00275">ProfilingUtils.cpp:275</a></div></div> |
| 1907 | </div><!-- fragment --> |
| 1908 | </div> |
| 1909 | </div> |
| 1910 | <a id="a4f91fd7ff84cd6bbfbc8dd065bf493dd"></a> |
| 1911 | <h2 class="memtitle"><span class="permalink"><a href="#a4f91fd7ff84cd6bbfbc8dd065bf493dd">◆ </a></span>ReadUint8() <span class="overload">[2/2]</span></h2> |
| 1912 | |
| 1913 | <div class="memitem"> |
| 1914 | <div class="memproto"> |
| 1915 | <table class="memname"> |
| 1916 | <tr> |
| 1917 | <td class="memname">uint8_t ReadUint8 </td> |
| 1918 | <td>(</td> |
| 1919 | <td class="paramtype">const unsigned char * </td> |
| 1920 | <td class="paramname"><em>buffer</em>, </td> |
| 1921 | </tr> |
| 1922 | <tr> |
| 1923 | <td class="paramkey"></td> |
| 1924 | <td></td> |
| 1925 | <td class="paramtype">unsigned int </td> |
| 1926 | <td class="paramname"><em>offset</em> </td> |
| 1927 | </tr> |
| 1928 | <tr> |
| 1929 | <td></td> |
| 1930 | <td>)</td> |
| 1931 | <td></td><td></td> |
| 1932 | </tr> |
| 1933 | </table> |
| 1934 | </div><div class="memdoc"> |
| 1935 | |
| 1936 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00275">275</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 1937 | <div class="fragment"><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> {</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">return</span> buffer[offset];</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> }</div></div><!-- fragment --> |
| 1938 | </div> |
| 1939 | </div> |
| 1940 | <a id="a5e25734c0aca661f0fe02479743719a1"></a> |
| 1941 | <h2 class="memtitle"><span class="permalink"><a href="#a5e25734c0aca661f0fe02479743719a1">◆ </a></span>StringToSwTraceString()</h2> |
| 1942 | |
| 1943 | <div class="memitem"> |
| 1944 | <div class="memproto"> |
| 1945 | <table class="memname"> |
| 1946 | <tr> |
| 1947 | <td class="memname">bool armnn::profiling::StringToSwTraceString </td> |
| 1948 | <td>(</td> |
| 1949 | <td class="paramtype">const std::string & </td> |
| 1950 | <td class="paramname"><em>s</em>, </td> |
| 1951 | </tr> |
| 1952 | <tr> |
| 1953 | <td class="paramkey"></td> |
| 1954 | <td></td> |
| 1955 | <td class="paramtype">std::vector< uint32_t > & </td> |
| 1956 | <td class="paramname"><em>outputBuffer</em> </td> |
| 1957 | </tr> |
| 1958 | <tr> |
| 1959 | <td></td> |
| 1960 | <td>)</td> |
| 1961 | <td></td><td></td> |
| 1962 | </tr> |
| 1963 | </table> |
| 1964 | </div><div class="memdoc"> |
| 1965 | |
| 1966 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00094">94</a> of file <a class="el" href="_profiling_utils_8hpp_source.xhtml">ProfilingUtils.hpp</a>.</p> |
| 1967 | |
| 1968 | <p class="reference">References <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>, and <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>.</p> |
| 1969 | <div class="fragment"><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="comment">// Converts the given string to an SWTrace "string" (i.e. a string of "chars"), and writes it into</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="comment">// the given buffer including the null-terminator. It also pads it to the next uint32_t if necessary</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// Clear the output buffer</span></div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  outputBuffer.clear();</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="comment">// Check that the given string is a valid SWTrace "string" (i.e. a string of "chars")</span></div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">if</span> (!IsValidSwTraceString<SwTracePolicy>(s))</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// Prepare the output buffer</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">size_t</span> s_size = s.size() + 1; <span class="comment">// The size of the string (in chars) plus the null-terminator</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">size_t</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="comment">// Output buffer size = StringLength (32 bit) + amount of complete 32bit words that fit into the string</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// + an additional 32bit word if there are remaining chars to complete the string</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">// (The rest of the 32bit word is then filled with the NULL terminator)</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordtype">size_t</span> outBufferSize = 1 + (s_size / <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>) + (s_size % uint32_t_size != 0 ? 1 : 0);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  outputBuffer.resize(outBufferSize, <span class="charliteral">'\0'</span>);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// Write the SWTrace string to the output buffer</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  outputBuffer[0] = <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint32_t>(s_size);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  std::memcpy(outputBuffer.data() + 1, s.data(), s_size);</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> }</div><div class="ttc" id="namespacearmnn_xhtml_a37fa39012e90d568df7f774cd6d1e956"><div class="ttname"><a href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">armnn::numeric_cast</a></div><div class="ttdeci">std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)</div><div class="ttdef"><b>Definition:</b> <a href="_numeric_cast_8hpp_source.xhtml#l00033">NumericCast.hpp:33</a></div></div> |
| 1970 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 1971 | </div><!-- fragment --> |
| 1972 | </div> |
| 1973 | </div> |
| 1974 | <a id="af0cddaa4e116d294dacaaced90ca341c"></a> |
| 1975 | <h2 class="memtitle"><span class="permalink"><a href="#af0cddaa4e116d294dacaaced90ca341c">◆ </a></span>WriteBytes() <span class="overload">[1/3]</span></h2> |
| 1976 | |
| 1977 | <div class="memitem"> |
| 1978 | <div class="memproto"> |
| 1979 | <table class="memname"> |
| 1980 | <tr> |
| 1981 | <td class="memname">void armnn::profiling::WriteBytes </td> |
| 1982 | <td>(</td> |
| 1983 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 1984 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 1985 | </tr> |
| 1986 | <tr> |
| 1987 | <td class="paramkey"></td> |
| 1988 | <td></td> |
| 1989 | <td class="paramtype">unsigned int </td> |
| 1990 | <td class="paramname"><em>offset</em>, </td> |
| 1991 | </tr> |
| 1992 | <tr> |
| 1993 | <td class="paramkey"></td> |
| 1994 | <td></td> |
| 1995 | <td class="paramtype">const void * </td> |
| 1996 | <td class="paramname"><em>value</em>, </td> |
| 1997 | </tr> |
| 1998 | <tr> |
| 1999 | <td class="paramkey"></td> |
| 2000 | <td></td> |
| 2001 | <td class="paramtype">unsigned int </td> |
| 2002 | <td class="paramname"><em>valueSize</em> </td> |
| 2003 | </tr> |
| 2004 | <tr> |
| 2005 | <td></td> |
| 2006 | <td>)</td> |
| 2007 | <td></td><td></td> |
| 2008 | </tr> |
| 2009 | </table> |
| 2010 | </div><div class="memdoc"> |
| 2011 | |
| 2012 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00089">89</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2013 | |
| 2014 | <p class="reference">Referenced by <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00140">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00805">WriteTimelineEventBinary()</a>.</p> |
| 2015 | <div class="fragment"><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a1c81dacff6eb2062571f7f4db1cb7617">WriteBytes</a>(packetBuffer->GetWritableData(), offset, value, valueSize);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a1c81dacff6eb2062571f7f4db1cb7617"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a1c81dacff6eb2062571f7f4db1cb7617">armnn::profiling::WriteBytes</a></div><div class="ttdeci">void WriteBytes(unsigned char *buffer, unsigned int offset, const void *value, unsigned int valueSize)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00140">ProfilingUtils.cpp:140</a></div></div> |
| 2016 | </div><!-- fragment --> |
| 2017 | </div> |
| 2018 | </div> |
| 2019 | <a id="a1c81dacff6eb2062571f7f4db1cb7617"></a> |
| 2020 | <h2 class="memtitle"><span class="permalink"><a href="#a1c81dacff6eb2062571f7f4db1cb7617">◆ </a></span>WriteBytes() <span class="overload">[2/3]</span></h2> |
| 2021 | |
| 2022 | <div class="memitem"> |
| 2023 | <div class="memproto"> |
| 2024 | <table class="memname"> |
| 2025 | <tr> |
| 2026 | <td class="memname">void WriteBytes </td> |
| 2027 | <td>(</td> |
| 2028 | <td class="paramtype">unsigned char * </td> |
| 2029 | <td class="paramname"><em>buffer</em>, </td> |
| 2030 | </tr> |
| 2031 | <tr> |
| 2032 | <td class="paramkey"></td> |
| 2033 | <td></td> |
| 2034 | <td class="paramtype">unsigned int </td> |
| 2035 | <td class="paramname"><em>offset</em>, </td> |
| 2036 | </tr> |
| 2037 | <tr> |
| 2038 | <td class="paramkey"></td> |
| 2039 | <td></td> |
| 2040 | <td class="paramtype">const void * </td> |
| 2041 | <td class="paramname"><em>value</em>, </td> |
| 2042 | </tr> |
| 2043 | <tr> |
| 2044 | <td class="paramkey"></td> |
| 2045 | <td></td> |
| 2046 | <td class="paramtype">unsigned int </td> |
| 2047 | <td class="paramname"><em>valueSize</em> </td> |
| 2048 | </tr> |
| 2049 | <tr> |
| 2050 | <td></td> |
| 2051 | <td>)</td> |
| 2052 | <td></td><td></td> |
| 2053 | </tr> |
| 2054 | </table> |
| 2055 | </div><div class="memdoc"> |
| 2056 | |
| 2057 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00140">140</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2058 | <div class="fragment"><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  BOOST_ASSERT(value);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < valueSize; i++, offset++)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  buffer[offset] = *(<span class="keyword">reinterpret_cast<</span><span class="keyword">const </span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*<span class="keyword">></span>(value) + i);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div></div><!-- fragment --> |
| 2059 | </div> |
| 2060 | </div> |
| 2061 | <a id="a7024ffa58173d70426a51899d35266d7"></a> |
| 2062 | <h2 class="memtitle"><span class="permalink"><a href="#a7024ffa58173d70426a51899d35266d7">◆ </a></span>WriteBytes() <span class="overload">[3/3]</span></h2> |
| 2063 | |
| 2064 | <div class="memitem"> |
| 2065 | <div class="memproto"> |
| 2066 | <table class="memname"> |
| 2067 | <tr> |
| 2068 | <td class="memname">void armnn::profiling::WriteBytes </td> |
| 2069 | <td>(</td> |
| 2070 | <td class="paramtype">const <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a> & </td> |
| 2071 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 2072 | </tr> |
| 2073 | <tr> |
| 2074 | <td class="paramkey"></td> |
| 2075 | <td></td> |
| 2076 | <td class="paramtype">unsigned int </td> |
| 2077 | <td class="paramname"><em>offset</em>, </td> |
| 2078 | </tr> |
| 2079 | <tr> |
| 2080 | <td class="paramkey"></td> |
| 2081 | <td></td> |
| 2082 | <td class="paramtype">const void * </td> |
| 2083 | <td class="paramname"><em>value</em>, </td> |
| 2084 | </tr> |
| 2085 | <tr> |
| 2086 | <td class="paramkey"></td> |
| 2087 | <td></td> |
| 2088 | <td class="paramtype">unsigned int </td> |
| 2089 | <td class="paramname"><em>valueSize</em> </td> |
| 2090 | </tr> |
| 2091 | <tr> |
| 2092 | <td></td> |
| 2093 | <td>)</td> |
| 2094 | <td></td><td></td> |
| 2095 | </tr> |
| 2096 | </table> |
| 2097 | </div><div class="memdoc"> |
| 2098 | |
| 2099 | </div> |
| 2100 | </div> |
| 2101 | <a id="a27d1c992711722739250e2bbd9ce7ede"></a> |
| 2102 | <h2 class="memtitle"><span class="permalink"><a href="#a27d1c992711722739250e2bbd9ce7ede">◆ </a></span>WriteTimelineEntityBinary()</h2> |
| 2103 | |
| 2104 | <div class="memitem"> |
| 2105 | <div class="memproto"> |
| 2106 | <table class="memname"> |
| 2107 | <tr> |
| 2108 | <td class="memname"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> WriteTimelineEntityBinary </td> |
| 2109 | <td>(</td> |
| 2110 | <td class="paramtype">uint64_t </td> |
| 2111 | <td class="paramname"><em>profilingGuid</em>, </td> |
| 2112 | </tr> |
| 2113 | <tr> |
| 2114 | <td class="paramkey"></td> |
| 2115 | <td></td> |
| 2116 | <td class="paramtype">unsigned char * </td> |
| 2117 | <td class="paramname"><em>buffer</em>, </td> |
| 2118 | </tr> |
| 2119 | <tr> |
| 2120 | <td class="paramkey"></td> |
| 2121 | <td></td> |
| 2122 | <td class="paramtype">unsigned int </td> |
| 2123 | <td class="paramname"><em>remainingBufferSize</em>, </td> |
| 2124 | </tr> |
| 2125 | <tr> |
| 2126 | <td class="paramkey"></td> |
| 2127 | <td></td> |
| 2128 | <td class="paramtype">unsigned int & </td> |
| 2129 | <td class="paramname"><em>numberOfBytesWritten</em> </td> |
| 2130 | </tr> |
| 2131 | <tr> |
| 2132 | <td></td> |
| 2133 | <td>)</td> |
| 2134 | <td></td><td></td> |
| 2135 | </tr> |
| 2136 | </table> |
| 2137 | </div><div class="memdoc"> |
| 2138 | |
| 2139 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00517">517</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2140 | |
| 2141 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">WriteUint32()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00112">WriteUint64()</a>.</p> |
| 2142 | |
| 2143 | <p class="reference">Referenced by <a class="el" href="_timeline_packet_tests_8cpp_source.xhtml#l00543">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00081">SendTimelinePacket::SendTimelineEntityBinaryPacket()</a>.</p> |
| 2144 | <div class="fragment"><div class="line"><a name="l00521"></a><span class="lineno"> 521</span> {</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="comment">// Initialize the output value</span></div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  numberOfBytesWritten = 0;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span> </div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="comment">// Check that the given buffer is valid</span></div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || remainingBufferSize == 0)</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  {</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  }</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span> </div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  <span class="comment">// Utils</span></div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span> </div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="comment">// Calculate the length of the data (in bytes)</span></div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timelineEntityDataLength = uint32_t_size + uint64_t_size; <span class="comment">// decl_id + Profiling GUID</span></div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> </div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <span class="comment">// Check whether the timeline binary packet fits in the given buffer</span></div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keywordflow">if</span> (timelineEntityDataLength > remainingBufferSize)</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  {</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  }</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  <span class="comment">// Initialize the offset for writing in the buffer</span></div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span> </div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  <span class="comment">// Write the decl_Id to the buffer</span></div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, 1u);</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span> </div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  <span class="comment">// Write the timeline binary packet payload to the buffer</span></div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, profilingGuid); <span class="comment">// Profiling GUID</span></div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span> </div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  <span class="comment">// Update the number of bytes written</span></div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  numberOfBytesWritten = timelineEntityDataLength;</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> </div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Ok;</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa3e447531d9bdaad3da25f23edf18fb4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(unsigned char *buffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00165">ProfilingUtils.cpp:165</a></div></div> |
| 2145 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 2146 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af2bb4db604c56391c1361b32402c65a7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">armnn::profiling::WriteUint64</a></div><div class="ttdeci">void WriteUint64(unsigned char *buffer, unsigned int offset, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00151">ProfilingUtils.cpp:151</a></div></div> |
| 2147 | </div><!-- fragment --> |
| 2148 | </div> |
| 2149 | </div> |
| 2150 | <a id="a0a84cb02cb3580ed0bf872cf6b5c09ae"></a> |
| 2151 | <h2 class="memtitle"><span class="permalink"><a href="#a0a84cb02cb3580ed0bf872cf6b5c09ae">◆ </a></span>WriteTimelineEventBinary()</h2> |
| 2152 | |
| 2153 | <div class="memitem"> |
| 2154 | <div class="memproto"> |
| 2155 | <table class="memname"> |
| 2156 | <tr> |
| 2157 | <td class="memname"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> WriteTimelineEventBinary </td> |
| 2158 | <td>(</td> |
| 2159 | <td class="paramtype">uint64_t </td> |
| 2160 | <td class="paramname"><em>timestamp</em>, </td> |
| 2161 | </tr> |
| 2162 | <tr> |
| 2163 | <td class="paramkey"></td> |
| 2164 | <td></td> |
| 2165 | <td class="paramtype">std::thread::id </td> |
| 2166 | <td class="paramname"><em>threadId</em>, </td> |
| 2167 | </tr> |
| 2168 | <tr> |
| 2169 | <td class="paramkey"></td> |
| 2170 | <td></td> |
| 2171 | <td class="paramtype">uint64_t </td> |
| 2172 | <td class="paramname"><em>profilingGuid</em>, </td> |
| 2173 | </tr> |
| 2174 | <tr> |
| 2175 | <td class="paramkey"></td> |
| 2176 | <td></td> |
| 2177 | <td class="paramtype">unsigned char * </td> |
| 2178 | <td class="paramname"><em>buffer</em>, </td> |
| 2179 | </tr> |
| 2180 | <tr> |
| 2181 | <td class="paramkey"></td> |
| 2182 | <td></td> |
| 2183 | <td class="paramtype">unsigned int </td> |
| 2184 | <td class="paramname"><em>remainingBufferSize</em>, </td> |
| 2185 | </tr> |
| 2186 | <tr> |
| 2187 | <td class="paramkey"></td> |
| 2188 | <td></td> |
| 2189 | <td class="paramtype">unsigned int & </td> |
| 2190 | <td class="paramname"><em>numberOfBytesWritten</em> </td> |
| 2191 | </tr> |
| 2192 | <tr> |
| 2193 | <td></td> |
| 2194 | <td>)</td> |
| 2195 | <td></td><td></td> |
| 2196 | </tr> |
| 2197 | </table> |
| 2198 | </div><div class="memdoc"> |
| 2199 | |
| 2200 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00805">805</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2201 | |
| 2202 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00089">WriteBytes()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">WriteUint32()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00112">WriteUint64()</a>.</p> |
| 2203 | |
| 2204 | <p class="reference">Referenced by <a class="el" href="_timeline_packet_tests_8cpp_source.xhtml#l00675">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00087">SendTimelinePacket::SendTimelineEventBinaryPacket()</a>.</p> |
| 2205 | <div class="fragment"><div class="line"><a name="l00811"></a><span class="lineno"> 811</span> {</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  <span class="comment">// Initialize the output value</span></div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  numberOfBytesWritten = 0;</div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  <span class="comment">// Check that the given buffer is valid</span></div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || remainingBufferSize == 0)</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  {</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  }</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span> </div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  <span class="comment">// Utils</span></div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> threadId_size = <span class="keyword">sizeof</span>(std::thread::id);</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span> </div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  <span class="comment">// decl_id of the timeline message</span></div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  uint32_t declId = 4;</div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span> </div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  <span class="comment">// Calculate the length of the data (in bytes)</span></div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timelineEventDataLength = uint32_t_size + <span class="comment">// decl_id</span></div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  uint64_t_size + <span class="comment">// Timestamp</span></div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  threadId_size + <span class="comment">// Thread id</span></div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  uint64_t_size; <span class="comment">// Profiling GUID</span></div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span> </div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  <span class="comment">// Check whether the timeline binary packet fits in the given buffer</span></div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  <span class="keywordflow">if</span> (timelineEventDataLength > remainingBufferSize)</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  {</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  }</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span> </div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="comment">// Initialize the offset for writing in the buffer</span></div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span> </div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  <span class="comment">// Write the timeline binary payload to the buffer</span></div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, declId); <span class="comment">// decl_id</span></div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, timestamp); <span class="comment">// Timestamp</span></div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  offset += uint64_t_size;</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a1c81dacff6eb2062571f7f4db1cb7617">WriteBytes</a>(buffer, offset, &threadId, threadId_size); <span class="comment">// Thread id</span></div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  offset += threadId_size;</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, profilingGuid); <span class="comment">// Profiling GUID</span></div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  offset += uint64_t_size;</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  <span class="comment">// Update the number of bytes written</span></div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  numberOfBytesWritten = timelineEventDataLength;</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span> </div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Ok;</div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a1c81dacff6eb2062571f7f4db1cb7617"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a1c81dacff6eb2062571f7f4db1cb7617">armnn::profiling::WriteBytes</a></div><div class="ttdeci">void WriteBytes(unsigned char *buffer, unsigned int offset, const void *value, unsigned int valueSize)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00140">ProfilingUtils.cpp:140</a></div></div> |
| 2206 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa3e447531d9bdaad3da25f23edf18fb4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(unsigned char *buffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00165">ProfilingUtils.cpp:165</a></div></div> |
| 2207 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 2208 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af2bb4db604c56391c1361b32402c65a7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">armnn::profiling::WriteUint64</a></div><div class="ttdeci">void WriteUint64(unsigned char *buffer, unsigned int offset, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00151">ProfilingUtils.cpp:151</a></div></div> |
| 2209 | </div><!-- fragment --> |
| 2210 | </div> |
| 2211 | </div> |
| 2212 | <a id="ac42b224ad252c5c31ee01c6b77fa4737"></a> |
| 2213 | <h2 class="memtitle"><span class="permalink"><a href="#ac42b224ad252c5c31ee01c6b77fa4737">◆ </a></span>WriteTimelineEventClassBinary()</h2> |
| 2214 | |
| 2215 | <div class="memitem"> |
| 2216 | <div class="memproto"> |
| 2217 | <table class="memname"> |
| 2218 | <tr> |
| 2219 | <td class="memname"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> WriteTimelineEventClassBinary </td> |
| 2220 | <td>(</td> |
| 2221 | <td class="paramtype">uint64_t </td> |
| 2222 | <td class="paramname"><em>profilingGuid</em>, </td> |
| 2223 | </tr> |
| 2224 | <tr> |
| 2225 | <td class="paramkey"></td> |
| 2226 | <td></td> |
| 2227 | <td class="paramtype">unsigned char * </td> |
| 2228 | <td class="paramname"><em>buffer</em>, </td> |
| 2229 | </tr> |
| 2230 | <tr> |
| 2231 | <td class="paramkey"></td> |
| 2232 | <td></td> |
| 2233 | <td class="paramtype">unsigned int </td> |
| 2234 | <td class="paramname"><em>remainingBufferSize</em>, </td> |
| 2235 | </tr> |
| 2236 | <tr> |
| 2237 | <td class="paramkey"></td> |
| 2238 | <td></td> |
| 2239 | <td class="paramtype">unsigned int & </td> |
| 2240 | <td class="paramname"><em>numberOfBytesWritten</em> </td> |
| 2241 | </tr> |
| 2242 | <tr> |
| 2243 | <td></td> |
| 2244 | <td>)</td> |
| 2245 | <td></td><td></td> |
| 2246 | </tr> |
| 2247 | </table> |
| 2248 | </div><div class="memdoc"> |
| 2249 | |
| 2250 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00761">761</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2251 | |
| 2252 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">WriteUint32()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00112">WriteUint64()</a>.</p> |
| 2253 | |
| 2254 | <p class="reference">Referenced by <a class="el" href="_timeline_packet_tests_8cpp_source.xhtml#l00609">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00097">SendTimelinePacket::SendTimelineEventClassBinaryPacket()</a>.</p> |
| 2255 | <div class="fragment"><div class="line"><a name="l00765"></a><span class="lineno"> 765</span> {</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  <span class="comment">// Initialize the output value</span></div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  numberOfBytesWritten = 0;</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span> </div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  <span class="comment">// Check that the given buffer is valid</span></div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || remainingBufferSize == 0)</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  {</div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  }</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span> </div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  <span class="comment">// Utils</span></div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span> </div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  <span class="comment">// decl_id of the timeline message</span></div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  uint32_t declId = 2;</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span> </div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  <span class="comment">// Calculate the length of the data (in bytes)</span></div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dataSize = uint32_t_size + uint64_t_size; <span class="comment">// decl_id + Profiling GUID</span></div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span> </div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  <span class="comment">// Check whether the timeline binary fits in the given buffer</span></div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  <span class="keywordflow">if</span> (dataSize > remainingBufferSize)</div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  {</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  }</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span> </div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  <span class="comment">// Initialize the offset for writing in the buffer</span></div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span> </div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span>  <span class="comment">// Write the timeline binary payload to the buffer</span></div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, declId); <span class="comment">// decl_id</span></div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, profilingGuid); <span class="comment">// Profiling GUID</span></div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span> </div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span>  <span class="comment">// Update the number of bytes written</span></div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>  numberOfBytesWritten = dataSize;</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span> </div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Ok;</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa3e447531d9bdaad3da25f23edf18fb4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(unsigned char *buffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00165">ProfilingUtils.cpp:165</a></div></div> |
| 2256 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 2257 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af2bb4db604c56391c1361b32402c65a7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">armnn::profiling::WriteUint64</a></div><div class="ttdeci">void WriteUint64(unsigned char *buffer, unsigned int offset, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00151">ProfilingUtils.cpp:151</a></div></div> |
| 2258 | </div><!-- fragment --> |
| 2259 | </div> |
| 2260 | </div> |
| 2261 | <a id="a3583b5fbfe555acc552a63458e665939"></a> |
| 2262 | <h2 class="memtitle"><span class="permalink"><a href="#a3583b5fbfe555acc552a63458e665939">◆ </a></span>WriteTimelineLabelBinaryPacket()</h2> |
| 2263 | |
| 2264 | <div class="memitem"> |
| 2265 | <div class="memproto"> |
| 2266 | <table class="memname"> |
| 2267 | <tr> |
| 2268 | <td class="memname"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> WriteTimelineLabelBinaryPacket </td> |
| 2269 | <td>(</td> |
| 2270 | <td class="paramtype">uint64_t </td> |
| 2271 | <td class="paramname"><em>profilingGuid</em>, </td> |
| 2272 | </tr> |
| 2273 | <tr> |
| 2274 | <td class="paramkey"></td> |
| 2275 | <td></td> |
| 2276 | <td class="paramtype">const std::string & </td> |
| 2277 | <td class="paramname"><em>label</em>, </td> |
| 2278 | </tr> |
| 2279 | <tr> |
| 2280 | <td class="paramkey"></td> |
| 2281 | <td></td> |
| 2282 | <td class="paramtype">unsigned char * </td> |
| 2283 | <td class="paramname"><em>buffer</em>, </td> |
| 2284 | </tr> |
| 2285 | <tr> |
| 2286 | <td class="paramkey"></td> |
| 2287 | <td></td> |
| 2288 | <td class="paramtype">unsigned int </td> |
| 2289 | <td class="paramname"><em>remainingBufferSize</em>, </td> |
| 2290 | </tr> |
| 2291 | <tr> |
| 2292 | <td class="paramkey"></td> |
| 2293 | <td></td> |
| 2294 | <td class="paramtype">unsigned int & </td> |
| 2295 | <td class="paramname"><em>numberOfBytesWritten</em> </td> |
| 2296 | </tr> |
| 2297 | <tr> |
| 2298 | <td></td> |
| 2299 | <td>)</td> |
| 2300 | <td></td><td></td> |
| 2301 | </tr> |
| 2302 | </table> |
| 2303 | </div><div class="memdoc"> |
| 2304 | |
| 2305 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00454">454</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2306 | |
| 2307 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0a902b0d55fddef6f8d651fe1035b7d4bd">Error</a>, <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">WriteUint32()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00112">WriteUint64()</a>.</p> |
| 2308 | |
| 2309 | <p class="reference">Referenced by <a class="el" href="_timeline_packet_tests_8cpp_source.xhtml#l00015">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00103">SendTimelinePacket::SendTimelineLabelBinaryPacket()</a>.</p> |
| 2310 | <div class="fragment"><div class="line"><a name="l00459"></a><span class="lineno"> 459</span> {</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="comment">// Initialize the output value</span></div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  numberOfBytesWritten = 0;</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <span class="comment">// Check that the given buffer is valid</span></div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || remainingBufferSize == 0)</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  {</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  }</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span> </div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="comment">// Utils</span></div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span> </div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="comment">// Convert the label into a SWTrace string</span></div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  std::vector<uint32_t> swTraceLabel;</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="keywordtype">bool</span> result = StringToSwTraceString<SwTraceCharPolicy>(label, swTraceLabel);</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="keywordflow">if</span> (!result)</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  {</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Error;</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  }</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="comment">// Calculate the size of the SWTrace string label (in bytes)</span></div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> swTraceLabelSize = <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(swTraceLabel.size()) * uint32_t_size;</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="comment">// Calculate the length of the data (in bytes)</span></div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timelineLabelPacketDataLength = uint32_t_size + <span class="comment">// decl_Id</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  uint64_t_size + <span class="comment">// Profiling GUID</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  swTraceLabelSize; <span class="comment">// Label</span></div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span> </div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="comment">// Check whether the timeline binary packet fits in the given buffer</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <span class="keywordflow">if</span> (timelineLabelPacketDataLength > remainingBufferSize)</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  {</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  }</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span> </div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="comment">// Initialize the offset for writing in the buffer</span></div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span> </div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="comment">// Write decl_Id to the buffer</span></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, 0u);</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span> </div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  <span class="comment">// Write the timeline binary packet payload to the buffer</span></div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, profilingGuid); <span class="comment">// Profiling GUID</span></div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  offset += uint64_t_size;</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <span class="keywordflow">for</span> (uint32_t swTraceLabelWord : swTraceLabel)</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  {</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, swTraceLabelWord); <span class="comment">// Label</span></div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  }</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="comment">// Update the number of bytes written</span></div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  numberOfBytesWritten = timelineLabelPacketDataLength;</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Ok;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa3e447531d9bdaad3da25f23edf18fb4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(unsigned char *buffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00165">ProfilingUtils.cpp:165</a></div></div> |
| 2311 | <div class="ttc" id="namespacearmnn_xhtml_a37fa39012e90d568df7f774cd6d1e956"><div class="ttname"><a href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">armnn::numeric_cast</a></div><div class="ttdeci">std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)</div><div class="ttdef"><b>Definition:</b> <a href="_numeric_cast_8hpp_source.xhtml#l00033">NumericCast.hpp:33</a></div></div> |
| 2312 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 2313 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af2bb4db604c56391c1361b32402c65a7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">armnn::profiling::WriteUint64</a></div><div class="ttdeci">void WriteUint64(unsigned char *buffer, unsigned int offset, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00151">ProfilingUtils.cpp:151</a></div></div> |
| 2314 | </div><!-- fragment --> |
| 2315 | </div> |
| 2316 | </div> |
| 2317 | <a id="aecc8787efb41f033785074f2d362895a"></a> |
| 2318 | <h2 class="memtitle"><span class="permalink"><a href="#aecc8787efb41f033785074f2d362895a">◆ </a></span>WriteTimelineMessageDirectoryPackage()</h2> |
| 2319 | |
| 2320 | <div class="memitem"> |
| 2321 | <div class="memproto"> |
| 2322 | <table class="memname"> |
| 2323 | <tr> |
| 2324 | <td class="memname"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> WriteTimelineMessageDirectoryPackage </td> |
| 2325 | <td>(</td> |
| 2326 | <td class="paramtype">unsigned char * </td> |
| 2327 | <td class="paramname"><em>buffer</em>, </td> |
| 2328 | </tr> |
| 2329 | <tr> |
| 2330 | <td class="paramkey"></td> |
| 2331 | <td></td> |
| 2332 | <td class="paramtype">unsigned int </td> |
| 2333 | <td class="paramname"><em>remainingBufferSize</em>, </td> |
| 2334 | </tr> |
| 2335 | <tr> |
| 2336 | <td class="paramkey"></td> |
| 2337 | <td></td> |
| 2338 | <td class="paramtype">unsigned int & </td> |
| 2339 | <td class="paramname"><em>numberOfBytesWritten</em> </td> |
| 2340 | </tr> |
| 2341 | <tr> |
| 2342 | <td></td> |
| 2343 | <td>)</td> |
| 2344 | <td></td><td></td> |
| 2345 | </tr> |
| 2346 | </table> |
| 2347 | </div><div class="memdoc"> |
| 2348 | |
| 2349 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00633">633</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2350 | |
| 2351 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00404">CreateTimelinePacketHeader()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0a902b0d55fddef6f8d651fe1035b7d4bd">Error</a>, <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">WriteUint32()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00133">WriteUint8()</a>.</p> |
| 2352 | |
| 2353 | <p class="reference">Referenced by <a class="el" href="_timeline_packet_tests_8cpp_source.xhtml#l00396">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00122">SendTimelinePacket::SendTimelineMessageDirectoryPackage()</a>.</p> |
| 2354 | <div class="fragment"><div class="line"><a name="l00636"></a><span class="lineno"> 636</span> {</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  <span class="comment">// Initialize the output value</span></div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  numberOfBytesWritten = 0;</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span> </div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  <span class="comment">// Check that the given buffer is valid</span></div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || remainingBufferSize == 0)</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  {</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  }</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span> </div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  <span class="comment">// Utils</span></div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint8_t_size = <span class="keyword">sizeof</span>(uint8_t);</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> threadId_size = <span class="keyword">sizeof</span>(std::thread::id);</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span> </div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <span class="comment">// The payload/data of the packet consists of swtrace event definitions encoded according</span></div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <span class="comment">// to the swtrace directory specification. The messages being the five defined below:</span></div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  <span class="comment">//</span></div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  <span class="comment">// | decl_id | decl_name | ui_name | arg_types | arg_names |</span></div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  <span class="comment">// |-----------|---------------------|-----------------------|-------------|-------------------------------------|</span></div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <span class="comment">// | 0 | declareLabel | declare label | ps | guid,value |</span></div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  <span class="comment">// | 1 | declareEntity | declare entity | p | guid |</span></div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  <span class="comment">// | 2 | declareEventClass | declare event class | p | guid |</span></div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  <span class="comment">// | 3 | declareRelationship | declare relationship | Ippp | relationshipType,relationshipGuid, |</span></div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="comment">// | | | | | headGuid,tailGuid |</span></div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  <span class="comment">// | 4 | declareEvent | declare event | @tp | timestamp,threadId,eventGuid |</span></div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  std::vector<std::vector<std::string>> timelineDirectoryMessages</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  {</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  { <span class="stringliteral">"0"</span>, <span class="stringliteral">"declareLabel"</span>, <span class="stringliteral">"declare label"</span>, <span class="stringliteral">"ps"</span>, <span class="stringliteral">"guid,value"</span> },</div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  { <span class="stringliteral">"1"</span>, <span class="stringliteral">"declareEntity"</span>, <span class="stringliteral">"declare entity"</span>, <span class="stringliteral">"p"</span>, <span class="stringliteral">"guid"</span> },</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  { <span class="stringliteral">"2"</span>, <span class="stringliteral">"declareEventClass"</span>, <span class="stringliteral">"declare event class"</span>, <span class="stringliteral">"p"</span>, <span class="stringliteral">"guid"</span> },</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  { <span class="stringliteral">"3"</span>, <span class="stringliteral">"declareRelationship"</span>, <span class="stringliteral">"declare relationship"</span>, <span class="stringliteral">"Ippp"</span>,</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <span class="stringliteral">"relationshipType,relationshipGuid,headGuid,tailGuid"</span> },</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  { <span class="stringliteral">"4"</span>, <span class="stringliteral">"declareEvent"</span>, <span class="stringliteral">"declare event"</span>, <span class="stringliteral">"@tp"</span>, <span class="stringliteral">"timestamp,threadId,eventGuid"</span> }</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  };</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span> </div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  <span class="comment">// Build the message declarations</span></div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  std::vector<uint32_t> swTraceBuffer;</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& directoryComponent : timelineDirectoryMessages)</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  {</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <span class="comment">// decl_id</span></div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  uint32_t declId = 0;</div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span>  <span class="keywordflow">try</span></div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  {</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  declId = <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint32_t>(std::stoul(directoryComponent[0]));</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>  }</div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception&)</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  {</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Error;</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  }</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  swTraceBuffer.push_back(declId);</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span> </div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <span class="keywordtype">bool</span> result = <span class="keyword">true</span>;</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  result &= ConvertDirectoryComponent<SwTraceNameCharPolicy>(directoryComponent[1], swTraceBuffer); <span class="comment">// decl_name</span></div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  result &= ConvertDirectoryComponent<SwTraceCharPolicy> (directoryComponent[2], swTraceBuffer); <span class="comment">// ui_name</span></div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  result &= ConvertDirectoryComponent<SwTraceTypeCharPolicy>(directoryComponent[3], swTraceBuffer); <span class="comment">// arg_types</span></div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  result &= ConvertDirectoryComponent<SwTraceCharPolicy> (directoryComponent[4], swTraceBuffer); <span class="comment">// arg_names</span></div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  <span class="keywordflow">if</span> (!result)</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  {</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Error;</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  }</div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  }</div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span> </div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dataLength = 3 * uint8_t_size + <span class="comment">// Stream header (3 bytes)</span></div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(swTraceBuffer.size()) *</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  uint32_t_size; <span class="comment">// Trace directory (5 messages)</span></div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span> </div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <span class="comment">// Calculate the timeline directory binary packet size (in bytes)</span></div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timelineDirectoryPacketSize = 2 * uint32_t_size + <span class="comment">// Header (2 words)</span></div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  dataLength; <span class="comment">// Payload</span></div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span> </div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  <span class="comment">// Check whether the timeline directory binary packet fits in the given buffer</span></div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  <span class="keywordflow">if</span> (timelineDirectoryPacketSize > remainingBufferSize)</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  {</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  }</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span> </div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  <span class="comment">// Create packet header</span></div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  <span class="keyword">auto</span> packetHeader = <a class="code" href="namespacearmnn_1_1profiling.xhtml#aca8b4bad45009e1d42dc8de69a0b7e2c">CreateTimelinePacketHeader</a>(1, 0, 0, 0, 0, boost::numeric_cast<uint32_t>(dataLength));</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span> </div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span>  <span class="comment">// Initialize the offset for writing in the buffer</span></div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span> </div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  <span class="comment">// Write the timeline binary packet header to the buffer</span></div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, packetHeader.first);</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, packetHeader.second);</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span> </div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  <span class="comment">// Write the stream header</span></div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  uint8_t streamVersion = 4;</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span>  uint8_t pointerBytes = <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint8_t>(uint64_t_size); <span class="comment">// All GUIDs are uint64_t</span></div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  uint8_t threadIdBytes = <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint8_t>(threadId_size);</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span>  <span class="keywordflow">switch</span> (threadIdBytes)</div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  {</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  <span class="keywordflow">case</span> 4: <span class="comment">// Typically Windows and Android</span></div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  <span class="keywordflow">case</span> 8: <span class="comment">// Typically Linux</span></div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <span class="keywordflow">break</span>; <span class="comment">// Valid values</span></div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Error; <span class="comment">// Invalid value</span></div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span>  }</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#ae00e76f4552e2dad3bdcf1dd72100b4f">WriteUint8</a>(buffer, offset, streamVersion);</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  offset += uint8_t_size;</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#ae00e76f4552e2dad3bdcf1dd72100b4f">WriteUint8</a>(buffer, offset, pointerBytes);</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  offset += uint8_t_size;</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#ae00e76f4552e2dad3bdcf1dd72100b4f">WriteUint8</a>(buffer, offset, threadIdBytes);</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  offset += uint8_t_size;</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span> </div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  <span class="comment">// Write the SWTrace directory</span></div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  uint32_t numberOfDeclarations = <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint32_t>(timelineDirectoryMessages.size());</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, numberOfDeclarations); <span class="comment">// Number of declarations</span></div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  <span class="keywordflow">for</span> (uint32_t i : swTraceBuffer)</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  {</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, i); <span class="comment">// Message declarations</span></div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  }</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span> </div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  <span class="comment">// Update the number of bytes written</span></div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  numberOfBytesWritten = timelineDirectoryPacketSize;</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span> </div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Ok;</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa3e447531d9bdaad3da25f23edf18fb4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(unsigned char *buffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00165">ProfilingUtils.cpp:165</a></div></div> |
| 2355 | <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< uint32_t, uint32_t > 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#l00404">ProfilingUtils.cpp:404</a></div></div> |
| 2356 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ae00e76f4552e2dad3bdcf1dd72100b4f"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ae00e76f4552e2dad3bdcf1dd72100b4f">armnn::profiling::WriteUint8</a></div><div class="ttdeci">void WriteUint8(unsigned char *buffer, unsigned int offset, uint8_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00183">ProfilingUtils.cpp:183</a></div></div> |
| 2357 | <div class="ttc" id="namespacearmnn_xhtml_a37fa39012e90d568df7f774cd6d1e956"><div class="ttname"><a href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">armnn::numeric_cast</a></div><div class="ttdeci">std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)</div><div class="ttdef"><b>Definition:</b> <a href="_numeric_cast_8hpp_source.xhtml#l00033">NumericCast.hpp:33</a></div></div> |
| 2358 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 2359 | </div><!-- fragment --> |
| 2360 | </div> |
| 2361 | </div> |
| 2362 | <a id="a2af6f2d1806265a2c84ca05ea8a62fb8"></a> |
| 2363 | <h2 class="memtitle"><span class="permalink"><a href="#a2af6f2d1806265a2c84ca05ea8a62fb8">◆ </a></span>WriteTimelineRelationshipBinary()</h2> |
| 2364 | |
| 2365 | <div class="memitem"> |
| 2366 | <div class="memproto"> |
| 2367 | <table class="memname"> |
| 2368 | <tr> |
| 2369 | <td class="memname"><a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0">TimelinePacketStatus</a> WriteTimelineRelationshipBinary </td> |
| 2370 | <td>(</td> |
| 2371 | <td class="paramtype"><a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2">ProfilingRelationshipType</a> </td> |
| 2372 | <td class="paramname"><em>relationshipType</em>, </td> |
| 2373 | </tr> |
| 2374 | <tr> |
| 2375 | <td class="paramkey"></td> |
| 2376 | <td></td> |
| 2377 | <td class="paramtype">uint64_t </td> |
| 2378 | <td class="paramname"><em>relationshipGuid</em>, </td> |
| 2379 | </tr> |
| 2380 | <tr> |
| 2381 | <td class="paramkey"></td> |
| 2382 | <td></td> |
| 2383 | <td class="paramtype">uint64_t </td> |
| 2384 | <td class="paramname"><em>headGuid</em>, </td> |
| 2385 | </tr> |
| 2386 | <tr> |
| 2387 | <td class="paramkey"></td> |
| 2388 | <td></td> |
| 2389 | <td class="paramtype">uint64_t </td> |
| 2390 | <td class="paramname"><em>tailGuid</em>, </td> |
| 2391 | </tr> |
| 2392 | <tr> |
| 2393 | <td class="paramkey"></td> |
| 2394 | <td></td> |
| 2395 | <td class="paramtype">unsigned char * </td> |
| 2396 | <td class="paramname"><em>buffer</em>, </td> |
| 2397 | </tr> |
| 2398 | <tr> |
| 2399 | <td class="paramkey"></td> |
| 2400 | <td></td> |
| 2401 | <td class="paramtype">unsigned int </td> |
| 2402 | <td class="paramname"><em>remainingBufferSize</em>, </td> |
| 2403 | </tr> |
| 2404 | <tr> |
| 2405 | <td class="paramkey"></td> |
| 2406 | <td></td> |
| 2407 | <td class="paramtype">unsigned int & </td> |
| 2408 | <td class="paramname"><em>numberOfBytesWritten</em> </td> |
| 2409 | </tr> |
| 2410 | <tr> |
| 2411 | <td></td> |
| 2412 | <td>)</td> |
| 2413 | <td></td><td></td> |
| 2414 | </tr> |
| 2415 | </table> |
| 2416 | </div><div class="memdoc"> |
| 2417 | |
| 2418 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00560">560</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2419 | |
| 2420 | <p class="reference">References <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0ad0863d6c0a071cb52079344e64425773">BufferExhaustion</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a77ac530ff577e3b84e0761fa02b2520b">DataLink</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a5265db1a79410fbe447a3faa98e7b914">ExecutionLink</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2a47d6c060a0aa40c6fd018f12b7c96f1f">LabelLink</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#acdfc0158f71b04526602ef51444da4c0aa60852f204ed8028c1c58808b746d115">Ok</a>, <a class="el" href="namespacearmnn_1_1profiling.xhtml#ab805f5aa9f101e7f6d971daba044c3c2afc04d023850b425f3b9c62b3a55dc110">RetentionLink</a>, <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">uint32_t_size</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">WriteUint32()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00112">WriteUint64()</a>.</p> |
| 2421 | |
| 2422 | <p class="reference">Referenced by <a class="el" href="_timeline_packet_tests_8cpp_source.xhtml#l00119">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00110">SendTimelinePacket::SendTimelineRelationshipBinaryPacket()</a>.</p> |
| 2423 | <div class="fragment"><div class="line"><a name="l00567"></a><span class="lineno"> 567</span> {</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="comment">// Initialize the output value</span></div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  numberOfBytesWritten = 0;</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> </div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="comment">// Check that the given buffer is valid</span></div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || remainingBufferSize == 0)</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  {</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  }</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span> </div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <span class="comment">// Utils</span></div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a> = <span class="keyword">sizeof</span>(uint32_t);</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uint64_t_size = <span class="keyword">sizeof</span>(uint64_t);</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> </div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="comment">// Calculate the length of the data (in bytes)</span></div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> timelineRelationshipDataLength = uint32_t_size * 2 + <span class="comment">// decl_id + Relationship Type</span></div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  uint64_t_size * 3; <span class="comment">// Relationship GUID + Head GUID + tail GUID</span></div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span> </div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  <span class="comment">// Check whether the timeline binary fits in the given buffer</span></div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <span class="keywordflow">if</span> (timelineRelationshipDataLength > remainingBufferSize)</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  {</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <span class="keywordflow">return</span> TimelinePacketStatus::BufferExhaustion;</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  }</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span> </div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  <span class="comment">// Initialize the offset for writing in the buffer</span></div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> offset = 0;</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span> </div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  uint32_t relationshipTypeUint = 0;</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span> </div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  <span class="keywordflow">switch</span> (relationshipType)</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  {</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  <span class="keywordflow">case</span> ProfilingRelationshipType::RetentionLink:</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  relationshipTypeUint = 0;</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="keywordflow">case</span> ProfilingRelationshipType::ExecutionLink:</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  relationshipTypeUint = 1;</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  <span class="keywordflow">case</span> ProfilingRelationshipType::DataLink:</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  relationshipTypeUint = 2;</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  <span class="keywordflow">case</span> ProfilingRelationshipType::LabelLink:</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  relationshipTypeUint = 3;</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  <span class="keywordflow">throw</span> InvalidArgumentException(<span class="stringliteral">"Unknown relationship type given."</span>);</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  }</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span> </div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  <span class="comment">// Write the timeline binary payload to the buffer</span></div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  <span class="comment">// decl_id of the timeline message</span></div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  uint32_t declId = 3;</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, declId); <span class="comment">// decl_id</span></div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(buffer, offset, relationshipTypeUint); <span class="comment">// Relationship Type</span></div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  offset += <a class="code" href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">uint32_t_size</a>;</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, relationshipGuid); <span class="comment">// GUID of this relationship</span></div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  offset += uint64_t_size;</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, headGuid); <span class="comment">// head of relationship GUID</span></div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  offset += uint64_t_size;</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(buffer, offset, tailGuid); <span class="comment">// tail of relationship GUID</span></div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span> </div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <span class="comment">// Update the number of bytes written</span></div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  numberOfBytesWritten = timelineRelationshipDataLength;</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span> </div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  <span class="keywordflow">return</span> TimelinePacketStatus::Ok;</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa3e447531d9bdaad3da25f23edf18fb4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(unsigned char *buffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00165">ProfilingUtils.cpp:165</a></div></div> |
| 2424 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aabcf5c25522e8a0542c95174056cfcac"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aabcf5c25522e8a0542c95174056cfcac">armnn::profiling::uint32_t_size</a></div><div class="ttdeci">uint32_t uint32_t_size</div><div class="ttdef"><b>Definition:</b> <a href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">DirectoryCaptureCommandHandler.cpp:21</a></div></div> |
| 2425 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af2bb4db604c56391c1361b32402c65a7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">armnn::profiling::WriteUint64</a></div><div class="ttdeci">void WriteUint64(unsigned char *buffer, unsigned int offset, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00151">ProfilingUtils.cpp:151</a></div></div> |
| 2426 | </div><!-- fragment --> |
| 2427 | </div> |
| 2428 | </div> |
| 2429 | <a id="ae5ace88c65e65ab7cf5572613601a60d"></a> |
| 2430 | <h2 class="memtitle"><span class="permalink"><a href="#ae5ace88c65e65ab7cf5572613601a60d">◆ </a></span>WriteUint16() <span class="overload">[1/2]</span></h2> |
| 2431 | |
| 2432 | <div class="memitem"> |
| 2433 | <div class="memproto"> |
| 2434 | <table class="memname"> |
| 2435 | <tr> |
| 2436 | <td class="memname">void WriteUint16 </td> |
| 2437 | <td>(</td> |
| 2438 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 2439 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 2440 | </tr> |
| 2441 | <tr> |
| 2442 | <td class="paramkey"></td> |
| 2443 | <td></td> |
| 2444 | <td class="paramtype">unsigned int </td> |
| 2445 | <td class="paramname"><em>offset</em>, </td> |
| 2446 | </tr> |
| 2447 | <tr> |
| 2448 | <td class="paramkey"></td> |
| 2449 | <td></td> |
| 2450 | <td class="paramtype">uint16_t </td> |
| 2451 | <td class="paramname"><em>value</em> </td> |
| 2452 | </tr> |
| 2453 | <tr> |
| 2454 | <td></td> |
| 2455 | <td>)</td> |
| 2456 | <td></td><td></td> |
| 2457 | </tr> |
| 2458 | </table> |
| 2459 | </div><div class="memdoc"> |
| 2460 | |
| 2461 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00126">126</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2462 | |
| 2463 | <p class="reference">Referenced by <a class="el" href="_profiling_tests_8cpp_source.xhtml#l01683">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_file_only_profiling_connection_8cpp_source.xhtml#l00032">FileOnlyProfilingConnection::Close()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_backend_profiling_tests_8cpp_source.xhtml#l00091">PacketWriter()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00802">SendCounterPacket::SendPeriodicCounterCapturePacket()</a>, <a class="el" href="_gatord_mock_service_8cpp_source.xhtml#l00181">GatordMockService::SendPeriodicCounterSelectionList()</a>, and <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00852">SendCounterPacket::SendPeriodicCounterSelectionPacket()</a>.</p> |
| 2464 | <div class="fragment"><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a0cf33f59f4e39a415e08497644b0b6f8">WriteUint16</a>(packetBuffer->GetWritableData(), offset, value);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a0cf33f59f4e39a415e08497644b0b6f8"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a0cf33f59f4e39a415e08497644b0b6f8">armnn::profiling::WriteUint16</a></div><div class="ttdeci">void WriteUint16(unsigned char *buffer, unsigned int offset, uint16_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00175">ProfilingUtils.cpp:175</a></div></div> |
| 2465 | </div><!-- fragment --> |
| 2466 | </div> |
| 2467 | </div> |
| 2468 | <a id="a0cf33f59f4e39a415e08497644b0b6f8"></a> |
| 2469 | <h2 class="memtitle"><span class="permalink"><a href="#a0cf33f59f4e39a415e08497644b0b6f8">◆ </a></span>WriteUint16() <span class="overload">[2/2]</span></h2> |
| 2470 | |
| 2471 | <div class="memitem"> |
| 2472 | <div class="memproto"> |
| 2473 | <table class="memname"> |
| 2474 | <tr> |
| 2475 | <td class="memname">void WriteUint16 </td> |
| 2476 | <td>(</td> |
| 2477 | <td class="paramtype">unsigned char * </td> |
| 2478 | <td class="paramname"><em>buffer</em>, </td> |
| 2479 | </tr> |
| 2480 | <tr> |
| 2481 | <td class="paramkey"></td> |
| 2482 | <td></td> |
| 2483 | <td class="paramtype">unsigned int </td> |
| 2484 | <td class="paramname"><em>offset</em>, </td> |
| 2485 | </tr> |
| 2486 | <tr> |
| 2487 | <td class="paramkey"></td> |
| 2488 | <td></td> |
| 2489 | <td class="paramtype">uint16_t </td> |
| 2490 | <td class="paramname"><em>value</em> </td> |
| 2491 | </tr> |
| 2492 | <tr> |
| 2493 | <td></td> |
| 2494 | <td>)</td> |
| 2495 | <td></td><td></td> |
| 2496 | </tr> |
| 2497 | </table> |
| 2498 | </div><div class="memdoc"> |
| 2499 | |
| 2500 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00175">175</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2501 | <div class="fragment"><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> {</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  buffer[offset] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>(value & 0xFF);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  buffer[offset + 1] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 8) & 0xFF);</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> }</div></div><!-- fragment --> |
| 2502 | </div> |
| 2503 | </div> |
| 2504 | <a id="a3e638748a39d46e2943dfcef94dcb828"></a> |
| 2505 | <h2 class="memtitle"><span class="permalink"><a href="#a3e638748a39d46e2943dfcef94dcb828">◆ </a></span>WriteUint32() <span class="overload">[1/2]</span></h2> |
| 2506 | |
| 2507 | <div class="memitem"> |
| 2508 | <div class="memproto"> |
| 2509 | <table class="memname"> |
| 2510 | <tr> |
| 2511 | <td class="memname">void WriteUint32 </td> |
| 2512 | <td>(</td> |
| 2513 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 2514 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 2515 | </tr> |
| 2516 | <tr> |
| 2517 | <td class="paramkey"></td> |
| 2518 | <td></td> |
| 2519 | <td class="paramtype">unsigned int </td> |
| 2520 | <td class="paramname"><em>offset</em>, </td> |
| 2521 | </tr> |
| 2522 | <tr> |
| 2523 | <td class="paramkey"></td> |
| 2524 | <td></td> |
| 2525 | <td class="paramtype">uint32_t </td> |
| 2526 | <td class="paramname"><em>value</em> </td> |
| 2527 | </tr> |
| 2528 | <tr> |
| 2529 | <td></td> |
| 2530 | <td>)</td> |
| 2531 | <td></td><td></td> |
| 2532 | </tr> |
| 2533 | </table> |
| 2534 | </div><div class="memdoc"> |
| 2535 | |
| 2536 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00119">119</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2537 | |
| 2538 | <p class="reference">Referenced by <a class="el" href="_buffer_tests_8cpp_source.xhtml#l00018">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_file_only_profiling_connection_8cpp_source.xhtml#l00032">FileOnlyProfilingConnection::Close()</a>, <a class="el" href="_send_timeline_packet_8cpp_source.xhtml#l00014">SendTimelinePacket::Commit()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_backend_profiling_tests_8cpp_source.xhtml#l00091">PacketWriter()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00528">SendCounterPacket::SendCounterDirectoryPacket()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00802">SendCounterPacket::SendPeriodicCounterCapturePacket()</a>, <a class="el" href="_gatord_mock_service_8cpp_source.xhtml#l00181">GatordMockService::SendPeriodicCounterSelectionList()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00852">SendCounterPacket::SendPeriodicCounterSelectionPacket()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00029">SendCounterPacket::SendStreamMetaDataPacket()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00517">WriteTimelineEntityBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00805">WriteTimelineEventBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00761">WriteTimelineEventClassBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00454">WriteTimelineLabelBinaryPacket()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00633">WriteTimelineMessageDirectoryPackage()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00560">WriteTimelineRelationshipBinary()</a>.</p> |
| 2539 | <div class="fragment"><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">WriteUint32</a>(packetBuffer->GetWritableData(), offset, value);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aa3e447531d9bdaad3da25f23edf18fb4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aa3e447531d9bdaad3da25f23edf18fb4">armnn::profiling::WriteUint32</a></div><div class="ttdeci">void WriteUint32(unsigned char *buffer, unsigned int offset, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00165">ProfilingUtils.cpp:165</a></div></div> |
| 2540 | </div><!-- fragment --> |
| 2541 | </div> |
| 2542 | </div> |
| 2543 | <a id="aa3e447531d9bdaad3da25f23edf18fb4"></a> |
| 2544 | <h2 class="memtitle"><span class="permalink"><a href="#aa3e447531d9bdaad3da25f23edf18fb4">◆ </a></span>WriteUint32() <span class="overload">[2/2]</span></h2> |
| 2545 | |
| 2546 | <div class="memitem"> |
| 2547 | <div class="memproto"> |
| 2548 | <table class="memname"> |
| 2549 | <tr> |
| 2550 | <td class="memname">void WriteUint32 </td> |
| 2551 | <td>(</td> |
| 2552 | <td class="paramtype">unsigned char * </td> |
| 2553 | <td class="paramname"><em>buffer</em>, </td> |
| 2554 | </tr> |
| 2555 | <tr> |
| 2556 | <td class="paramkey"></td> |
| 2557 | <td></td> |
| 2558 | <td class="paramtype">unsigned int </td> |
| 2559 | <td class="paramname"><em>offset</em>, </td> |
| 2560 | </tr> |
| 2561 | <tr> |
| 2562 | <td class="paramkey"></td> |
| 2563 | <td></td> |
| 2564 | <td class="paramtype">uint32_t </td> |
| 2565 | <td class="paramname"><em>value</em> </td> |
| 2566 | </tr> |
| 2567 | <tr> |
| 2568 | <td></td> |
| 2569 | <td>)</td> |
| 2570 | <td></td><td></td> |
| 2571 | </tr> |
| 2572 | </table> |
| 2573 | </div><div class="memdoc"> |
| 2574 | |
| 2575 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00165">165</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2576 | <div class="fragment"><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  buffer[offset] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>(value & 0xFF);</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  buffer[offset + 1] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 8) & 0xFF);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  buffer[offset + 2] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 16) & 0xFF);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  buffer[offset + 3] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 24) & 0xFF);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> }</div></div><!-- fragment --> |
| 2577 | </div> |
| 2578 | </div> |
| 2579 | <a id="a79be042e55fdf16ca562f14cd15d9aa6"></a> |
| 2580 | <h2 class="memtitle"><span class="permalink"><a href="#a79be042e55fdf16ca562f14cd15d9aa6">◆ </a></span>WriteUint64() <span class="overload">[1/3]</span></h2> |
| 2581 | |
| 2582 | <div class="memitem"> |
| 2583 | <div class="memproto"> |
| 2584 | <table class="memname"> |
| 2585 | <tr> |
| 2586 | <td class="memname">void armnn::profiling::WriteUint64 </td> |
| 2587 | <td>(</td> |
| 2588 | <td class="paramtype">const std::unique_ptr< <a class="el" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a> > & </td> |
| 2589 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 2590 | </tr> |
| 2591 | <tr> |
| 2592 | <td class="paramkey"></td> |
| 2593 | <td></td> |
| 2594 | <td class="paramtype">unsigned int </td> |
| 2595 | <td class="paramname"><em>offset</em>, </td> |
| 2596 | </tr> |
| 2597 | <tr> |
| 2598 | <td class="paramkey"></td> |
| 2599 | <td></td> |
| 2600 | <td class="paramtype">uint64_t </td> |
| 2601 | <td class="paramname"><em>value</em> </td> |
| 2602 | </tr> |
| 2603 | <tr> |
| 2604 | <td></td> |
| 2605 | <td>)</td> |
| 2606 | <td></td><td></td> |
| 2607 | </tr> |
| 2608 | </table> |
| 2609 | </div><div class="memdoc"> |
| 2610 | |
| 2611 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00112">112</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2612 | |
| 2613 | <p class="reference">Referenced by <a class="el" href="_gatord_mock_tests_8cpp_source.xhtml#l00027">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00802">SendCounterPacket::SendPeriodicCounterCapturePacket()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00517">WriteTimelineEntityBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00805">WriteTimelineEventBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00761">WriteTimelineEventClassBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00454">WriteTimelineLabelBinaryPacket()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00560">WriteTimelineRelationshipBinary()</a>.</p> |
| 2614 | <div class="fragment"><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> {</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">WriteUint64</a>(packetBuffer->GetWritableData(), offset, value);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af2bb4db604c56391c1361b32402c65a7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af2bb4db604c56391c1361b32402c65a7">armnn::profiling::WriteUint64</a></div><div class="ttdeci">void WriteUint64(unsigned char *buffer, unsigned int offset, uint64_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00151">ProfilingUtils.cpp:151</a></div></div> |
| 2615 | </div><!-- fragment --> |
| 2616 | </div> |
| 2617 | </div> |
| 2618 | <a id="af2bb4db604c56391c1361b32402c65a7"></a> |
| 2619 | <h2 class="memtitle"><span class="permalink"><a href="#af2bb4db604c56391c1361b32402c65a7">◆ </a></span>WriteUint64() <span class="overload">[2/3]</span></h2> |
| 2620 | |
| 2621 | <div class="memitem"> |
| 2622 | <div class="memproto"> |
| 2623 | <table class="memname"> |
| 2624 | <tr> |
| 2625 | <td class="memname">void WriteUint64 </td> |
| 2626 | <td>(</td> |
| 2627 | <td class="paramtype">unsigned char * </td> |
| 2628 | <td class="paramname"><em>buffer</em>, </td> |
| 2629 | </tr> |
| 2630 | <tr> |
| 2631 | <td class="paramkey"></td> |
| 2632 | <td></td> |
| 2633 | <td class="paramtype">unsigned int </td> |
| 2634 | <td class="paramname"><em>offset</em>, </td> |
| 2635 | </tr> |
| 2636 | <tr> |
| 2637 | <td class="paramkey"></td> |
| 2638 | <td></td> |
| 2639 | <td class="paramtype">uint64_t </td> |
| 2640 | <td class="paramname"><em>value</em> </td> |
| 2641 | </tr> |
| 2642 | <tr> |
| 2643 | <td></td> |
| 2644 | <td>)</td> |
| 2645 | <td></td><td></td> |
| 2646 | </tr> |
| 2647 | </table> |
| 2648 | </div><div class="memdoc"> |
| 2649 | |
| 2650 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00151">151</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2651 | <div class="fragment"><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  buffer[offset] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>(value & 0xFF);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  buffer[offset + 1] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 8) & 0xFF);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  buffer[offset + 2] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 16) & 0xFF);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  buffer[offset + 3] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 24) & 0xFF);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  buffer[offset + 4] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 32) & 0xFF);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  buffer[offset + 5] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 40) & 0xFF);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  buffer[offset + 6] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 48) & 0xFF);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  buffer[offset + 7] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>((value >> 56) & 0xFF);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }</div></div><!-- fragment --> |
| 2652 | </div> |
| 2653 | </div> |
| 2654 | <a id="a3b0223f6d6877fe5852c93c4670e32c6"></a> |
| 2655 | <h2 class="memtitle"><span class="permalink"><a href="#a3b0223f6d6877fe5852c93c4670e32c6">◆ </a></span>WriteUint64() <span class="overload">[3/3]</span></h2> |
| 2656 | |
| 2657 | <div class="memitem"> |
| 2658 | <div class="memproto"> |
| 2659 | <table class="memname"> |
| 2660 | <tr> |
| 2661 | <td class="memname">void armnn::profiling::WriteUint64 </td> |
| 2662 | <td>(</td> |
| 2663 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 2664 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 2665 | </tr> |
| 2666 | <tr> |
| 2667 | <td class="paramkey"></td> |
| 2668 | <td></td> |
| 2669 | <td class="paramtype">unsigned int </td> |
| 2670 | <td class="paramname"><em>offset</em>, </td> |
| 2671 | </tr> |
| 2672 | <tr> |
| 2673 | <td class="paramkey"></td> |
| 2674 | <td></td> |
| 2675 | <td class="paramtype">uint64_t </td> |
| 2676 | <td class="paramname"><em>value</em> </td> |
| 2677 | </tr> |
| 2678 | <tr> |
| 2679 | <td></td> |
| 2680 | <td>)</td> |
| 2681 | <td></td><td></td> |
| 2682 | </tr> |
| 2683 | </table> |
| 2684 | </div><div class="memdoc"> |
| 2685 | |
| 2686 | </div> |
| 2687 | </div> |
| 2688 | <a id="af63b6e5ffc769286c32d55a090b1602a"></a> |
| 2689 | <h2 class="memtitle"><span class="permalink"><a href="#af63b6e5ffc769286c32d55a090b1602a">◆ </a></span>WriteUint8() <span class="overload">[1/2]</span></h2> |
| 2690 | |
| 2691 | <div class="memitem"> |
| 2692 | <div class="memproto"> |
| 2693 | <table class="memname"> |
| 2694 | <tr> |
| 2695 | <td class="memname">void WriteUint8 </td> |
| 2696 | <td>(</td> |
| 2697 | <td class="paramtype">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> & </td> |
| 2698 | <td class="paramname"><em>packetBuffer</em>, </td> |
| 2699 | </tr> |
| 2700 | <tr> |
| 2701 | <td class="paramkey"></td> |
| 2702 | <td></td> |
| 2703 | <td class="paramtype">unsigned int </td> |
| 2704 | <td class="paramname"><em>offset</em>, </td> |
| 2705 | </tr> |
| 2706 | <tr> |
| 2707 | <td class="paramkey"></td> |
| 2708 | <td></td> |
| 2709 | <td class="paramtype">uint8_t </td> |
| 2710 | <td class="paramname"><em>value</em> </td> |
| 2711 | </tr> |
| 2712 | <tr> |
| 2713 | <td></td> |
| 2714 | <td>)</td> |
| 2715 | <td></td><td></td> |
| 2716 | </tr> |
| 2717 | </table> |
| 2718 | </div><div class="memdoc"> |
| 2719 | |
| 2720 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00133">133</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2721 | |
| 2722 | <p class="reference">Referenced by <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00126">ConvertDirectoryComponent()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00633">WriteTimelineMessageDirectoryPackage()</a>.</p> |
| 2723 | <div class="fragment"><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  BOOST_ASSERT(packetBuffer);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#ae00e76f4552e2dad3bdcf1dd72100b4f">WriteUint8</a>(packetBuffer->GetWritableData(), offset, value);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ae00e76f4552e2dad3bdcf1dd72100b4f"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ae00e76f4552e2dad3bdcf1dd72100b4f">armnn::profiling::WriteUint8</a></div><div class="ttdeci">void WriteUint8(unsigned char *buffer, unsigned int offset, uint8_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00183">ProfilingUtils.cpp:183</a></div></div> |
| 2724 | </div><!-- fragment --> |
| 2725 | </div> |
| 2726 | </div> |
| 2727 | <a id="ae00e76f4552e2dad3bdcf1dd72100b4f"></a> |
| 2728 | <h2 class="memtitle"><span class="permalink"><a href="#ae00e76f4552e2dad3bdcf1dd72100b4f">◆ </a></span>WriteUint8() <span class="overload">[2/2]</span></h2> |
| 2729 | |
| 2730 | <div class="memitem"> |
| 2731 | <div class="memproto"> |
| 2732 | <table class="memname"> |
| 2733 | <tr> |
| 2734 | <td class="memname">void WriteUint8 </td> |
| 2735 | <td>(</td> |
| 2736 | <td class="paramtype">unsigned char * </td> |
| 2737 | <td class="paramname"><em>buffer</em>, </td> |
| 2738 | </tr> |
| 2739 | <tr> |
| 2740 | <td class="paramkey"></td> |
| 2741 | <td></td> |
| 2742 | <td class="paramtype">unsigned int </td> |
| 2743 | <td class="paramname"><em>offset</em>, </td> |
| 2744 | </tr> |
| 2745 | <tr> |
| 2746 | <td class="paramkey"></td> |
| 2747 | <td></td> |
| 2748 | <td class="paramtype">uint8_t </td> |
| 2749 | <td class="paramname"><em>value</em> </td> |
| 2750 | </tr> |
| 2751 | <tr> |
| 2752 | <td></td> |
| 2753 | <td>)</td> |
| 2754 | <td></td><td></td> |
| 2755 | </tr> |
| 2756 | </table> |
| 2757 | </div><div class="memdoc"> |
| 2758 | |
| 2759 | <p class="definition">Definition at line <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00183">183</a> of file <a class="el" href="_profiling_utils_8cpp_source.xhtml">ProfilingUtils.cpp</a>.</p> |
| 2760 | <div class="fragment"><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> {</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  BOOST_ASSERT(buffer);</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  buffer[offset] = <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span><span class="keyword">></span>(value);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> }</div></div><!-- fragment --> |
| 2761 | </div> |
| 2762 | </div> |
| 2763 | <h2 class="groupheader">Variable Documentation</h2> |
| 2764 | <a id="a2fd55777ec061a6c6df855677c165a03"></a> |
| 2765 | <h2 class="memtitle"><span class="permalink"><a href="#a2fd55777ec061a6c6df855677c165a03">◆ </a></span>uint16_t_size</h2> |
| 2766 | |
| 2767 | <div class="memitem"> |
| 2768 | <div class="memproto"> |
| 2769 | <table class="memname"> |
| 2770 | <tr> |
| 2771 | <td class="memname">uint32_t uint16_t_size = sizeof(uint16_t)</td> |
| 2772 | </tr> |
| 2773 | </table> |
| 2774 | </div><div class="memdoc"> |
| 2775 | |
| 2776 | <p class="definition">Definition at line <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00020">20</a> of file <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml">DirectoryCaptureCommandHandler.cpp</a>.</p> |
| 2777 | |
| 2778 | <p class="reference">Referenced by <a class="el" href="_file_only_profiling_connection_8cpp_source.xhtml#l00032">FileOnlyProfilingConnection::Close()</a>, <a class="el" href="_stream_metadata_command_handler_8cpp_source.xhtml#l00057">armnn::gatordmock::ReadString()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00802">SendCounterPacket::SendPeriodicCounterCapturePacket()</a>, and <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00852">SendCounterPacket::SendPeriodicCounterSelectionPacket()</a>.</p> |
| 2779 | |
| 2780 | </div> |
| 2781 | </div> |
| 2782 | <a id="aabcf5c25522e8a0542c95174056cfcac"></a> |
| 2783 | <h2 class="memtitle"><span class="permalink"><a href="#aabcf5c25522e8a0542c95174056cfcac">◆ </a></span>uint32_t_size</h2> |
| 2784 | |
| 2785 | <div class="memitem"> |
| 2786 | <div class="memproto"> |
| 2787 | <table class="memname"> |
| 2788 | <tr> |
| 2789 | <td class="memname">uint32_t uint32_t_size = sizeof(uint32_t)</td> |
| 2790 | </tr> |
| 2791 | </table> |
| 2792 | </div><div class="memdoc"> |
| 2793 | |
| 2794 | <p class="definition">Definition at line <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml#l00021">21</a> of file <a class="el" href="_directory_capture_command_handler_8cpp_source.xhtml">DirectoryCaptureCommandHandler.cpp</a>.</p> |
| 2795 | |
| 2796 | <p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l00512">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00310">CalculateSizeOfPaddedSwString()</a>, <a class="el" href="_file_only_profiling_connection_8cpp_source.xhtml#l00032">FileOnlyProfilingConnection::Close()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00174">SendCounterPacket::CreateCategoryRecord()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00376">SendCounterPacket::CreateEventRecord()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00015">OffsetToNextWord()</a>, <a class="el" href="_stream_metadata_command_handler_8cpp_source.xhtml#l00057">armnn::gatordmock::ReadString()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00320">ReadSwTraceMessage()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00528">SendCounterPacket::SendCounterDirectoryPacket()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00802">SendCounterPacket::SendPeriodicCounterCapturePacket()</a>, <a class="el" href="_send_counter_packet_8cpp_source.xhtml#l00852">SendCounterPacket::SendPeriodicCounterSelectionPacket()</a>, <a class="el" href="_timeline_tests_8cpp_source.xhtml#l00023">SendTimelinePacketToCommandHandler()</a>, <a class="el" href="_profiling_utils_8hpp_source.xhtml#l00094">StringToSwTraceString()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00201">VerifyTimelineEntityBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00232">VerifyTimelineEventBinaryPacket()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00097">VerifyTimelineEventClassBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00028">VerifyTimelineHeaderBinary()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00056">VerifyTimelineLabelBinaryPacketData()</a>, <a class="el" href="_profiling_test_utils_8cpp_source.xhtml#l00120">VerifyTimelineRelationshipBinaryPacketData()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00517">WriteTimelineEntityBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00805">WriteTimelineEventBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00761">WriteTimelineEventClassBinary()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00454">WriteTimelineLabelBinaryPacket()</a>, <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00633">WriteTimelineMessageDirectoryPackage()</a>, and <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00560">WriteTimelineRelationshipBinary()</a>.</p> |
| 2797 | |
| 2798 | </div> |
| 2799 | </div> |
| 2800 | </div><!-- contents --> |
| 2801 | </div><!-- doc-content --> |
| 2802 | <!-- start footer part --> |
| 2803 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 2804 | <ul> |
| 2805 | <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> |
| 2806 | <li class="footer">Generated on Fri Mar 13 2020 16:09:20 for ArmNN by |
| 2807 | <a href="http://www.doxygen.org/index.html"> |
| 2808 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 2809 | </ul> |
| 2810 | </div> |
| 2811 | </body> |
| 2812 | </html> |