blob: 9b991076817c54c9c1b733ffe8daab4b1c5d71c1 [file] [log] [blame]
Ryan OSheade36e4a2020-03-13 16:26:19 +00001<!-- Copyright (c) 2020 ARM Limited. -->
2<!-- -->
3<!-- SPDX-License-Identifier: MIT -->
4<!-- -->
5<!-- HTML header for doxygen 1.8.13-->
6<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7<html xmlns="http://www.w3.org/1999/xhtml">
8<head>
9<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
10<meta http-equiv="X-UA-Compatible" content="IE=9"/>
11<meta name="generator" content="Doxygen 1.8.13"/>
12<meta name="robots" content="NOINDEX, NOFOLLOW" />
13<meta name="viewport" content="width=device-width, initial-scale=1"/>
14<title>ArmNN: src/armnn/Profiling.hpp File Reference</title>
15<link href="tabs.css" rel="stylesheet" type="text/css"/>
16<script type="text/javascript" src="jquery.js"></script>
17<script type="text/javascript" src="dynsections.js"></script>
18<link href="navtree.css" rel="stylesheet" type="text/css"/>
19<script type="text/javascript" src="resize.js"></script>
20<script type="text/javascript" src="navtreedata.js"></script>
21<script type="text/javascript" src="navtree.js"></script>
22<script type="text/javascript">
23 $(document).ready(initResizable);
24</script>
25<link href="search/search.css" rel="stylesheet" type="text/css"/>
26<script type="text/javascript" src="search/searchdata.js"></script>
27<script type="text/javascript" src="search/search.js"></script>
28<script type="text/x-mathjax-config">
29 MathJax.Hub.Config({
30 extensions: ["tex2jax.js"],
31 jax: ["input/TeX","output/HTML-CSS"],
32});
33</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
34<link href="doxygen.css" rel="stylesheet" type="text/css" />
35<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
36</head>
37<body>
38<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
39<div id="titlearea">
40<table cellspacing="0" cellpadding="0">
41 <tbody>
42 <tr style="height: 56px;">
43 <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
44 <td style="padding-left: 0.5em;">
45 <div id="projectname">
46 &#160;<span id="projectnumber">20.02</span>
47 </div>
48 </td>
49 </tr>
50 </tbody>
51</table>
52</div>
53<!-- end header part -->
54<!-- Generated by Doxygen 1.8.13 -->
55<script type="text/javascript">
56var searchBox = new SearchBox("searchBox", "search",false,'Search');
57</script>
58<script type="text/javascript" src="menudata.js"></script>
59<script type="text/javascript" src="menu.js"></script>
60<script type="text/javascript">
61$(function() {
62 initMenu('',true,false,'search.php','Search');
63 $(document).ready(function() { init_search(); });
64});
65</script>
66<div id="main-nav"></div>
67</div><!-- top -->
68<div id="side-nav" class="ui-resizable side-nav-resizable">
69 <div id="nav-tree">
70 <div id="nav-tree-contents">
71 <div id="nav-sync" class="sync"></div>
72 </div>
73 </div>
74 <div id="splitbar" style="-moz-user-select:none;"
75 class="ui-resizable-handle">
76 </div>
77</div>
78<script type="text/javascript">
79$(document).ready(function(){initNavTree('_profiling_8hpp.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> &#124;
99<a href="#namespaces">Namespaces</a> &#124;
100<a href="#define-members">Macros</a> </div>
101 <div class="headertitle">
102<div class="title">Profiling.hpp File Reference</div> </div>
103</div><!--header-->
104<div class="contents">
105<div class="textblock"><code>#include &quot;<a class="el" href="_profiling_event_8hpp_source.xhtml">ProfilingEvent.hpp</a>&quot;</code><br />
106<code>#include &lt;<a class="el" href="_ignore_unused_8hpp_source.xhtml">armnn/utility/IgnoreUnused.hpp</a>&gt;</code><br />
107<code>#include &quot;<a class="el" href="_i_profiler_8hpp_source.xhtml">armnn/IProfiler.hpp</a>&quot;</code><br />
108<code>#include &quot;<a class="el" href="_wall_clock_timer_8hpp_source.xhtml">WallClockTimer.hpp</a>&quot;</code><br />
109<code>#include &lt;chrono&gt;</code><br />
110<code>#include &lt;iosfwd&gt;</code><br />
111<code>#include &lt;ctime&gt;</code><br />
112<code>#include &lt;vector&gt;</code><br />
113<code>#include &lt;stack&gt;</code><br />
114<code>#include &lt;map&gt;</code><br />
115<code>#include &lt;boost/preprocessor.hpp&gt;</code><br />
116</div>
117<p><a href="_profiling_8hpp_source.xhtml">Go to the source code of this file.</a></p>
118<table class="memberdecls">
119<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
120Classes</h2></td></tr>
121<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_profiler.xhtml">Profiler</a></td></tr>
122<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
123<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_profiler_manager.xhtml">ProfilerManager</a></td></tr>
124<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
125<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_scoped_profiling_event.xhtml">ScopedProfilingEvent</a></td></tr>
126<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
127</table><table class="memberdecls">
128<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
129Namespaces</h2></td></tr>
130<tr class="memitem:namespacearmnn"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml">armnn</a></td></tr>
131<tr class="memdesc:namespacearmnn"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copyright (c) 2020 ARM Limited. <br /></td></tr>
132<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
133</table><table class="memberdecls">
134<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
135Macros</h2></td></tr>
136<tr class="memitem:a566a0dc72e6b9e3898c930e7a68fc894"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_8hpp.xhtml#a566a0dc72e6b9e3898c930e7a68fc894">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS_UNIQUE_LOC</a>(backendId, ...)&#160;&#160;&#160;<a class="el" href="classarmnn_1_1_scoped_profiling_event.xhtml">armnn::ScopedProfilingEvent</a> BOOST_PP_CAT(e_,__LINE__)(backendId, /*name,*/ __VA_ARGS__);</td></tr>
137<tr class="separator:a566a0dc72e6b9e3898c930e7a68fc894"><td class="memSeparator" colspan="2">&#160;</td></tr>
138<tr class="memitem:a1a638e817a4bf185cd95dc61f8cca62c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_8hpp.xhtml#a1a638e817a4bf185cd95dc61f8cca62c">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS</a>(backendId, ...)&#160;&#160;&#160;<a class="el" href="_profiling_8hpp.xhtml#a566a0dc72e6b9e3898c930e7a68fc894">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS_UNIQUE_LOC</a>(backendId, /*name,*/ __VA_ARGS__);</td></tr>
139<tr class="separator:a1a638e817a4bf185cd95dc61f8cca62c"><td class="memSeparator" colspan="2">&#160;</td></tr>
140<tr class="memitem:a5ccc65e2c464ac05ce311fdae7ede03a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_profiling_8hpp.xhtml#a5ccc65e2c464ac05ce311fdae7ede03a">ARMNN_SCOPED_PROFILING_EVENT</a>(backendId, name)&#160;&#160;&#160;<a class="el" href="_profiling_8hpp.xhtml#a1a638e817a4bf185cd95dc61f8cca62c">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS</a>(backendId, name, <a class="el" href="classarmnn_1_1_wall_clock_timer.xhtml">armnn::WallClockTimer</a>())</td></tr>
141<tr class="separator:a5ccc65e2c464ac05ce311fdae7ede03a"><td class="memSeparator" colspan="2">&#160;</td></tr>
142</table>
143<h2 class="groupheader">Macro Definition Documentation</h2>
144<a id="a5ccc65e2c464ac05ce311fdae7ede03a"></a>
145<h2 class="memtitle"><span class="permalink"><a href="#a5ccc65e2c464ac05ce311fdae7ede03a">&#9670;&nbsp;</a></span>ARMNN_SCOPED_PROFILING_EVENT</h2>
146
147<div class="memitem">
148<div class="memproto">
149 <table class="memname">
150 <tr>
151 <td class="memname">#define ARMNN_SCOPED_PROFILING_EVENT</td>
152 <td>(</td>
153 <td class="paramtype">&#160;</td>
154 <td class="paramname">backendId, </td>
155 </tr>
156 <tr>
157 <td class="paramkey"></td>
158 <td></td>
159 <td class="paramtype">&#160;</td>
160 <td class="paramname">name&#160;</td>
161 </tr>
162 <tr>
163 <td></td>
164 <td>)</td>
165 <td></td><td>&#160;&#160;&#160;<a class="el" href="_profiling_8hpp.xhtml#a1a638e817a4bf185cd95dc61f8cca62c">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS</a>(backendId, name, <a class="el" href="classarmnn_1_1_wall_clock_timer.xhtml">armnn::WallClockTimer</a>())</td>
166 </tr>
167 </table>
168</div><div class="memdoc">
169
170<p class="definition">Definition at line <a class="el" href="_profiling_8hpp_source.xhtml#l00169">169</a> of file <a class="el" href="_profiling_8hpp_source.xhtml">Profiling.hpp</a>.</p>
171
172<p class="reference">Referenced by <a class="el" href="_profiler_tests_8cpp_source.xhtml#l00110">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_workload_utils_8hpp_source.xhtml#l00049">armnn::CopyTensorContentsGeneric()</a>, <a class="el" href="_loaded_network_8cpp_source.xhtml#l00412">LoadedNetwork::EnqueueWorkload()</a>, <a class="el" href="_ref_depth_to_space_workload_8cpp_source.xhtml#l00014">RefDepthToSpaceWorkload::Execute()</a>, <a class="el" href="_ref_strided_slice_workload_8cpp_source.xhtml#l00020">RefStridedSliceWorkload::Execute()</a>, <a class="el" href="_ref_reshape_workload_8cpp_source.xhtml#l00015">RefReshapeWorkload::Execute()</a>, <a class="el" href="_ref_resize_bilinear_workload_8cpp_source.xhtml#l00020">RefResizeBilinearWorkload::Execute()</a>, <a class="el" href="_ref_resize_workload_8cpp_source.xhtml#l00020">RefResizeWorkload::Execute()</a>, <a class="el" href="_ref_space_to_batch_nd_workload_8cpp_source.xhtml#l00015">RefSpaceToBatchNdWorkload::Execute()</a>, <a class="el" href="_ref_space_to_depth_workload_8cpp_source.xhtml#l00015">RefSpaceToDepthWorkload::Execute()</a>, <a class="el" href="_ref_softmax_workload_8cpp_source.xhtml#l00020">RefSoftmaxWorkload::Execute()</a>, <a class="el" href="_ref_concat_workload_8cpp_source.xhtml#l00015">RefConcatWorkload::Execute()</a>, <a class="el" href="_ref_fake_quantization_float32_workload_8cpp_source.xhtml#l00029">RefFakeQuantizationFloat32Workload::Execute()</a>, <a class="el" href="_ref_floor_workload_8cpp_source.xhtml#l00016">RefFloorWorkload::Execute()</a>, <a class="el" href="_ref_activation_workload_8cpp_source.xhtml#l00018">RefActivationWorkload::Execute()</a>, <a class="el" href="_ref_convert_fp16_to_fp32_workload_8cpp_source.xhtml#l00016">RefConvertFp16ToFp32Workload::Execute()</a>, <a class="el" href="_ref_convert_fp32_to_fp16_workload_8cpp_source.xhtml#l00017">RefConvertFp32ToFp16Workload::Execute()</a>, <a class="el" href="_ref_log_softmax_workload_8cpp_source.xhtml#l00020">RefLogSoftmaxWorkload::Execute()</a>, <a class="el" href="_ref_batch_to_space_nd_workload_8cpp_source.xhtml#l00014">RefBatchToSpaceNdWorkload::Execute()</a>, <a class="el" href="_ref_arg_min_max_workload_8cpp_source.xhtml#l00021">RefArgMinMaxWorkload::Execute()</a>, <a class="el" href="_ref_prelu_workload_8cpp_source.xhtml#l00021">RefPreluWorkload::Execute()</a>, <a class="el" href="_ref_batch_normalization_workload_8cpp_source.xhtml#l00025">RefBatchNormalizationWorkload::Execute()</a>, <a class="el" href="_ref_dequantize_workload_8cpp_source.xhtml#l00015">RefDequantizeWorkload::Execute()</a>, <a class="el" href="_ref_slice_workload_8cpp_source.xhtml#l00016">RefSliceWorkload::Execute()</a>, <a class="el" href="_ref_detection_post_process_workload_8cpp_source.xhtml#l00021">RefDetectionPostProcessWorkload::Execute()</a>, <a class="el" href="_ref_stack_workload_8cpp_source.xhtml#l00021">RefStackWorkload::Execute()</a>, <a class="el" href="_ref_instance_normalization_workload_8cpp_source.xhtml#l00021">RefInstanceNormalizationWorkload::Execute()</a>, <a class="el" href="_ref_normalization_workload_8cpp_source.xhtml#l00165">RefNormalizationWorkload::Execute()</a>, <a class="el" href="_ref_splitter_workload_8cpp_source.xhtml#l00014">RefSplitterWorkload::Execute()</a>, <a class="el" href="_ref_l2_normalization_workload_8cpp_source.xhtml#l00028">RefL2NormalizationWorkload::Execute()</a>, <a class="el" href="_mem_import_workload_8cpp_source.xhtml#l00025">ImportMemGenericWorkload::Execute()</a>, <a class="el" href="_ref_pooling2d_workload_8cpp_source.xhtml#l00016">RefPooling2dWorkload::Execute()</a>, <a class="el" href="_mem_sync_workload_8cpp_source.xhtml#l00025">SyncMemGenericWorkload::Execute()</a>, <a class="el" href="_mem_copy_workload_8cpp_source.xhtml#l00049">CopyMemGenericWorkload::Execute()</a>, <a class="el" href="_ref_mean_workload_8cpp_source.xhtml#l00021">RefMeanWorkload::Execute()</a>, <a class="el" href="_ref_depthwise_convolution2d_workload_8cpp_source.xhtml#l00046">RefDepthwiseConvolution2dWorkload::Execute()</a>, <a class="el" href="_ref_gather_workload_8cpp_source.xhtml#l00016">RefGatherWorkload::Execute()</a>, <a class="el" href="_ref_comparison_workload_8cpp_source.xhtml#l00039">RefComparisonWorkload::Execute()</a>, <a class="el" href="_ref_constant_workload_8cpp_source.xhtml#l00036">RefConstantWorkload::Execute()</a>, <a class="el" href="_ref_elementwise_unary_workload_8cpp_source.xhtml#l00041">RefElementwiseUnaryWorkload::Execute()</a>, <a class="el" href="_ref_convolution2d_workload_8cpp_source.xhtml#l00044">RefConvolution2dWorkload::Execute()</a>, <a class="el" href="_ref_transpose_convolution2d_workload_8cpp_source.xhtml#l00053">RefTransposeConvolution2dWorkload::Execute()</a>, <a class="el" href="_ref_fully_connected_workload_8cpp_source.xhtml#l00050">RefFullyConnectedWorkload::Execute()</a>, <a class="el" href="_ref_permute_workload_8cpp_source.xhtml#l00017">RefPermuteWorkload&lt; DataType &gt;::Execute()</a>, <a class="el" href="_ref_transpose_workload_8cpp_source.xhtml#l00017">RefTransposeWorkload&lt; DataType &gt;::Execute()</a>, <a class="el" href="_ref_pad_workload_8cpp_source.xhtml#l00021">RefPadWorkload&lt; DataType &gt;::Execute()</a>, <a class="el" href="_ref_elementwise_workload_8cpp_source.xhtml#l00041">RefElementwiseWorkload&lt; Functor, ParentDescriptor, DebugString &gt;::Execute()</a>, and <a class="el" href="_ref_debug_workload_8cpp_source.xhtml#l00018">RefDebugWorkload&lt; DataType &gt;::Execute()</a>.</p>
173
174</div>
175</div>
176<a id="a1a638e817a4bf185cd95dc61f8cca62c"></a>
177<h2 class="memtitle"><span class="permalink"><a href="#a1a638e817a4bf185cd95dc61f8cca62c">&#9670;&nbsp;</a></span>ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS</h2>
178
179<div class="memitem">
180<div class="memproto">
181 <table class="memname">
182 <tr>
183 <td class="memname">#define ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS</td>
184 <td>(</td>
185 <td class="paramtype">&#160;</td>
186 <td class="paramname">backendId, </td>
187 </tr>
188 <tr>
189 <td class="paramkey"></td>
190 <td></td>
191 <td class="paramtype">&#160;</td>
192 <td class="paramname"><em>...</em>&#160;</td>
193 </tr>
194 <tr>
195 <td></td>
196 <td>)</td>
197 <td></td><td>&#160;&#160;&#160;<a class="el" href="_profiling_8hpp.xhtml#a566a0dc72e6b9e3898c930e7a68fc894">ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS_UNIQUE_LOC</a>(backendId, /*name,*/ __VA_ARGS__);</td>
198 </tr>
199 </table>
200</div><div class="memdoc">
201
202<p class="definition">Definition at line <a class="el" href="_profiling_8hpp_source.xhtml#l00166">166</a> of file <a class="el" href="_profiling_8hpp_source.xhtml">Profiling.hpp</a>.</p>
203
204<p class="reference">Referenced by <a class="el" href="_profiler_tests_8cpp_source.xhtml#l00253">BOOST_AUTO_TEST_CASE()</a>.</p>
205
206</div>
207</div>
208<a id="a566a0dc72e6b9e3898c930e7a68fc894"></a>
209<h2 class="memtitle"><span class="permalink"><a href="#a566a0dc72e6b9e3898c930e7a68fc894">&#9670;&nbsp;</a></span>ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS_UNIQUE_LOC</h2>
210
211<div class="memitem">
212<div class="memproto">
213 <table class="memname">
214 <tr>
215 <td class="memname">#define ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS_UNIQUE_LOC</td>
216 <td>(</td>
217 <td class="paramtype">&#160;</td>
218 <td class="paramname">backendId, </td>
219 </tr>
220 <tr>
221 <td class="paramkey"></td>
222 <td></td>
223 <td class="paramtype">&#160;</td>
224 <td class="paramname"><em>...</em>&#160;</td>
225 </tr>
226 <tr>
227 <td></td>
228 <td>)</td>
229 <td></td><td>&#160;&#160;&#160;<a class="el" href="classarmnn_1_1_scoped_profiling_event.xhtml">armnn::ScopedProfilingEvent</a> BOOST_PP_CAT(e_,__LINE__)(backendId, /*name,*/ __VA_ARGS__);</td>
230 </tr>
231 </table>
232</div><div class="memdoc">
233
234<p class="definition">Definition at line <a class="el" href="_profiling_8hpp_source.xhtml#l00162">162</a> of file <a class="el" href="_profiling_8hpp_source.xhtml">Profiling.hpp</a>.</p>
235
236</div>
237</div>
238</div><!-- contents -->
239</div><!-- doc-content -->
240<!-- start footer part -->
241<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
242 <ul>
243 <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.xhtml">armnn</a></li><li class="navelem"><a class="el" href="_profiling_8hpp.xhtml">Profiling.hpp</a></li>
244 <li class="footer">Generated on Fri Mar 13 2020 16:09:13 for ArmNN by
245 <a href="http://www.doxygen.org/index.html">
246 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
247 </ul>
248</div>
249</body>
250</html>