Nikhil Raj | 1dc83fe | 2024-05-16 09:47:51 +0100 | [diff] [blame^] | 1 | <!-- HTML header for doxygen 1.8.17--> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 7 | <meta name="generator" content="Doxygen 1.8.17"/> |
| 8 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 9 | <title>Arm NN: IProfiler Class Reference</title> |
| 10 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 11 | <script type="text/javascript" src="jquery.js"></script> |
| 12 | <script type="text/javascript" src="dynsections.js"></script> |
| 13 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 14 | <script type="text/javascript" src="resize.js"></script> |
| 15 | <script type="text/javascript" src="navtreedata.js"></script> |
| 16 | <script type="text/javascript" src="navtree.js"></script> |
| 17 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 18 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 19 | <script type="text/javascript" src="search/search.js"></script> |
| 20 | <script type="text/x-mathjax-config"> |
| 21 | MathJax.Hub.Config({ |
| 22 | extensions: ["tex2jax.js"], |
| 23 | jax: ["input/TeX","output/HTML-CSS"], |
| 24 | }); |
| 25 | </script> |
| 26 | <script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 27 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 28 | <link href="customdoxygen.css" rel="stylesheet" type="text/css"/> |
| 29 | </head> |
| 30 | <body> |
| 31 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 32 | <div id="titlearea"> |
| 33 | <table cellspacing="0" cellpadding="0"> |
| 34 | <tbody> |
| 35 | <tr style="height: 56px;"> |
| 36 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 15rem; margin-top: .5rem; margin-left 13px"/> |
| 37 | <td id="projectalign" style="padding-left: 0.9em;"> |
| 38 | <div id="projectname"> |
| 39 |  <span id="projectnumber">24.05</span> |
| 40 | </div> |
| 41 | </td> |
| 42 | </tr> |
| 43 | </tbody> |
| 44 | </table> |
| 45 | </div> |
| 46 | <!-- end header part --> |
| 47 | <!-- Generated by Doxygen 1.8.17 --> |
| 48 | <script type="text/javascript"> |
| 49 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| 50 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 51 | /* @license-end */ |
| 52 | </script> |
| 53 | <script type="text/javascript" src="menudata.js"></script> |
| 54 | <script type="text/javascript" src="menu.js"></script> |
| 55 | <script type="text/javascript"> |
| 56 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| 57 | $(function() { |
| 58 | initMenu('',true,false,'search.php','Search'); |
| 59 | $(document).ready(function() { init_search(); }); |
| 60 | }); |
| 61 | /* @license-end */</script> |
| 62 | <div id="main-nav"></div> |
| 63 | </div><!-- top --> |
| 64 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 65 | <div id="nav-tree"> |
| 66 | <div id="nav-tree-contents"> |
| 67 | <div id="nav-sync" class="sync"></div> |
| 68 | </div> |
| 69 | </div> |
| 70 | <div id="splitbar" style="-moz-user-select:none;" |
| 71 | class="ui-resizable-handle"> |
| 72 | </div> |
| 73 | </div> |
| 74 | <script type="text/javascript"> |
| 75 | /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ |
| 76 | $(document).ready(function(){initNavTree('classarmnn_1_1_i_profiler.html',''); initResizable(); }); |
| 77 | /* @license-end */ |
| 78 | </script> |
| 79 | <div id="doc-content"> |
| 80 | <!-- window showing the filter options --> |
| 81 | <div id="MSearchSelectWindow" |
| 82 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 83 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 84 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 85 | </div> |
| 86 | |
| 87 | <!-- iframe showing the search results (closed by default) --> |
| 88 | <div id="MSearchResultsWindow"> |
| 89 | <iframe src="javascript:void(0)" frameborder="0" |
| 90 | name="MSearchResults" id="MSearchResults"> |
| 91 | </iframe> |
| 92 | </div> |
| 93 | |
| 94 | <div class="header"> |
| 95 | <div class="summary"> |
| 96 | <a href="#pub-methods">Public Member Functions</a> | |
| 97 | <a href="#friends">Friends</a> | |
| 98 | <a href="classarmnn_1_1_i_profiler-members.html">List of all members</a> </div> |
| 99 | <div class="headertitle"> |
| 100 | <div class="title">IProfiler Class Reference</div> </div> |
| 101 | </div><!--header--> |
| 102 | <div class="contents"> |
| 103 | |
| 104 | <p><code>#include <<a class="el" href="_i_profiler_8hpp_source.html">IProfiler.hpp</a>></code></p> |
| 105 | <table class="memberdecls"> |
| 106 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 107 | Public Member Functions</h2></td></tr> |
| 108 | <tr class="memitem:af556ae358458c476f8594b3bbb28d712"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#af556ae358458c476f8594b3bbb28d712">EnableProfiling</a> (bool enableProfiling)</td></tr> |
| 109 | <tr class="memdesc:af556ae358458c476f8594b3bbb28d712"><td class="mdescLeft"> </td><td class="mdescRight">Enables/disables profiling for this profiler. <a href="classarmnn_1_1_i_profiler.html#af556ae358458c476f8594b3bbb28d712">More...</a><br /></td></tr> |
| 110 | <tr class="separator:af556ae358458c476f8594b3bbb28d712"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:aa5a25e3cf143724a9460c4aa9c47841b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#aa5a25e3cf143724a9460c4aa9c47841b">IsProfilingEnabled</a> ()</td></tr> |
| 112 | <tr class="memdesc:aa5a25e3cf143724a9460c4aa9c47841b"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether profiling is enabled. <a href="classarmnn_1_1_i_profiler.html#aa5a25e3cf143724a9460c4aa9c47841b">More...</a><br /></td></tr> |
| 113 | <tr class="separator:aa5a25e3cf143724a9460c4aa9c47841b"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:ac9f22844fb2e329ffd193f2d9a8ce336"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#ac9f22844fb2e329ffd193f2d9a8ce336">AnalyzeEventsAndWriteResults</a> (std::ostream &outStream) const</td></tr> |
| 115 | <tr class="memdesc:ac9f22844fb2e329ffd193f2d9a8ce336"><td class="mdescLeft"> </td><td class="mdescRight">Analyzes the tracked events and writes the results to the given output stream. <a href="classarmnn_1_1_i_profiler.html#ac9f22844fb2e329ffd193f2d9a8ce336">More...</a><br /></td></tr> |
| 116 | <tr class="separator:ac9f22844fb2e329ffd193f2d9a8ce336"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a038bb767bbc6abc0ee0d9b509616b896"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#a038bb767bbc6abc0ee0d9b509616b896">Print</a> (std::ostream &outStream) const</td></tr> |
| 118 | <tr class="memdesc:a038bb767bbc6abc0ee0d9b509616b896"><td class="mdescLeft"> </td><td class="mdescRight">Print stats for events in JSON Format to the given output stream. <a href="classarmnn_1_1_i_profiler.html#a038bb767bbc6abc0ee0d9b509616b896">More...</a><br /></td></tr> |
| 119 | <tr class="separator:a038bb767bbc6abc0ee0d9b509616b896"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a2eb407e04f6462e4fd4ac0fd27dee141"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#a2eb407e04f6462e4fd4ac0fd27dee141">EnableNetworkDetailsToStdOut</a> (<a class="el" href="namespacearmnn.html#ae060224135f57f926cbda9d2732a2b1f">ProfilingDetailsMethod</a> detailsMethod)</td></tr> |
| 121 | <tr class="memdesc:a2eb407e04f6462e4fd4ac0fd27dee141"><td class="mdescLeft"> </td><td class="mdescRight">Print out details of each layer within the network that possesses a descriptor. <a href="classarmnn_1_1_i_profiler.html#a2eb407e04f6462e4fd4ac0fd27dee141">More...</a><br /></td></tr> |
| 122 | <tr class="separator:a2eb407e04f6462e4fd4ac0fd27dee141"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a3e96ca374a63bd8547fe68a5d9809df7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#a3e96ca374a63bd8547fe68a5d9809df7">~IProfiler</a> ()</td></tr> |
| 124 | <tr class="separator:a3e96ca374a63bd8547fe68a5d9809df7"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:ac1f916bbd576830b5c35c9987581f301"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#ac1f916bbd576830b5c35c9987581f301">IProfiler</a> ()</td></tr> |
| 126 | <tr class="separator:ac1f916bbd576830b5c35c9987581f301"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | </table><table class="memberdecls"> |
| 128 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a> |
| 129 | Friends</h2></td></tr> |
| 130 | <tr class="memitem:a07324741b1a460634a1d58935d77de4c"><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#a07324741b1a460634a1d58935d77de4c">ScopedProfilingEvent</a></td></tr> |
| 131 | <tr class="separator:a07324741b1a460634a1d58935d77de4c"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a80459722afc790bc4b494622d5f5f2b8"><td class="memTemplParams" colspan="2">template<typename DescriptorType > </td></tr> |
| 133 | <tr class="memitem:a80459722afc790bc4b494622d5f5f2b8"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#a80459722afc790bc4b494622d5f5f2b8">ProfilingUpdateDescriptions</a> (const std::string &name, const DescriptorType &desc, const <a class="el" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> &infos, const arm::pipe::ProfilingGuid guid)</td></tr> |
| 134 | <tr class="separator:a80459722afc790bc4b494622d5f5f2b8"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a64f137d035aca340f3b5624acd5bdc9a"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_profiler.html#a64f137d035aca340f3b5624acd5bdc9a">GetProfilerEventSequenceSize</a> (<a class="el" href="classarmnn_1_1_i_profiler.html">armnn::IProfiler</a> *profiler)</td></tr> |
| 136 | <tr class="separator:a64f137d035aca340f3b5624acd5bdc9a"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | </table> |
| 138 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 139 | <div class="textblock"> |
| 140 | <p class="definition">Definition at line <a class="el" href="_i_profiler_8hpp_source.html#l00021">21</a> of file <a class="el" href="_i_profiler_8hpp_source.html">IProfiler.hpp</a>.</p> |
| 141 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 142 | <a id="a3e96ca374a63bd8547fe68a5d9809df7"></a> |
| 143 | <h2 class="memtitle"><span class="permalink"><a href="#a3e96ca374a63bd8547fe68a5d9809df7">◆ </a></span>~IProfiler()</h2> |
| 144 | |
| 145 | <div class="memitem"> |
| 146 | <div class="memproto"> |
| 147 | <table class="mlabels"> |
| 148 | <tr> |
| 149 | <td class="mlabels-left"> |
| 150 | <table class="memname"> |
| 151 | <tr> |
| 152 | <td class="memname">~<a class="el" href="classarmnn_1_1_i_profiler.html">IProfiler</a> </td> |
| 153 | <td>(</td> |
| 154 | <td class="paramname"></td><td>)</td> |
| 155 | <td></td> |
| 156 | </tr> |
| 157 | </table> |
| 158 | </td> |
| 159 | <td class="mlabels-right"> |
| 160 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 161 | </tr> |
| 162 | </table> |
| 163 | </div><div class="memdoc"> |
| 164 | |
| 165 | </div> |
| 166 | </div> |
| 167 | <a id="ac1f916bbd576830b5c35c9987581f301"></a> |
| 168 | <h2 class="memtitle"><span class="permalink"><a href="#ac1f916bbd576830b5c35c9987581f301">◆ </a></span>IProfiler()</h2> |
| 169 | |
| 170 | <div class="memitem"> |
| 171 | <div class="memproto"> |
| 172 | <table class="memname"> |
| 173 | <tr> |
| 174 | <td class="memname"><a class="el" href="classarmnn_1_1_i_profiler.html">IProfiler</a> </td> |
| 175 | <td>(</td> |
| 176 | <td class="paramname"></td><td>)</td> |
| 177 | <td></td> |
| 178 | </tr> |
| 179 | </table> |
| 180 | </div><div class="memdoc"> |
| 181 | |
| 182 | <p class="definition">Definition at line <a class="el" href="_profiling_8cpp_source.html#l00653">653</a> of file <a class="el" href="_profiling_8cpp_source.html">Profiling.cpp</a>.</p> |
| 183 | <div class="fragment"><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  : pProfilerImpl(<span class="keyword">new</span> ProfilerImpl())</div> |
| 184 | <div class="line"><a name="l00654"></a><span class="lineno"> 654</span> {};</div> |
| 185 | </div><!-- fragment --> |
| 186 | </div> |
| 187 | </div> |
| 188 | <h2 class="groupheader">Member Function Documentation</h2> |
| 189 | <a id="ac9f22844fb2e329ffd193f2d9a8ce336"></a> |
| 190 | <h2 class="memtitle"><span class="permalink"><a href="#ac9f22844fb2e329ffd193f2d9a8ce336">◆ </a></span>AnalyzeEventsAndWriteResults()</h2> |
| 191 | |
| 192 | <div class="memitem"> |
| 193 | <div class="memproto"> |
| 194 | <table class="memname"> |
| 195 | <tr> |
| 196 | <td class="memname">void AnalyzeEventsAndWriteResults </td> |
| 197 | <td>(</td> |
| 198 | <td class="paramtype">std::ostream & </td> |
| 199 | <td class="paramname"><em>outStream</em></td><td>)</td> |
| 200 | <td> const</td> |
| 201 | </tr> |
| 202 | </table> |
| 203 | </div><div class="memdoc"> |
| 204 | |
| 205 | <p>Analyzes the tracked events and writes the results to the given output stream. </p> |
| 206 | <p>Please refer to the configuration variables in <a class="el" href="_profiling_8cpp.html">Profiling.cpp</a> to customize the information written. </p><dl class="params"><dt>Parameters</dt><dd> |
| 207 | <table class="params"> |
| 208 | <tr><td class="paramdir">[out]</td><td class="paramname">outStream</td><td>The stream where to write the profiling results to. </td></tr> |
| 209 | </table> |
| 210 | </dd> |
| 211 | </dl> |
| 212 | |
| 213 | <p class="definition">Definition at line <a class="el" href="_profiling_8cpp_source.html#l00634">634</a> of file <a class="el" href="_profiling_8cpp_source.html">Profiling.cpp</a>.</p> |
| 214 | <div class="fragment"><div class="line"><a name="l00635"></a><span class="lineno"> 635</span> {</div> |
| 215 | <div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  pProfilerImpl->AnalyzeEventsAndWriteResults(outStream);</div> |
| 216 | <div class="line"><a name="l00637"></a><span class="lineno"> 637</span> }</div> |
| 217 | </div><!-- fragment --> |
| 218 | </div> |
| 219 | </div> |
| 220 | <a id="a2eb407e04f6462e4fd4ac0fd27dee141"></a> |
| 221 | <h2 class="memtitle"><span class="permalink"><a href="#a2eb407e04f6462e4fd4ac0fd27dee141">◆ </a></span>EnableNetworkDetailsToStdOut()</h2> |
| 222 | |
| 223 | <div class="memitem"> |
| 224 | <div class="memproto"> |
| 225 | <table class="memname"> |
| 226 | <tr> |
| 227 | <td class="memname">void EnableNetworkDetailsToStdOut </td> |
| 228 | <td>(</td> |
| 229 | <td class="paramtype"><a class="el" href="namespacearmnn.html#ae060224135f57f926cbda9d2732a2b1f">ProfilingDetailsMethod</a> </td> |
| 230 | <td class="paramname"><em>detailsMethod</em></td><td>)</td> |
| 231 | <td></td> |
| 232 | </tr> |
| 233 | </table> |
| 234 | </div><div class="memdoc"> |
| 235 | |
| 236 | <p>Print out details of each layer within the network that possesses a descriptor. </p> |
| 237 | <p>Also outputs tensor info. This will be part of the profiling json output </p> |
| 238 | |
| 239 | <p class="definition">Definition at line <a class="el" href="_profiling_8cpp_source.html#l00624">624</a> of file <a class="el" href="_profiling_8cpp_source.html">Profiling.cpp</a>.</p> |
| 240 | <div class="fragment"><div class="line"><a name="l00625"></a><span class="lineno"> 625</span> {</div> |
| 241 | <div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  pProfilerImpl->EnableNetworkDetailsToStdOut(detailsMethod);</div> |
| 242 | <div class="line"><a name="l00627"></a><span class="lineno"> 627</span> }</div> |
| 243 | </div><!-- fragment --> |
| 244 | </div> |
| 245 | </div> |
| 246 | <a id="af556ae358458c476f8594b3bbb28d712"></a> |
| 247 | <h2 class="memtitle"><span class="permalink"><a href="#af556ae358458c476f8594b3bbb28d712">◆ </a></span>EnableProfiling()</h2> |
| 248 | |
| 249 | <div class="memitem"> |
| 250 | <div class="memproto"> |
| 251 | <table class="memname"> |
| 252 | <tr> |
| 253 | <td class="memname">void EnableProfiling </td> |
| 254 | <td>(</td> |
| 255 | <td class="paramtype">bool </td> |
| 256 | <td class="paramname"><em>enableProfiling</em></td><td>)</td> |
| 257 | <td></td> |
| 258 | </tr> |
| 259 | </table> |
| 260 | </div><div class="memdoc"> |
| 261 | |
| 262 | <p>Enables/disables profiling for this profiler. </p> |
| 263 | <dl class="params"><dt>Parameters</dt><dd> |
| 264 | <table class="params"> |
| 265 | <tr><td class="paramdir">[in]</td><td class="paramname">enableProfiling</td><td>A flag that indicates whether profiling should be enabled or not. </td></tr> |
| 266 | </table> |
| 267 | </dd> |
| 268 | </dl> |
| 269 | |
| 270 | <p class="definition">Definition at line <a class="el" href="_profiling_8cpp_source.html#l00619">619</a> of file <a class="el" href="_profiling_8cpp_source.html">Profiling.cpp</a>.</p> |
| 271 | <div class="fragment"><div class="line"><a name="l00620"></a><span class="lineno"> 620</span> {</div> |
| 272 | <div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  pProfilerImpl->EnableProfiling(enableProfiling);</div> |
| 273 | <div class="line"><a name="l00622"></a><span class="lineno"> 622</span> }</div> |
| 274 | </div><!-- fragment --> |
| 275 | </div> |
| 276 | </div> |
| 277 | <a id="aa5a25e3cf143724a9460c4aa9c47841b"></a> |
| 278 | <h2 class="memtitle"><span class="permalink"><a href="#aa5a25e3cf143724a9460c4aa9c47841b">◆ </a></span>IsProfilingEnabled()</h2> |
| 279 | |
| 280 | <div class="memitem"> |
| 281 | <div class="memproto"> |
| 282 | <table class="memname"> |
| 283 | <tr> |
| 284 | <td class="memname">bool IsProfilingEnabled </td> |
| 285 | <td>(</td> |
| 286 | <td class="paramname"></td><td>)</td> |
| 287 | <td></td> |
| 288 | </tr> |
| 289 | </table> |
| 290 | </div><div class="memdoc"> |
| 291 | |
| 292 | <p>Checks whether profiling is enabled. </p> |
| 293 | <p>Profiling is disabled by default. </p><dl class="section return"><dt>Returns</dt><dd>true if profiling is enabled, false otherwise. </dd></dl> |
| 294 | |
| 295 | <p class="definition">Definition at line <a class="el" href="_profiling_8cpp_source.html#l00629">629</a> of file <a class="el" href="_profiling_8cpp_source.html">Profiling.cpp</a>.</p> |
| 296 | <div class="fragment"><div class="line"><a name="l00630"></a><span class="lineno"> 630</span> {</div> |
| 297 | <div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  <span class="keywordflow">return</span> pProfilerImpl->IsProfilingEnabled();</div> |
| 298 | <div class="line"><a name="l00632"></a><span class="lineno"> 632</span> }</div> |
| 299 | </div><!-- fragment --> |
| 300 | <p class="reference">Referenced by <a class="el" href="_profiling_8hpp_source.html#l00180">armnn::ProfilingUpdateDescriptions()</a>, and <a class="el" href="_profiling_8hpp_source.html#l00136">ScopedProfilingEvent::ScopedProfilingEvent()</a>.</p> |
| 301 | |
| 302 | </div> |
| 303 | </div> |
| 304 | <a id="a038bb767bbc6abc0ee0d9b509616b896"></a> |
| 305 | <h2 class="memtitle"><span class="permalink"><a href="#a038bb767bbc6abc0ee0d9b509616b896">◆ </a></span>Print()</h2> |
| 306 | |
| 307 | <div class="memitem"> |
| 308 | <div class="memproto"> |
| 309 | <table class="memname"> |
| 310 | <tr> |
| 311 | <td class="memname">void Print </td> |
| 312 | <td>(</td> |
| 313 | <td class="paramtype">std::ostream & </td> |
| 314 | <td class="paramname"><em>outStream</em></td><td>)</td> |
| 315 | <td> const</td> |
| 316 | </tr> |
| 317 | </table> |
| 318 | </div><div class="memdoc"> |
| 319 | |
| 320 | <p>Print stats for events in JSON Format to the given output stream. </p> |
| 321 | <dl class="params"><dt>Parameters</dt><dd> |
| 322 | <table class="params"> |
| 323 | <tr><td class="paramdir">[out]</td><td class="paramname">outStream</td><td>The stream where to write the profiling results to. </td></tr> |
| 324 | </table> |
| 325 | </dd> |
| 326 | </dl> |
| 327 | |
| 328 | <p class="definition">Definition at line <a class="el" href="_profiling_8cpp_source.html#l00639">639</a> of file <a class="el" href="_profiling_8cpp_source.html">Profiling.cpp</a>.</p> |
| 329 | <div class="fragment"><div class="line"><a name="l00640"></a><span class="lineno"> 640</span> {</div> |
| 330 | <div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  pProfilerImpl->Print(outStream);</div> |
| 331 | <div class="line"><a name="l00642"></a><span class="lineno"> 642</span> }</div> |
| 332 | </div><!-- fragment --> |
| 333 | <p class="reference">Referenced by <a class="el" href="_canonical_utils_8cpp_source.html#l00352">armnn_driver::DumpJsonProfilingIfRequired()</a>.</p> |
| 334 | |
| 335 | </div> |
| 336 | </div> |
| 337 | <h2 class="groupheader">Friends And Related Function Documentation</h2> |
| 338 | <a id="a64f137d035aca340f3b5624acd5bdc9a"></a> |
| 339 | <h2 class="memtitle"><span class="permalink"><a href="#a64f137d035aca340f3b5624acd5bdc9a">◆ </a></span>GetProfilerEventSequenceSize</h2> |
| 340 | |
| 341 | <div class="memitem"> |
| 342 | <div class="memproto"> |
| 343 | <table class="mlabels"> |
| 344 | <tr> |
| 345 | <td class="mlabels-left"> |
| 346 | <table class="memname"> |
| 347 | <tr> |
| 348 | <td class="memname">size_t GetProfilerEventSequenceSize </td> |
| 349 | <td>(</td> |
| 350 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_profiler.html">armnn::IProfiler</a> * </td> |
| 351 | <td class="paramname"><em>profiler</em></td><td>)</td> |
| 352 | <td></td> |
| 353 | </tr> |
| 354 | </table> |
| 355 | </td> |
| 356 | <td class="mlabels-right"> |
| 357 | <span class="mlabels"><span class="mlabel">friend</span></span> </td> |
| 358 | </tr> |
| 359 | </table> |
| 360 | </div><div class="memdoc"> |
| 361 | |
| 362 | </div> |
| 363 | </div> |
| 364 | <a id="a80459722afc790bc4b494622d5f5f2b8"></a> |
| 365 | <h2 class="memtitle"><span class="permalink"><a href="#a80459722afc790bc4b494622d5f5f2b8">◆ </a></span>ProfilingUpdateDescriptions</h2> |
| 366 | |
| 367 | <div class="memitem"> |
| 368 | <div class="memproto"> |
| 369 | <table class="mlabels"> |
| 370 | <tr> |
| 371 | <td class="mlabels-left"> |
| 372 | <table class="memname"> |
| 373 | <tr> |
| 374 | <td class="memname">void ProfilingUpdateDescriptions </td> |
| 375 | <td>(</td> |
| 376 | <td class="paramtype">const std::string & </td> |
| 377 | <td class="paramname"><em>name</em>, </td> |
| 378 | </tr> |
| 379 | <tr> |
| 380 | <td class="paramkey"></td> |
| 381 | <td></td> |
| 382 | <td class="paramtype">const DescriptorType & </td> |
| 383 | <td class="paramname"><em>desc</em>, </td> |
| 384 | </tr> |
| 385 | <tr> |
| 386 | <td class="paramkey"></td> |
| 387 | <td></td> |
| 388 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> & </td> |
| 389 | <td class="paramname"><em>infos</em>, </td> |
| 390 | </tr> |
| 391 | <tr> |
| 392 | <td class="paramkey"></td> |
| 393 | <td></td> |
| 394 | <td class="paramtype">const arm::pipe::ProfilingGuid </td> |
| 395 | <td class="paramname"><em>guid</em> </td> |
| 396 | </tr> |
| 397 | <tr> |
| 398 | <td></td> |
| 399 | <td>)</td> |
| 400 | <td></td><td></td> |
| 401 | </tr> |
| 402 | </table> |
| 403 | </td> |
| 404 | <td class="mlabels-right"> |
| 405 | <span class="mlabels"><span class="mlabel">friend</span></span> </td> |
| 406 | </tr> |
| 407 | </table> |
| 408 | </div><div class="memdoc"> |
| 409 | <p>< Profiler used</p> |
| 410 | |
| 411 | <p class="definition">Definition at line <a class="el" href="_profiling_8hpp_source.html#l00180">180</a> of file <a class="el" href="_profiling_8hpp_source.html">Profiling.hpp</a>.</p> |
| 412 | <div class="fragment"><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> {</div> |
| 413 | <div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="classarmnn_1_1_i_profiler.html#ac1f916bbd576830b5c35c9987581f301">IProfiler</a>* profiler(<a class="code" href="classarmnn_1_1_profiler_manager.html#a93857080c2523bf3395e7aa7e6024d5c">ProfilerManager::GetInstance</a>().GetProfiler()); <span class="comment">///< Profiler used</span></div> |
| 414 | <div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"></span> <span class="keywordflow">if</span> (profiler && profiler->IsProfilingEnabled())</div> |
| 415 | <div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  {</div> |
| 416 | <div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  profiler->AddLayerDetails(name, desc, infos, guid);</div> |
| 417 | <div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  }</div> |
| 418 | <div class="line"><a name="l00190"></a><span class="lineno"> 190</span> }</div> |
| 419 | </div><!-- fragment --> |
| 420 | </div> |
| 421 | </div> |
| 422 | <a id="a07324741b1a460634a1d58935d77de4c"></a> |
| 423 | <h2 class="memtitle"><span class="permalink"><a href="#a07324741b1a460634a1d58935d77de4c">◆ </a></span>ScopedProfilingEvent</h2> |
| 424 | |
| 425 | <div class="memitem"> |
| 426 | <div class="memproto"> |
| 427 | <table class="mlabels"> |
| 428 | <tr> |
| 429 | <td class="mlabels-left"> |
| 430 | <table class="memname"> |
| 431 | <tr> |
| 432 | <td class="memname">friend class <a class="el" href="classarmnn_1_1_scoped_profiling_event.html">ScopedProfilingEvent</a></td> |
| 433 | </tr> |
| 434 | </table> |
| 435 | </td> |
| 436 | <td class="mlabels-right"> |
| 437 | <span class="mlabels"><span class="mlabel">friend</span></span> </td> |
| 438 | </tr> |
| 439 | </table> |
| 440 | </div><div class="memdoc"> |
| 441 | |
| 442 | <p class="definition">Definition at line <a class="el" href="_i_profiler_8hpp_source.html#l00066">66</a> of file <a class="el" href="_i_profiler_8hpp_source.html">IProfiler.hpp</a>.</p> |
| 443 | |
| 444 | </div> |
| 445 | </div> |
| 446 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 447 | <li>include/armnn/<a class="el" href="_i_profiler_8hpp_source.html">IProfiler.hpp</a></li> |
| 448 | <li>src/armnn/<a class="el" href="_profiling_8cpp_source.html">Profiling.cpp</a></li> |
| 449 | <li>src/armnn/<a class="el" href="_profiling_8hpp_source.html">Profiling.hpp</a></li> |
| 450 | </ul> |
| 451 | </div><!-- contents --> |
| 452 | </div><!-- doc-content --> |
| 453 | <div class="ttc" id="aclassarmnn_1_1_i_profiler_html_ac1f916bbd576830b5c35c9987581f301"><div class="ttname"><a href="classarmnn_1_1_i_profiler.html#ac1f916bbd576830b5c35c9987581f301">armnn::IProfiler::IProfiler</a></div><div class="ttdeci">IProfiler()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_8cpp_source.html#l00653">Profiling.cpp:653</a></div></div> |
| 454 | <div class="ttc" id="aclassarmnn_1_1_profiler_manager_html_a93857080c2523bf3395e7aa7e6024d5c"><div class="ttname"><a href="classarmnn_1_1_profiler_manager.html#a93857080c2523bf3395e7aa7e6024d5c">armnn::ProfilerManager::GetInstance</a></div><div class="ttdeci">static ProfilerManager & GetInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_8cpp_source.html#l00602">Profiling.cpp:602</a></div></div> |
| 455 | <!-- start footer part --> |
| 456 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 457 | <ul> |
| 458 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_i_profiler.html">IProfiler</a></li> |
| 459 | <li class="footer">Generated on Thu May 16 2024 09:31:56 for Arm NN by |
| 460 | <a href="http://www.doxygen.org/index.html"> |
| 461 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li> |
| 462 | </ul> |
| 463 | </div> |
| 464 | </body> |
| 465 | </html> |