blob: 165c39716210750d838a0fde1f2601593bfe78a3 [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: MockCounterDirectory Class Reference</title>
15<link href="tabs.css" rel="stylesheet" type="text/css"/>
16<script type="text/javascript" src="jquery.js"></script>
17<script type="text/javascript" src="dynsections.js"></script>
18<link href="navtree.css" rel="stylesheet" type="text/css"/>
19<script type="text/javascript" src="resize.js"></script>
20<script type="text/javascript" src="navtreedata.js"></script>
21<script type="text/javascript" src="navtree.js"></script>
22<script type="text/javascript">
23 $(document).ready(initResizable);
24</script>
25<link href="search/search.css" rel="stylesheet" type="text/css"/>
26<script type="text/javascript" src="search/searchdata.js"></script>
27<script type="text/javascript" src="search/search.js"></script>
28<script type="text/x-mathjax-config">
29 MathJax.Hub.Config({
30 extensions: ["tex2jax.js"],
31 jax: ["input/TeX","output/HTML-CSS"],
32});
33</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
34<link href="doxygen.css" rel="stylesheet" type="text/css" />
35<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
36</head>
37<body>
38<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
39<div id="titlearea">
40<table cellspacing="0" cellpadding="0">
41 <tbody>
42 <tr style="height: 56px;">
43 <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
44 <td style="padding-left: 0.5em;">
45 <div id="projectname">
46 &#160;<span id="projectnumber">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('classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml','');});
80</script>
81<div id="doc-content">
82<!-- window showing the filter options -->
83<div id="MSearchSelectWindow"
84 onmouseover="return searchBox.OnSearchSelectShow()"
85 onmouseout="return searchBox.OnSearchSelectHide()"
86 onkeydown="return searchBox.OnSearchSelectKey(event)">
87</div>
88
89<!-- iframe showing the search results (closed by default) -->
90<div id="MSearchResultsWindow">
91<iframe src="javascript:void(0)" frameborder="0"
92 name="MSearchResults" id="MSearchResults">
93</iframe>
94</div>
95
96<div class="header">
97 <div class="summary">
98<a href="#pub-methods">Public Member Functions</a> &#124;
99<a href="classarmnn_1_1profiling_1_1_mock_counter_directory-members.xhtml">List of all members</a> </div>
100 <div class="headertitle">
101<div class="title">MockCounterDirectory Class Reference</div> </div>
102</div><!--header-->
103<div class="contents">
104
105<p><code>#include &lt;<a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>&gt;</code></p>
106<div class="dynheader">
107Inheritance diagram for MockCounterDirectory:</div>
108<div class="dyncontent">
109 <div class="center">
110 <img src="classarmnn_1_1profiling_1_1_mock_counter_directory.png" usemap="#MockCounterDirectory_map" alt=""/>
111 <map id="MockCounterDirectory_map" name="MockCounterDirectory_map">
112<area href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml" alt="ICounterDirectory" shape="rect" coords="0,0,141,24"/>
113</map>
114 </div></div>
115<table class="memberdecls">
116<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
117Public Member Functions</h2></td></tr>
118<tr class="memitem:acc27c4a7afbfde5c1efa5cc070306fd8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#acc27c4a7afbfde5c1efa5cc070306fd8">MockCounterDirectory</a> ()=default</td></tr>
119<tr class="separator:acc27c4a7afbfde5c1efa5cc070306fd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
120<tr class="memitem:a180f0ad0d134cd8ea5eb89c663ae00b0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a180f0ad0d134cd8ea5eb89c663ae00b0">~MockCounterDirectory</a> ()=default</td></tr>
121<tr class="separator:a180f0ad0d134cd8ea5eb89c663ae00b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
122<tr class="memitem:ac44342ac08725d8f5dd52e2ee93ca20d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac44342ac08725d8f5dd52e2ee93ca20d">RegisterCategory</a> (const std::string &amp;categoryName)</td></tr>
123<tr class="separator:ac44342ac08725d8f5dd52e2ee93ca20d"><td class="memSeparator" colspan="2">&#160;</td></tr>
124<tr class="memitem:a1819a5a244fd4317b6dcd49cdbf67a2d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a1819a5a244fd4317b6dcd49cdbf67a2d">RegisterDevice</a> (const std::string &amp;deviceName, uint16_t cores=0)</td></tr>
125<tr class="separator:a1819a5a244fd4317b6dcd49cdbf67a2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
126<tr class="memitem:ae0d8bd45562c0887985b1be728640bbc"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae0d8bd45562c0887985b1be728640bbc">RegisterCounterSet</a> (const std::string &amp;counterSetName, uint16_t count=0)</td></tr>
127<tr class="separator:ae0d8bd45562c0887985b1be728640bbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
128<tr class="memitem:a130d8f6cbda6d299aeb355d4abcc5f95"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a130d8f6cbda6d299aeb355d4abcc5f95">RegisterCounter</a> (const <a class="el" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> &amp;backendId, const uint16_t uid, const std::string &amp;parentCategoryName, uint16_t counterClass, uint16_t interpolation, double multiplier, const std::string &amp;name, const std::string &amp;description, const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; std::string &gt; &amp;units=<a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>(), const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; uint16_t &gt; &amp;numberOfCores=<a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>(), const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; uint16_t &gt; &amp;deviceUid=<a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>(), const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; uint16_t &gt; &amp;counterSetUid=<a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>())</td></tr>
129<tr class="separator:a130d8f6cbda6d299aeb355d4abcc5f95"><td class="memSeparator" colspan="2">&#160;</td></tr>
130<tr class="memitem:a4626db62503c13042a745a40399f8317"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a4626db62503c13042a745a40399f8317">GetCategoryCount</a> () const override</td></tr>
131<tr class="separator:a4626db62503c13042a745a40399f8317"><td class="memSeparator" colspan="2">&#160;</td></tr>
132<tr class="memitem:ad742b37bc2beb568e083225f3fd8160b"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad742b37bc2beb568e083225f3fd8160b">GetDeviceCount</a> () const override</td></tr>
133<tr class="separator:ad742b37bc2beb568e083225f3fd8160b"><td class="memSeparator" colspan="2">&#160;</td></tr>
134<tr class="memitem:ae3b7dbaa7317dacbcec25f30f6a16075"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae3b7dbaa7317dacbcec25f30f6a16075">GetCounterSetCount</a> () const override</td></tr>
135<tr class="separator:ae3b7dbaa7317dacbcec25f30f6a16075"><td class="memSeparator" colspan="2">&#160;</td></tr>
136<tr class="memitem:ad9062caad1836f8e6b810e4e97bb19d1"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad9062caad1836f8e6b810e4e97bb19d1">GetCounterCount</a> () const override</td></tr>
137<tr class="separator:ad9062caad1836f8e6b810e4e97bb19d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
138<tr class="memitem:af55b37f13ace15889ce8a0b18dda3ed9"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#af55bc6e5233a4720fe8a813db470b06f">Categories</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af55b37f13ace15889ce8a0b18dda3ed9">GetCategories</a> () const override</td></tr>
139<tr class="separator:af55b37f13ace15889ce8a0b18dda3ed9"><td class="memSeparator" colspan="2">&#160;</td></tr>
140<tr class="memitem:ac9bdbed464222fa06875096a4f373ca8"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a3ff1066867cb9bd3b08338957c414401">Devices</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac9bdbed464222fa06875096a4f373ca8">GetDevices</a> () const override</td></tr>
141<tr class="separator:ac9bdbed464222fa06875096a4f373ca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
142<tr class="memitem:afcb72c4151fd72abfffcb7dae0ed2817"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#afcb72c4151fd72abfffcb7dae0ed2817">GetCounterSets</a> () const override</td></tr>
143<tr class="separator:afcb72c4151fd72abfffcb7dae0ed2817"><td class="memSeparator" colspan="2">&#160;</td></tr>
144<tr class="memitem:a6d7f92b987338cab6cbfbad8d53a9738"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#aeeb6904ffbae435c8d0a7138427688f4">Counters</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a6d7f92b987338cab6cbfbad8d53a9738">GetCounters</a> () const override</td></tr>
145<tr class="separator:a6d7f92b987338cab6cbfbad8d53a9738"><td class="memSeparator" colspan="2">&#160;</td></tr>
146<tr class="memitem:a739170f2a39056dd19a09216092fd089"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a739170f2a39056dd19a09216092fd089">GetCategory</a> (const std::string &amp;name) const override</td></tr>
147<tr class="separator:a739170f2a39056dd19a09216092fd089"><td class="memSeparator" colspan="2">&#160;</td></tr>
148<tr class="memitem:a5fa9a7091e79fb9c5c0af5f663c71df1"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a5fa9a7091e79fb9c5c0af5f663c71df1">GetDevice</a> (uint16_t uid) const override</td></tr>
149<tr class="separator:a5fa9a7091e79fb9c5c0af5f663c71df1"><td class="memSeparator" colspan="2">&#160;</td></tr>
150<tr class="memitem:af96ac62d23f06a90b7e36fca3f13367b"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af96ac62d23f06a90b7e36fca3f13367b">GetCounterSet</a> (uint16_t uid) const override</td></tr>
151<tr class="separator:af96ac62d23f06a90b7e36fca3f13367b"><td class="memSeparator" colspan="2">&#160;</td></tr>
152<tr class="memitem:ab2aecc9a0ed092f50b752d30a40bb31a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ab2aecc9a0ed092f50b752d30a40bb31a">GetCounter</a> (uint16_t uid) const override</td></tr>
153<tr class="separator:ab2aecc9a0ed092f50b752d30a40bb31a"><td class="memSeparator" colspan="2">&#160;</td></tr>
154<tr class="inherit_header pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml">ICounterDirectory</a></td></tr>
155<tr class="memitem:ad5186479ccb3343cad2dcf8a288bede1 inherit pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#ad5186479ccb3343cad2dcf8a288bede1">~ICounterDirectory</a> ()</td></tr>
156<tr class="separator:ad5186479ccb3343cad2dcf8a288bede1 inherit pub_methods_classarmnn_1_1profiling_1_1_i_counter_directory"><td class="memSeparator" colspan="2">&#160;</td></tr>
157</table>
158<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
159<div class="textblock">
160<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00439">439</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
161</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
162<a id="acc27c4a7afbfde5c1efa5cc070306fd8"></a>
163<h2 class="memtitle"><span class="permalink"><a href="#acc27c4a7afbfde5c1efa5cc070306fd8">&#9670;&nbsp;</a></span>MockCounterDirectory()</h2>
164
165<div class="memitem">
166<div class="memproto">
167<table class="mlabels">
168 <tr>
169 <td class="mlabels-left">
170 <table class="memname">
171 <tr>
172 <td class="memname"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">MockCounterDirectory</a> </td>
173 <td>(</td>
174 <td class="paramname"></td><td>)</td>
175 <td></td>
176 </tr>
177 </table>
178 </td>
179 <td class="mlabels-right">
180<span class="mlabels"><span class="mlabel">default</span></span> </td>
181 </tr>
182</table>
183</div><div class="memdoc">
184
185</div>
186</div>
187<a id="a180f0ad0d134cd8ea5eb89c663ae00b0"></a>
188<h2 class="memtitle"><span class="permalink"><a href="#a180f0ad0d134cd8ea5eb89c663ae00b0">&#9670;&nbsp;</a></span>~MockCounterDirectory()</h2>
189
190<div class="memitem">
191<div class="memproto">
192<table class="mlabels">
193 <tr>
194 <td class="mlabels-left">
195 <table class="memname">
196 <tr>
197 <td class="memname">~<a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">MockCounterDirectory</a> </td>
198 <td>(</td>
199 <td class="paramname"></td><td>)</td>
200 <td></td>
201 </tr>
202 </table>
203 </td>
204 <td class="mlabels-right">
205<span class="mlabels"><span class="mlabel">default</span></span> </td>
206 </tr>
207</table>
208</div><div class="memdoc">
209
210</div>
211</div>
212<h2 class="groupheader">Member Function Documentation</h2>
213<a id="af55b37f13ace15889ce8a0b18dda3ed9"></a>
214<h2 class="memtitle"><span class="permalink"><a href="#af55b37f13ace15889ce8a0b18dda3ed9">&#9670;&nbsp;</a></span>GetCategories()</h2>
215
216<div class="memitem">
217<div class="memproto">
218<table class="mlabels">
219 <tr>
220 <td class="mlabels-left">
221 <table class="memname">
222 <tr>
223 <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#af55bc6e5233a4720fe8a813db470b06f">Categories</a>&amp; GetCategories </td>
224 <td>(</td>
225 <td class="paramname"></td><td>)</td>
226 <td> const</td>
227 </tr>
228 </table>
229 </td>
230 <td class="mlabels-right">
231<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
232 </tr>
233</table>
234</div><div class="memdoc">
235
236<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a718a75d4c178cf3f687b3f27b8f55091">ICounterDirectory</a>.</p>
237
238<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00575">575</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
239<div class="fragment"><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>&#160;{ <span class="keywordflow">return</span> m_Categories; }</div></div><!-- fragment -->
240</div>
241</div>
242<a id="a739170f2a39056dd19a09216092fd089"></a>
243<h2 class="memtitle"><span class="permalink"><a href="#a739170f2a39056dd19a09216092fd089">&#9670;&nbsp;</a></span>GetCategory()</h2>
244
245<div class="memitem">
246<div class="memproto">
247<table class="mlabels">
248 <tr>
249 <td class="mlabels-left">
250 <table class="memname">
251 <tr>
252 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>* GetCategory </td>
253 <td>(</td>
254 <td class="paramtype">const std::string &amp;&#160;</td>
255 <td class="paramname"><em>name</em></td><td>)</td>
256 <td> const</td>
257 </tr>
258 </table>
259 </td>
260 <td class="mlabels-right">
261<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
262 </tr>
263</table>
264</div><div class="memdoc">
265
266<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a90890aee41059d8fed244538acc4044f">ICounterDirectory</a>.</p>
267
268<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00581">581</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
269<div class="fragment"><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>&#160; {</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>&#160; <span class="keyword">auto</span> it = std::find_if(m_Categories.begin(), m_Categories.end(), [&amp;name](<span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a>&amp; category)</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>&#160; {</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>&#160; BOOST_ASSERT(category);</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>&#160;</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>&#160; <span class="keywordflow">return</span> category-&gt;m_Name == name;</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>&#160; });</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>&#160;</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>&#160; <span class="keywordflow">if</span> (it == m_Categories.end())</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>&#160; {</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>&#160; }</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>&#160;</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>&#160; <span class="keywordflow">return</span> it-&gt;get();</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>&#160; }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a8adee535828386656b4c8acfa8bcf871"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">armnn::profiling::CategoryPtr</a></div><div class="ttdeci">std::unique_ptr&lt; Category &gt; CategoryPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00031">ICounterDirectory.hpp:31</a></div></div>
270</div><!-- fragment -->
271</div>
272</div>
273<a id="a4626db62503c13042a745a40399f8317"></a>
274<h2 class="memtitle"><span class="permalink"><a href="#a4626db62503c13042a745a40399f8317">&#9670;&nbsp;</a></span>GetCategoryCount()</h2>
275
276<div class="memitem">
277<div class="memproto">
278<table class="mlabels">
279 <tr>
280 <td class="mlabels-left">
281 <table class="memname">
282 <tr>
283 <td class="memname">uint16_t GetCategoryCount </td>
284 <td>(</td>
285 <td class="paramname"></td><td>)</td>
286 <td> const</td>
287 </tr>
288 </table>
289 </td>
290 <td class="mlabels-right">
291<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
292 </tr>
293</table>
294</div><div class="memdoc">
295
296<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#ab43b0472c37fe51694977ae9b4132404">ICounterDirectory</a>.</p>
297
298<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00569">569</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
299
300<p class="reference">References <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>.</p>
301
302<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01643">BOOST_AUTO_TEST_CASE()</a>.</p>
303<div class="fragment"><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a>&lt;uint16_t&gt;(m_Categories.size()); }</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&lt; std::is_unsigned&lt; Source &gt;::value &amp;&amp;std::is_unsigned&lt; Dest &gt;::value, Dest &gt; 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>
304</div><!-- fragment -->
305</div>
306</div>
307<a id="ab2aecc9a0ed092f50b752d30a40bb31a"></a>
308<h2 class="memtitle"><span class="permalink"><a href="#ab2aecc9a0ed092f50b752d30a40bb31a">&#9670;&nbsp;</a></span>GetCounter()</h2>
309
310<div class="memitem">
311<div class="memproto">
312<table class="mlabels">
313 <tr>
314 <td class="mlabels-left">
315 <table class="memname">
316 <tr>
317 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a>* GetCounter </td>
318 <td>(</td>
319 <td class="paramtype">uint16_t&#160;</td>
320 <td class="paramname"><em>uid</em></td><td>)</td>
321 <td> const</td>
322 </tr>
323 </table>
324 </td>
325 <td class="mlabels-right">
326<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
327 </tr>
328</table>
329</div><div class="memdoc">
330
331<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a81881e3910b23455b46ec30c8420c695">ICounterDirectory</a>.</p>
332
333<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00610">610</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
334
335<p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p>
336<div class="fragment"><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>&#160; {</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>&#160; <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(uid);</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; <span class="comment">// Not used by the unit tests</span></div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>&#160; }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &amp;&amp;...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div>
337</div><!-- fragment -->
338</div>
339</div>
340<a id="ad9062caad1836f8e6b810e4e97bb19d1"></a>
341<h2 class="memtitle"><span class="permalink"><a href="#ad9062caad1836f8e6b810e4e97bb19d1">&#9670;&nbsp;</a></span>GetCounterCount()</h2>
342
343<div class="memitem">
344<div class="memproto">
345<table class="mlabels">
346 <tr>
347 <td class="mlabels-left">
348 <table class="memname">
349 <tr>
350 <td class="memname">uint16_t GetCounterCount </td>
351 <td>(</td>
352 <td class="paramname"></td><td>)</td>
353 <td> const</td>
354 </tr>
355 </table>
356 </td>
357 <td class="mlabels-right">
358<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
359 </tr>
360</table>
361</div><div class="memdoc">
362
363<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#acab78d0987a9cca5a9cac957be610a7d">ICounterDirectory</a>.</p>
364
365<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00572">572</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
366
367<p class="reference">References <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>.</p>
368
369<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01693">BOOST_AUTO_TEST_CASE()</a>.</p>
370<div class="fragment"><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a>&lt;uint16_t&gt;(m_Counters.size()); }</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&lt; std::is_unsigned&lt; Source &gt;::value &amp;&amp;std::is_unsigned&lt; Dest &gt;::value, Dest &gt; 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>
371</div><!-- fragment -->
372</div>
373</div>
374<a id="a6d7f92b987338cab6cbfbad8d53a9738"></a>
375<h2 class="memtitle"><span class="permalink"><a href="#a6d7f92b987338cab6cbfbad8d53a9738">&#9670;&nbsp;</a></span>GetCounters()</h2>
376
377<div class="memitem">
378<div class="memproto">
379<table class="mlabels">
380 <tr>
381 <td class="mlabels-left">
382 <table class="memname">
383 <tr>
384 <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#aeeb6904ffbae435c8d0a7138427688f4">Counters</a>&amp; GetCounters </td>
385 <td>(</td>
386 <td class="paramname"></td><td>)</td>
387 <td> const</td>
388 </tr>
389 </table>
390 </td>
391 <td class="mlabels-right">
392<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
393 </tr>
394</table>
395</div><div class="memdoc">
396
397<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#ad9fa9b8364fcaa2c940ef8e78eff8df2">ICounterDirectory</a>.</p>
398
399<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00578">578</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
400<div class="fragment"><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>&#160;{ <span class="keywordflow">return</span> m_Counters; }</div></div><!-- fragment -->
401</div>
402</div>
403<a id="af96ac62d23f06a90b7e36fca3f13367b"></a>
404<h2 class="memtitle"><span class="permalink"><a href="#af96ac62d23f06a90b7e36fca3f13367b">&#9670;&nbsp;</a></span>GetCounterSet()</h2>
405
406<div class="memitem">
407<div class="memproto">
408<table class="mlabels">
409 <tr>
410 <td class="mlabels-left">
411 <table class="memname">
412 <tr>
413 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a>* GetCounterSet </td>
414 <td>(</td>
415 <td class="paramtype">uint16_t&#160;</td>
416 <td class="paramname"><em>uid</em></td><td>)</td>
417 <td> const</td>
418 </tr>
419 </table>
420 </td>
421 <td class="mlabels-right">
422<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
423 </tr>
424</table>
425</div><div class="memdoc">
426
427<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a67693dcf840ffeadc066ce77ef7b2044">ICounterDirectory</a>.</p>
428
429<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00604">604</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
430
431<p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p>
432<div class="fragment"><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>&#160; {</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>&#160; <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(uid);</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; <span class="comment">// Not used by the unit tests</span></div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>&#160; }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &amp;&amp;...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div>
433</div><!-- fragment -->
434</div>
435</div>
436<a id="ae3b7dbaa7317dacbcec25f30f6a16075"></a>
437<h2 class="memtitle"><span class="permalink"><a href="#ae3b7dbaa7317dacbcec25f30f6a16075">&#9670;&nbsp;</a></span>GetCounterSetCount()</h2>
438
439<div class="memitem">
440<div class="memproto">
441<table class="mlabels">
442 <tr>
443 <td class="mlabels-left">
444 <table class="memname">
445 <tr>
446 <td class="memname">uint16_t GetCounterSetCount </td>
447 <td>(</td>
448 <td class="paramname"></td><td>)</td>
449 <td> const</td>
450 </tr>
451 </table>
452 </td>
453 <td class="mlabels-right">
454<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
455 </tr>
456</table>
457</div><div class="memdoc">
458
459<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#aef59fdca57a5bb822e22cacfc5836fab">ICounterDirectory</a>.</p>
460
461<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00571">571</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
462
463<p class="reference">References <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>.</p>
464
465<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01625">BOOST_AUTO_TEST_CASE()</a>.</p>
466<div class="fragment"><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a>&lt;uint16_t&gt;(m_CounterSets.size()); }</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&lt; std::is_unsigned&lt; Source &gt;::value &amp;&amp;std::is_unsigned&lt; Dest &gt;::value, Dest &gt; 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>
467</div><!-- fragment -->
468</div>
469</div>
470<a id="afcb72c4151fd72abfffcb7dae0ed2817"></a>
471<h2 class="memtitle"><span class="permalink"><a href="#afcb72c4151fd72abfffcb7dae0ed2817">&#9670;&nbsp;</a></span>GetCounterSets()</h2>
472
473<div class="memitem">
474<div class="memproto">
475<table class="mlabels">
476 <tr>
477 <td class="mlabels-left">
478 <table class="memname">
479 <tr>
480 <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a>&amp; GetCounterSets </td>
481 <td>(</td>
482 <td class="paramname"></td><td>)</td>
483 <td> const</td>
484 </tr>
485 </table>
486 </td>
487 <td class="mlabels-right">
488<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
489 </tr>
490</table>
491</div><div class="memdoc">
492
493<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a8908490db3b8a0003a639ac56b956cee">ICounterDirectory</a>.</p>
494
495<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00577">577</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
496<div class="fragment"><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>&#160;{ <span class="keywordflow">return</span> m_CounterSets; }</div></div><!-- fragment -->
497</div>
498</div>
499<a id="a5fa9a7091e79fb9c5c0af5f663c71df1"></a>
500<h2 class="memtitle"><span class="permalink"><a href="#a5fa9a7091e79fb9c5c0af5f663c71df1">&#9670;&nbsp;</a></span>GetDevice()</h2>
501
502<div class="memitem">
503<div class="memproto">
504<table class="mlabels">
505 <tr>
506 <td class="mlabels-left">
507 <table class="memname">
508 <tr>
509 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a>* GetDevice </td>
510 <td>(</td>
511 <td class="paramtype">uint16_t&#160;</td>
512 <td class="paramname"><em>uid</em></td><td>)</td>
513 <td> const</td>
514 </tr>
515 </table>
516 </td>
517 <td class="mlabels-right">
518<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
519 </tr>
520</table>
521</div><div class="memdoc">
522
523<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a228989d3c53e86e779567ca5c2033ec2">ICounterDirectory</a>.</p>
524
525<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00598">598</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
526
527<p class="reference">References <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>.</p>
528<div class="fragment"><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>&#160; {</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>&#160; <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(uid);</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>&#160; <span class="keywordflow">return</span> <span class="keyword">nullptr</span>; <span class="comment">// Not used by the unit tests</span></div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>&#160; }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &amp;&amp;...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div>
529</div><!-- fragment -->
530</div>
531</div>
532<a id="ad742b37bc2beb568e083225f3fd8160b"></a>
533<h2 class="memtitle"><span class="permalink"><a href="#ad742b37bc2beb568e083225f3fd8160b">&#9670;&nbsp;</a></span>GetDeviceCount()</h2>
534
535<div class="memitem">
536<div class="memproto">
537<table class="mlabels">
538 <tr>
539 <td class="mlabels-left">
540 <table class="memname">
541 <tr>
542 <td class="memname">uint16_t GetDeviceCount </td>
543 <td>(</td>
544 <td class="paramname"></td><td>)</td>
545 <td> const</td>
546 </tr>
547 </table>
548 </td>
549 <td class="mlabels-right">
550<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
551 </tr>
552</table>
553</div><div class="memdoc">
554
555<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#aecd5912045fd41fe41dc96c9844f6deb">ICounterDirectory</a>.</p>
556
557<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00570">570</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
558
559<p class="reference">References <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>.</p>
560
561<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01607">BOOST_AUTO_TEST_CASE()</a>.</p>
562<div class="fragment"><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a>&lt;uint16_t&gt;(m_Devices.size()); }</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&lt; std::is_unsigned&lt; Source &gt;::value &amp;&amp;std::is_unsigned&lt; Dest &gt;::value, Dest &gt; 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>
563</div><!-- fragment -->
564</div>
565</div>
566<a id="ac9bdbed464222fa06875096a4f373ca8"></a>
567<h2 class="memtitle"><span class="permalink"><a href="#ac9bdbed464222fa06875096a4f373ca8">&#9670;&nbsp;</a></span>GetDevices()</h2>
568
569<div class="memitem">
570<div class="memproto">
571<table class="mlabels">
572 <tr>
573 <td class="mlabels-left">
574 <table class="memname">
575 <tr>
576 <td class="memname">const <a class="el" href="namespacearmnn_1_1profiling.xhtml#a3ff1066867cb9bd3b08338957c414401">Devices</a>&amp; GetDevices </td>
577 <td>(</td>
578 <td class="paramname"></td><td>)</td>
579 <td> const</td>
580 </tr>
581 </table>
582 </td>
583 <td class="mlabels-right">
584<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
585 </tr>
586</table>
587</div><div class="memdoc">
588
589<p>Implements <a class="el" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml#a98e6769cb933d30bfd3ca25f61bd8438">ICounterDirectory</a>.</p>
590
591<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00576">576</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
592<div class="fragment"><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>&#160;{ <span class="keywordflow">return</span> m_Devices; }</div></div><!-- fragment -->
593</div>
594</div>
595<a id="ac44342ac08725d8f5dd52e2ee93ca20d"></a>
596<h2 class="memtitle"><span class="permalink"><a href="#ac44342ac08725d8f5dd52e2ee93ca20d">&#9670;&nbsp;</a></span>RegisterCategory()</h2>
597
598<div class="memitem">
599<div class="memproto">
600<table class="mlabels">
601 <tr>
602 <td class="mlabels-left">
603 <table class="memname">
604 <tr>
605 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>* RegisterCategory </td>
606 <td>(</td>
607 <td class="paramtype">const std::string &amp;&#160;</td>
608 <td class="paramname"><em>categoryName</em></td><td>)</td>
609 <td></td>
610 </tr>
611 </table>
612 </td>
613 <td class="mlabels-right">
614<span class="mlabels"><span class="mlabel">inline</span></span> </td>
615 </tr>
616</table>
617</div><div class="memdoc">
618
619<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00446">446</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
620
621<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01643">BOOST_AUTO_TEST_CASE()</a>.</p>
622<div class="fragment"><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160; {</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; <span class="comment">// Create the category</span></div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160; <a class="code" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a> category = std::make_unique&lt;Category&gt;(categoryName);</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160; BOOST_ASSERT(category);</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>&#160; <span class="comment">// Get the raw category pointer</span></div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160; <span class="keyword">const</span> Category* categoryPtr = category.get();</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; BOOST_ASSERT(categoryPtr);</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160;</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160; <span class="comment">// Register the category</span></div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160; m_Categories.insert(std::move(category));</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>&#160;</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160; <span class="keywordflow">return</span> categoryPtr;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160; }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a8adee535828386656b4c8acfa8bcf871"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">armnn::profiling::CategoryPtr</a></div><div class="ttdeci">std::unique_ptr&lt; Category &gt; CategoryPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00031">ICounterDirectory.hpp:31</a></div></div>
623</div><!-- fragment -->
624</div>
625</div>
626<a id="a130d8f6cbda6d299aeb355d4abcc5f95"></a>
627<h2 class="memtitle"><span class="permalink"><a href="#a130d8f6cbda6d299aeb355d4abcc5f95">&#9670;&nbsp;</a></span>RegisterCounter()</h2>
628
629<div class="memitem">
630<div class="memproto">
631<table class="mlabels">
632 <tr>
633 <td class="mlabels-left">
634 <table class="memname">
635 <tr>
636 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a>* RegisterCounter </td>
637 <td>(</td>
638 <td class="paramtype">const <a class="el" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> &amp;&#160;</td>
639 <td class="paramname"><em>backendId</em>, </td>
640 </tr>
641 <tr>
642 <td class="paramkey"></td>
643 <td></td>
644 <td class="paramtype">const uint16_t&#160;</td>
645 <td class="paramname"><em>uid</em>, </td>
646 </tr>
647 <tr>
648 <td class="paramkey"></td>
649 <td></td>
650 <td class="paramtype">const std::string &amp;&#160;</td>
651 <td class="paramname"><em>parentCategoryName</em>, </td>
652 </tr>
653 <tr>
654 <td class="paramkey"></td>
655 <td></td>
656 <td class="paramtype">uint16_t&#160;</td>
657 <td class="paramname"><em>counterClass</em>, </td>
658 </tr>
659 <tr>
660 <td class="paramkey"></td>
661 <td></td>
662 <td class="paramtype">uint16_t&#160;</td>
663 <td class="paramname"><em>interpolation</em>, </td>
664 </tr>
665 <tr>
666 <td class="paramkey"></td>
667 <td></td>
668 <td class="paramtype">double&#160;</td>
669 <td class="paramname"><em>multiplier</em>, </td>
670 </tr>
671 <tr>
672 <td class="paramkey"></td>
673 <td></td>
674 <td class="paramtype">const std::string &amp;&#160;</td>
675 <td class="paramname"><em>name</em>, </td>
676 </tr>
677 <tr>
678 <td class="paramkey"></td>
679 <td></td>
680 <td class="paramtype">const std::string &amp;&#160;</td>
681 <td class="paramname"><em>description</em>, </td>
682 </tr>
683 <tr>
684 <td class="paramkey"></td>
685 <td></td>
686 <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; std::string &gt; &amp;&#160;</td>
687 <td class="paramname"><em>units</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>()</code>, </td>
688 </tr>
689 <tr>
690 <td class="paramkey"></td>
691 <td></td>
692 <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; uint16_t &gt; &amp;&#160;</td>
693 <td class="paramname"><em>numberOfCores</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>()</code>, </td>
694 </tr>
695 <tr>
696 <td class="paramkey"></td>
697 <td></td>
698 <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; uint16_t &gt; &amp;&#160;</td>
699 <td class="paramname"><em>deviceUid</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>()</code>, </td>
700 </tr>
701 <tr>
702 <td class="paramkey"></td>
703 <td></td>
704 <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>&lt; uint16_t &gt; &amp;&#160;</td>
705 <td class="paramname"><em>counterSetUid</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>()</code>&#160;</td>
706 </tr>
707 <tr>
708 <td></td>
709 <td>)</td>
710 <td></td><td></td>
711 </tr>
712 </table>
713 </td>
714 <td class="mlabels-right">
715<span class="mlabels"><span class="mlabel">inline</span></span> </td>
716 </tr>
717</table>
718</div><div class="memdoc">
719
720<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00503">503</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
721
722<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00074">armnn::profiling::GetNextCounterUids()</a>, <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>, and <a class="el" href="_i_counter_directory_8hpp_source.xhtml#l00060">Category::m_Counters</a>.</p>
723
724<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01693">BOOST_AUTO_TEST_CASE()</a>.</p>
725<div class="fragment"><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>&#160; {</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160; <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(backendId);</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>&#160;</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>&#160; <span class="comment">// Get the number of cores from the argument only</span></div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>&#160; uint16_t deviceCores = numberOfCores.<a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? numberOfCores.<a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>&#160;</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>&#160; <span class="comment">// Get the device UID</span></div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>&#160; uint16_t deviceUidValue = deviceUid.<a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? deviceUid.<a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>&#160;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>&#160; <span class="comment">// Get the counter set UID</span></div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>&#160; uint16_t counterSetUidValue = counterSetUid.<a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? counterSetUid.<a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : 0;</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>&#160;</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>&#160; <span class="comment">// Get the counter UIDs and calculate the max counter UID</span></div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>&#160; std::vector&lt;uint16_t&gt; counterUids = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a6605c82bc625fbd40f24d35edee15fe3">GetNextCounterUids</a>(uid, deviceCores);</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>&#160; BOOST_ASSERT(!counterUids.empty());</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>&#160; uint16_t maxCounterUid = deviceCores &lt;= 1 ? counterUids.front() : counterUids.back();</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>&#160;</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>&#160; <span class="comment">// Get the counter units</span></div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>&#160; <span class="keyword">const</span> std::string unitsValue = units.<a class="code" href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>() ? units.<a class="code" href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">value</a>() : <span class="stringliteral">&quot;&quot;</span>;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>&#160;</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>&#160; <span class="comment">// Create the counter</span></div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>&#160; <a class="code" href="namespacearmnn_1_1profiling.xhtml#a38de53725b010ce63ea7557bb1d270e7">CounterPtr</a> counter = std::make_shared&lt;Counter&gt;(armnn::profiling::BACKEND_ID,</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>&#160; counterUids.front(),</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>&#160; maxCounterUid,</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>&#160; counterClass,</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>&#160; interpolation,</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>&#160; multiplier,</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>&#160; name,</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>&#160; description,</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>&#160; unitsValue,</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>&#160; deviceUidValue,</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>&#160; counterSetUidValue);</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>&#160; BOOST_ASSERT(counter);</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>&#160;</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>&#160; <span class="comment">// Get the raw counter pointer</span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>&#160; <span class="keyword">const</span> Counter* counterPtr = counter.get();</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>&#160; BOOST_ASSERT(counterPtr);</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>&#160;</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>&#160; <span class="comment">// Process multiple counters if necessary</span></div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>&#160; <span class="keywordflow">for</span> (uint16_t counterUid : counterUids)</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>&#160; {</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>&#160; <span class="comment">// Connect the counter to the parent category</span></div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>&#160; Category* parentCategory = <span class="keyword">const_cast&lt;</span>Category*<span class="keyword">&gt;</span>(<a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a739170f2a39056dd19a09216092fd089">GetCategory</a>(parentCategoryName));</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>&#160; BOOST_ASSERT(parentCategory);</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>&#160; parentCategory-&gt;m_Counters.push_back(counterUid);</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>&#160;</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>&#160; <span class="comment">// Register the counter</span></div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>&#160; m_Counters.insert(std::make_pair(counterUid, counter));</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>&#160; }</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>&#160;</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>&#160; <span class="keywordflow">return</span> counterPtr;</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>&#160; }</div><div class="ttc" id="namespacearmnn_xhtml_a44affeeb090c3c6a3062830562672e84"><div class="ttname"><a href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">armnn::IgnoreUnused</a></div><div class="ttdeci">void IgnoreUnused(Ts &amp;&amp;...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div>
726<div class="ttc" id="classarmnn_1_1_optional_reference_switch_xhtml_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.xhtml#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch&lt; std::is_reference&lt; T &gt;::value, T &gt;::value</a></div><div class="ttdeci">const T &amp; value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00146">Optional.hpp:146</a></div></div>
727<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a38de53725b010ce63ea7557bb1d270e7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a38de53725b010ce63ea7557bb1d270e7">armnn::profiling::CounterPtr</a></div><div class="ttdeci">std::shared_ptr&lt; Counter &gt; CounterPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00034">ICounterDirectory.hpp:34</a></div></div>
728<div class="ttc" id="classarmnn_1_1_optional_base_xhtml_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.xhtml#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00053">Optional.hpp:53</a></div></div>
729<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a6605c82bc625fbd40f24d35edee15fe3"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a6605c82bc625fbd40f24d35edee15fe3">armnn::profiling::GetNextCounterUids</a></div><div class="ttdeci">std::vector&lt; uint16_t &gt; GetNextCounterUids(uint16_t firstUid, uint16_t cores)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00074">ProfilingUtils.cpp:74</a></div></div>
730<div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_a739170f2a39056dd19a09216092fd089"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a739170f2a39056dd19a09216092fd089">armnn::profiling::MockCounterDirectory::GetCategory</a></div><div class="ttdeci">const Category * GetCategory(const std::string &amp;name) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00581">ProfilingMocks.hpp:581</a></div></div>
731</div><!-- fragment -->
732</div>
733</div>
734<a id="ae0d8bd45562c0887985b1be728640bbc"></a>
735<h2 class="memtitle"><span class="permalink"><a href="#ae0d8bd45562c0887985b1be728640bbc">&#9670;&nbsp;</a></span>RegisterCounterSet()</h2>
736
737<div class="memitem">
738<div class="memproto">
739<table class="mlabels">
740 <tr>
741 <td class="mlabels-left">
742 <table class="memname">
743 <tr>
744 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a>* RegisterCounterSet </td>
745 <td>(</td>
746 <td class="paramtype">const std::string &amp;&#160;</td>
747 <td class="paramname"><em>counterSetName</em>, </td>
748 </tr>
749 <tr>
750 <td class="paramkey"></td>
751 <td></td>
752 <td class="paramtype">uint16_t&#160;</td>
753 <td class="paramname"><em>count</em> = <code>0</code>&#160;</td>
754 </tr>
755 <tr>
756 <td></td>
757 <td>)</td>
758 <td></td><td></td>
759 </tr>
760 </table>
761 </td>
762 <td class="mlabels-right">
763<span class="mlabels"><span class="mlabel">inline</span></span> </td>
764 </tr>
765</table>
766</div><div class="memdoc">
767
768<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00482">482</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
769
770<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00054">armnn::profiling::GetNextUid()</a>.</p>
771
772<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01625">BOOST_AUTO_TEST_CASE()</a>.</p>
773<div class="fragment"><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; {</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; <span class="comment">// Get the counter set UID</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; uint16_t counterSetUid = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a982b094fe2faa67a3560cdaf3901d0f8">GetNextUid</a>();</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>&#160;</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160; <span class="comment">// Create the counter set</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>&#160; <a class="code" href="namespacearmnn_1_1profiling.xhtml#abaedc7fcb8ecb2e086482afe10737fb7">CounterSetPtr</a> counterSet = std::make_unique&lt;CounterSet&gt;(counterSetUid, counterSetName, count);</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>&#160; BOOST_ASSERT(counterSet);</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>&#160;</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>&#160; <span class="comment">// Get the raw counter set pointer</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>&#160; <span class="keyword">const</span> CounterSet* counterSetPtr = counterSet.get();</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>&#160; BOOST_ASSERT(counterSetPtr);</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>&#160;</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>&#160; <span class="comment">// Register the counter set</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160; m_CounterSets.insert(std::make_pair(counterSetUid, std::move(counterSet)));</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>&#160;</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>&#160; <span class="keywordflow">return</span> counterSetPtr;</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>&#160; }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_abaedc7fcb8ecb2e086482afe10737fb7"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#abaedc7fcb8ecb2e086482afe10737fb7">armnn::profiling::CounterSetPtr</a></div><div class="ttdeci">std::unique_ptr&lt; CounterSet &gt; CounterSetPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00033">ICounterDirectory.hpp:33</a></div></div>
774<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a982b094fe2faa67a3560cdaf3901d0f8"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a982b094fe2faa67a3560cdaf3901d0f8">armnn::profiling::GetNextUid</a></div><div class="ttdeci">uint16_t GetNextUid(bool peekOnly)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00054">ProfilingUtils.cpp:54</a></div></div>
775</div><!-- fragment -->
776</div>
777</div>
778<a id="a1819a5a244fd4317b6dcd49cdbf67a2d"></a>
779<h2 class="memtitle"><span class="permalink"><a href="#a1819a5a244fd4317b6dcd49cdbf67a2d">&#9670;&nbsp;</a></span>RegisterDevice()</h2>
780
781<div class="memitem">
782<div class="memproto">
783<table class="mlabels">
784 <tr>
785 <td class="mlabels-left">
786 <table class="memname">
787 <tr>
788 <td class="memname">const <a class="el" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a>* RegisterDevice </td>
789 <td>(</td>
790 <td class="paramtype">const std::string &amp;&#160;</td>
791 <td class="paramname"><em>deviceName</em>, </td>
792 </tr>
793 <tr>
794 <td class="paramkey"></td>
795 <td></td>
796 <td class="paramtype">uint16_t&#160;</td>
797 <td class="paramname"><em>cores</em> = <code>0</code>&#160;</td>
798 </tr>
799 <tr>
800 <td></td>
801 <td>)</td>
802 <td></td><td></td>
803 </tr>
804 </table>
805 </td>
806 <td class="mlabels-right">
807<span class="mlabels"><span class="mlabel">inline</span></span> </td>
808 </tr>
809</table>
810</div><div class="memdoc">
811
812<p class="definition">Definition at line <a class="el" href="_profiling_mocks_8hpp_source.xhtml#l00462">462</a> of file <a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a>.</p>
813
814<p class="reference">References <a class="el" href="_profiling_utils_8cpp_source.xhtml#l00054">armnn::profiling::GetNextUid()</a>.</p>
815
816<p class="reference">Referenced by <a class="el" href="_send_counter_packet_tests_8cpp_source.xhtml#l01607">BOOST_AUTO_TEST_CASE()</a>.</p>
817<div class="fragment"><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>&#160; {</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160; <span class="comment">// Get the device UID</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160; uint16_t deviceUid = <a class="code" href="namespacearmnn_1_1profiling.xhtml#a982b094fe2faa67a3560cdaf3901d0f8">GetNextUid</a>();</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160;</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160; <span class="comment">// Create the device</span></div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160; <a class="code" href="namespacearmnn_1_1profiling.xhtml#a22a0d730c0d08335585e6e8999be8f8b">DevicePtr</a> device = std::make_unique&lt;Device&gt;(deviceUid, deviceName, cores);</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>&#160; BOOST_ASSERT(device);</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160;</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; <span class="comment">// Get the raw device pointer</span></div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160; <span class="keyword">const</span> Device* devicePtr = device.get();</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160; BOOST_ASSERT(devicePtr);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160;</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>&#160; <span class="comment">// Register the device</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160; m_Devices.insert(std::make_pair(deviceUid, std::move(device)));</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160;</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160; <span class="keywordflow">return</span> devicePtr;</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160; }</div><div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a22a0d730c0d08335585e6e8999be8f8b"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a22a0d730c0d08335585e6e8999be8f8b">armnn::profiling::DevicePtr</a></div><div class="ttdeci">std::unique_ptr&lt; Device &gt; DevicePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00032">ICounterDirectory.hpp:32</a></div></div>
818<div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a982b094fe2faa67a3560cdaf3901d0f8"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a982b094fe2faa67a3560cdaf3901d0f8">armnn::profiling::GetNextUid</a></div><div class="ttdeci">uint16_t GetNextUid(bool peekOnly)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00054">ProfilingUtils.cpp:54</a></div></div>
819</div><!-- fragment -->
820</div>
821</div>
822<hr/>The documentation for this class was generated from the following file:<ul>
823<li>src/profiling/test/<a class="el" href="_profiling_mocks_8hpp_source.xhtml">ProfilingMocks.hpp</a></li>
824</ul>
825</div><!-- contents -->
826</div><!-- doc-content -->
827<!-- start footer part -->
828<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
829 <ul>
830 <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="namespacearmnn_1_1profiling.xhtml">profiling</a></li><li class="navelem"><a class="el" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">MockCounterDirectory</a></li>
831 <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by
832 <a href="http://www.doxygen.org/index.html">
833 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
834 </ul>
835</div>
836</body>
837</html>