Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/profiling/test/ProfilingMocks.hpp Source File</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_profiling_mocks_8hpp_source.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="headertitle"> |
| 98 | <div class="title">ProfilingMocks.hpp</div> </div> |
| 99 | </div><!--header--> |
| 100 | <div class="contents"> |
| 101 | <a href="_profiling_mocks_8hpp.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2020 Arm Ltd. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <<a class="code" href="_holder_8hpp.xhtml">Holder.hpp</a>></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <<a class="code" href="_i_profiling_connection_factory_8hpp.xhtml">IProfilingConnectionFactory.hpp</a>></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <<a class="code" href="_i_profiling_service_8hpp.xhtml">IProfilingService.hpp</a>></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <<a class="code" href="_profiling_guid_generator_8hpp.xhtml">ProfilingGuidGenerator.hpp</a>></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <<a class="code" href="_profiling_utils_8hpp.xhtml">ProfilingUtils.hpp</a>></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="_send_counter_packet_8hpp.xhtml">SendCounterPacket.hpp</a>></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <<a class="code" href="_send_thread_8hpp.xhtml">SendThread.hpp</a>></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="_exceptions_8hpp.xhtml">armnn/Exceptions.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="_optional_8hpp.xhtml">armnn/Optional.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="_conversion_8hpp.xhtml">armnn/Conversion.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="_ignore_unused_8hpp.xhtml">armnn/utility/IgnoreUnused.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <boost/assert.hpp></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <boost/numeric/conversion/cast.hpp></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <atomic></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <condition_variable></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <mutex></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <thread></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span>profiling</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml"> 35</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml">MockProfilingConnection</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml">IProfilingConnection</a></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a372bdcb3088c30e1a5bb38cf4b30d586"> 38</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a372bdcb3088c30e1a5bb38cf4b30d586">MockProfilingConnection</a>()</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  : m_IsOpen(<a class="code" href="_cl_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a>)</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  , m_WrittenData()</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  , m_Packet()</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {}</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0"> 44</a></span>  <span class="keyword">enum class</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ae43273a3645f4894a1088081feb9827d">StreamMetaData</a>,</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ab9eaea43754be09188f3b4d2e20f6c95">ConnectionAcknowledge</a>,</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ad2cacb6bc37a3363ae810b656e3b6190">CounterDirectory</a>,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a79bb5b82761f89b8d72b4c79a9511c54">ReqCounterDirectory</a>,</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0aebabc0e295bef3bf6d0d659a4843ebe4">PeriodicCounterSelection</a>,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ac0b9859e4ac3c476e5cf6bb0c7a70dc5">PerJobCounterSelection</a>,</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b">TimelineMessageDirectory</a>,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7">PeriodicCounterCapture</a>,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">Unknown</a></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  };</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a91bdc9d5497d47f5d707418beb83b140"> 57</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a91bdc9d5497d47f5d707418beb83b140">IsOpen</a>()<span class="keyword"> const override</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> m_IsOpen;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0f9aecd570c4e5e6d41337f0e2f1adf5"> 64</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0f9aecd570c4e5e6d41337f0e2f1adf5">Close</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  m_IsOpen = <span class="keyword">false</span>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a42eb542b5a1d73d00c4ce474140bb78c"> 71</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a42eb542b5a1d73d00c4ce474140bb78c">WritePacket</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* buffer, uint32_t length)<span class="keyword"> override</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">if</span> (buffer == <span class="keyword">nullptr</span> || length == 0)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  {</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  uint32_t header = <a class="code" href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">ReadUint32</a>(buffer, 0);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  uint32_t packetFamily = (header >> 26);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  uint32_t packetId = ((header >> 16) & 1023);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a> packetType;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">switch</span> (packetFamily)</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  {</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">case</span> 0:</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  packetType = packetId < 6 ? <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">PacketType</a>(packetId) : <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">PacketType::Unknown</a>;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">case</span> 1:</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  packetType = packetId == 0 ? <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b">PacketType::TimelineMessageDirectory</a> : <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">PacketType::Unknown</a>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">case</span> 3:</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  packetType = packetId == 0 ? <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7">PacketType::PeriodicCounterCapture</a> : <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">PacketType::Unknown</a>;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  packetType = <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">PacketType::Unknown</a>;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  }</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  m_WrittenData.push_back({ packetType, length });</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a1de32cbfa025fc6e4eb2ff7a4fd16d6b"> 106</a></span>  <span class="keywordtype">long</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a1de32cbfa025fc6e4eb2ff7a4fd16d6b">CheckForPacket</a>(<span class="keyword">const</span> std::pair<PacketType, uint32_t> packetInfo)</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">if</span>(packetInfo.second != 0)</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> std::count(m_WrittenData.begin(), m_WrittenData.end(), packetInfo);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> std::count_if(m_WrittenData.begin(), m_WrittenData.end(),</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  [&packetInfo](<span class="keyword">const</span> std::pair<PacketType, uint32_t> pair) { <span class="keywordflow">return</span> packetInfo.first == pair.first; });</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  }</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  }</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a4ae3f922dfaad569006a2fc2cc12b3a6"> 121</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a4ae3f922dfaad569006a2fc2cc12b3a6">WritePacket</a>(<a class="code" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a>&& packet)</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  {</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  m_Packet = std::move(packet);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a1adbda8257d3a74a0566e0d8407ff458"> 129</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a1adbda8257d3a74a0566e0d8407ff458">ReadPacket</a>(uint32_t timeout)<span class="keyword"> override</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(timeout);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// Simulate a delay in the reading process. The default timeout is way too long.</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  std::this_thread::sleep_for(std::chrono::milliseconds(5));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> std::move(m_Packet);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#adc32d741a992ea6f9af3f9e65aebf34d"> 139</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#adc32d741a992ea6f9af3f9e65aebf34d">GetWrittenDataSize</a>()</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordflow">return</span> m_WrittenData.size();</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  }</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#aa71d36872f416feaa853788a7a7a7ef8"> 146</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#aa71d36872f416feaa853788a7a7a7ef8">Clear</a>()</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  {</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  m_WrittenData.clear();</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">bool</span> m_IsOpen;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  std::vector<std::pair<PacketType, uint32_t>> m_WrittenData;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <a class="code" href="classarmnn_1_1profiling_1_1_packet.xhtml">Packet</a> m_Packet;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">mutable</span> std::mutex m_Mutex;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> };</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory.xhtml"> 160</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory.xhtml">MockProfilingConnectionFactory</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_profiling_connection_factory.xhtml">IProfilingConnectionFactory</a></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory.xhtml#a7b486986bc169a2c637e6c49cb3dfe73"> 163</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_i_profiling_connection_factory.xhtml#abb7f442bd7409c8dff2b9346fd67bce3">IProfilingConnectionPtr</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory.xhtml#a7b486986bc169a2c637e6c49cb3dfe73">GetProfilingConnection</a>(<span class="keyword">const</span> <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.xhtml">ExternalProfilingOptions</a>& <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>)<span class="keyword"> const override</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(options);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span> std::make_unique<MockProfilingConnection>();</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> };</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml"> 170</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml">MockPacketBuffer</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">IPacketBuffer</a></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> {</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#ae589e488b5420a2e680c1652072861e8"> 173</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#ae589e488b5420a2e680c1652072861e8">MockPacketBuffer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> maxSize)</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  : m_MaxSize(maxSize)</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  , m_Size(0)</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  , m_Data(<a class="code" href="namespacestd.xhtml">std</a>::make_unique<unsigned char[]>(m_MaxSize))</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  {}</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a6b34b9ef41ff50cf988dde8381fa4f7e"> 179</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a6b34b9ef41ff50cf988dde8381fa4f7e">~MockPacketBuffer</a>() {}</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a9a7614d7b084e33f72045ed161eb95bc"> 181</a></span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a9a7614d7b084e33f72045ed161eb95bc">GetReadableData</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> m_Data.get(); }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#ab03338cef0f6b48d46effb2c2a64407d"> 183</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#ab03338cef0f6b48d46effb2c2a64407d">GetSize</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> m_Size; }</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#aa630bd4c9ada8ab204fbb42651b10613"> 185</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#aa630bd4c9ada8ab204fbb42651b10613">MarkRead</a>()<span class="keyword"> override </span>{ m_Size = 0; }</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a1d7238f289009294f40b0b2bcb8d594f"> 187</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a1d7238f289009294f40b0b2bcb8d594f">Commit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size)<span class="keyword"> override </span>{ m_Size = size; }</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a1a5dddc8911f6189f9ca01394c59faaf"> 189</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a1a5dddc8911f6189f9ca01394c59faaf">Release</a>()<span class="keyword"> override </span>{ m_Size = 0; }</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#afedc435235efffdfab1fb0670f52d7c1"> 191</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#afedc435235efffdfab1fb0670f52d7c1">GetWritableData</a>()<span class="keyword"> override </span>{ <span class="keywordflow">return</span> m_Data.get(); }</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_MaxSize;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_Size;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  std::unique_ptr<unsigned char[]> m_Data;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> };</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml"> 199</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml">MockBufferManager</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">IBufferManager</a></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> {</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ac29af30972ae62351f87a669e2c8940f"> 202</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ac29af30972ae62351f87a669e2c8940f">MockBufferManager</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size)</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  : m_BufferSize(size),</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  m_Buffer(<a class="code" href="namespacestd.xhtml">std</a>::make_unique<<a class="code" href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml">MockPacketBuffer</a>>(size)) {}</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ae8b885e4225f3b0976f22ae8bc94f52a"> 206</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ae8b885e4225f3b0976f22ae8bc94f52a">~MockBufferManager</a>() {}</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ac3f43b4dd3fafd6b13342acc2263bbb4"> 208</a></span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ac3f43b4dd3fafd6b13342acc2263bbb4">Reserve</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> requestedSize, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>& reservedSize)<span class="keyword"> override</span></div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">if</span> (requestedSize > m_BufferSize)</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  {</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  reservedSize = m_BufferSize;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  reservedSize = requestedSize;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  }</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">return</span> std::move(m_Buffer);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  }</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#a183eaa37ccd326bd82179bed901c7122"> 222</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#a183eaa37ccd326bd82179bed901c7122">Commit</a>(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a>& packetBuffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <span class="keywordtype">bool</span> notifyConsumer = <span class="keyword">true</span>)<span class="keyword"> override</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  packetBuffer->Commit(size);</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  m_Buffer = std::move(packetBuffer);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (notifyConsumer)</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  {</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  FlushReadList();</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  }</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  }</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div><div class="line"><a name="l00233"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737"> 233</a></span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">return</span> std::move(m_Buffer);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#a226108649851aa1b1a8168560c5228b5"> 238</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#a226108649851aa1b1a8168560c5228b5">Release</a>(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a>& packetBuffer)<span class="keyword"> override</span></div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  packetBuffer->Release();</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  m_Buffer = std::move(packetBuffer);</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  }</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div><div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ae717263b3243e9f88f4caea6d31b0652"> 244</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ae717263b3243e9f88f4caea6d31b0652">MarkRead</a>(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a>& packetBuffer)<span class="keyword"> override</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  packetBuffer->MarkRead();</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  m_Buffer = std::move(packetBuffer);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  }</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00250"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ad675ff4e9053375bd41d0aad6b3bbb63"> 250</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ad675ff4e9053375bd41d0aad6b3bbb63">SetConsumer</a>(<a class="code" href="classarmnn_1_1profiling_1_1_i_consumer.xhtml">IConsumer</a>* consumer)<span class="keyword"> override</span></div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">if</span> (consumer != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  {</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  m_Consumer = consumer;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  }</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  }</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#af22fdc7450c285c4d7449425c8fe994f"> 258</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#af22fdc7450c285c4d7449425c8fe994f">FlushReadList</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="comment">// notify consumer that packet is ready to read</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">if</span> (m_Consumer != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  {</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  m_Consumer->SetReadyToRead();</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  }</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  }</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_BufferSize;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> m_Buffer;</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <a class="code" href="classarmnn_1_1profiling_1_1_i_consumer.xhtml">IConsumer</a>* m_Consumer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> };</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div><div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml"> 273</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml">MockStreamCounterBuffer</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">IBufferManager</a></div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> {</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00276"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#add78c1a7dbde9d871b4193345e250d96"> 276</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#add78c1a7dbde9d871b4193345e250d96">MockStreamCounterBuffer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> maxBufferSize = 4096)</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  : m_MaxBufferSize(maxBufferSize)</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  , m_BufferList()</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  , m_CommittedSize(0)</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  , m_ReadableSize(0)</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  , m_ReadSize(0)</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  {}</div><div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a7e55485c728365ea5d8bd9968cf45356"> 283</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a7e55485c728365ea5d8bd9968cf45356">~MockStreamCounterBuffer</a>() {}</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ac3f43b4dd3fafd6b13342acc2263bbb4"> 285</a></span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ac3f43b4dd3fafd6b13342acc2263bbb4">Reserve</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> requestedSize, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>& reservedSize)<span class="keyword"> override</span></div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  reservedSize = 0;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keywordflow">if</span> (requestedSize > m_MaxBufferSize)</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  {</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.xhtml">armnn::InvalidArgumentException</a>(<span class="stringliteral">"The maximum buffer size that can be requested is ["</span> +</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  std::to_string(m_MaxBufferSize) + <span class="stringliteral">"] bytes"</span>);</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  }</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  reservedSize = requestedSize;</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">return</span> std::make_unique<MockPacketBuffer>(requestedSize);</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  }</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a183eaa37ccd326bd82179bed901c7122"> 299</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a183eaa37ccd326bd82179bed901c7122">Commit</a>(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a>& packetBuffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <span class="keywordtype">bool</span> notifyConsumer = <span class="keyword">true</span>)<span class="keyword"> override</span></div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  packetBuffer->Commit(size);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  m_BufferList.push_back(std::move(packetBuffer));</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  m_CommittedSize += size;</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">if</span> (notifyConsumer)</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  {</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  FlushReadList();</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  }</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  }</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> </div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a226108649851aa1b1a8168560c5228b5"> 313</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a226108649851aa1b1a8168560c5228b5">Release</a>(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a>& packetBuffer)<span class="keyword"> override</span></div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span> </div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  packetBuffer->Release();</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  }</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#abce8709dc1b666a26f427ba7ff08b737"> 320</a></span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#abce8709dc1b666a26f427ba7ff08b737">GetReadableBuffer</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordflow">if</span> (m_BufferList.empty())</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  {</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  }</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> buffer = std::move(m_BufferList.back());</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  m_BufferList.pop_back();</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  m_ReadableSize += buffer->GetSize();</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordflow">return</span> buffer;</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  }</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div><div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ae717263b3243e9f88f4caea6d31b0652"> 334</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ae717263b3243e9f88f4caea6d31b0652">MarkRead</a>(<a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a>& packetBuffer)<span class="keyword"> override</span></div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  std::lock_guard<std::mutex> lock(m_Mutex);</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  m_ReadSize += packetBuffer->GetSize();</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  packetBuffer->MarkRead();</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  }</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> </div><div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ad675ff4e9053375bd41d0aad6b3bbb63"> 342</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ad675ff4e9053375bd41d0aad6b3bbb63">SetConsumer</a>(<a class="code" href="classarmnn_1_1profiling_1_1_i_consumer.xhtml">IConsumer</a>* consumer)<span class="keyword"> override</span></div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">if</span> (consumer != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  {</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  m_Consumer = consumer;</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  }</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  }</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div><div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#af22fdc7450c285c4d7449425c8fe994f"> 350</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#af22fdc7450c285c4d7449425c8fe994f">FlushReadList</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="comment">// notify consumer that packet is ready to read</span></div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keywordflow">if</span> (m_Consumer != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  {</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  m_Consumer->SetReadyToRead();</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  }</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  }</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div><div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a0a0b47bcd9b2b00de2c82761705cfd58"> 359</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a0a0b47bcd9b2b00de2c82761705cfd58">GetCommittedSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_CommittedSize; }</div><div class="line"><a name="l00360"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ab158e7cd554e5f65e77bad0c4d448474"> 360</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ab158e7cd554e5f65e77bad0c4d448474">GetReadableSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_ReadableSize; }</div><div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a7233f6a0ab843a226dc07c72edd76168"> 361</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a7233f6a0ab843a226dc07c72edd76168">GetReadSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_ReadSize; }</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span> </div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <span class="comment">// The maximum buffer size when creating a new buffer</span></div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_MaxBufferSize;</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="comment">// A list of buffers</span></div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  std::vector<IPacketBufferPtr> m_BufferList;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="comment">// The mutex to synchronize this mock's methods</span></div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  std::mutex m_Mutex;</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span> </div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="comment">// The total size of the buffers that has been committed for reading</span></div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_CommittedSize;</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="comment">// The total size of the buffers that can be read</span></div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_ReadableSize;</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="comment">// The total size of the buffers that has already been read</span></div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_ReadSize;</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span> </div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="comment">// Consumer thread to notify packet is ready to read</span></div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <a class="code" href="classarmnn_1_1profiling_1_1_i_consumer.xhtml">IConsumer</a>* m_Consumer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span> };</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span> </div><div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml"> 386</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml">MockSendCounterPacket</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_send_counter_packet.xhtml">ISendCounterPacket</a></div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> {</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00389"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#aff0340dbcc0881b2c7477565034cb956"> 389</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#aff0340dbcc0881b2c7477565034cb956">MockSendCounterPacket</a>(<a class="code" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">IBufferManager</a>& sendBuffer) : m_BufferManager(sendBuffer) {}</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div><div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a2a2e451c4e4963909b8a6dc7e7653cd1"> 391</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a2a2e451c4e4963909b8a6dc7e7653cd1">SendStreamMetaDataPacket</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  std::string message(<span class="stringliteral">"SendStreamMetaDataPacket"</span>);</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reserved = 0;</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> buffer = m_BufferManager.Reserve(1024, reserved);</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  memcpy(buffer->GetWritableData(), message.c_str(), <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(message.size()) + 1);</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  m_BufferManager.Commit(buffer, reserved, <span class="keyword">false</span>);</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  }</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div><div class="line"><a name="l00400"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a3b526a823530443efec886c4305e52de"> 400</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a3b526a823530443efec886c4305e52de">SendCounterDirectoryPacket</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml">ICounterDirectory</a>& counterDirectory)<span class="keyword"> override</span></div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(counterDirectory);</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span> </div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  std::string message(<span class="stringliteral">"SendCounterDirectoryPacket"</span>);</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reserved = 0;</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> buffer = m_BufferManager.Reserve(1024, reserved);</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  memcpy(buffer->GetWritableData(), message.c_str(), <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(message.size()) + 1);</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  m_BufferManager.Commit(buffer, reserved);</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  }</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span> </div><div class="line"><a name="l00411"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#ac9261c6ee7d313090d15cfa22173d80c"> 411</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#ac9261c6ee7d313090d15cfa22173d80c">SendPeriodicCounterCapturePacket</a>(uint64_t timestamp,</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keyword">const</span> std::vector<CounterValue>& values)<span class="keyword"> override</span></div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(timestamp, values);</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  std::string message(<span class="stringliteral">"SendPeriodicCounterCapturePacket"</span>);</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reserved = 0;</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> buffer = m_BufferManager.Reserve(1024, reserved);</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  memcpy(buffer->GetWritableData(), message.c_str(), <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(message.size()) + 1);</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  m_BufferManager.Commit(buffer, reserved);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  }</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span> </div><div class="line"><a name="l00423"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a47406a4d108beb4f20031d370a155a9d"> 423</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a47406a4d108beb4f20031d370a155a9d">SendPeriodicCounterSelectionPacket</a>(uint32_t capturePeriod,</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keyword">const</span> std::vector<uint16_t>& selectedCounterIds)<span class="keyword"> override</span></div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(capturePeriod, selectedCounterIds);</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  std::string message(<span class="stringliteral">"SendPeriodicCounterSelectionPacket"</span>);</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> reserved = 0;</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">IPacketBufferPtr</a> buffer = m_BufferManager.Reserve(1024, reserved);</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  memcpy(buffer->GetWritableData(), message.c_str(), <span class="keyword">static_cast<</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">></span>(message.size()) + 1);</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  m_BufferManager.Commit(buffer, reserved);</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  }</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span> </div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <a class="code" href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">IBufferManager</a>& m_BufferManager;</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span> };</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div><div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml"> 439</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">MockCounterDirectory</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml">ICounterDirectory</a></div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span> {</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">MockCounterDirectory</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  ~<a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">MockCounterDirectory</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span> </div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="comment">// Register profiling objects</span></div><div class="line"><a name="l00446"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac44342ac08725d8f5dd52e2ee93ca20d"> 446</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac44342ac08725d8f5dd52e2ee93ca20d">RegisterCategory</a>(<span class="keyword">const</span> std::string& categoryName)</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  {</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  <span class="comment">// Create the category</span></div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a> category = std::make_unique<Category>(categoryName);</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  BOOST_ASSERT(category);</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span> </div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  <span class="comment">// Get the raw category pointer</span></div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>* categoryPtr = category.get();</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  BOOST_ASSERT(categoryPtr);</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="comment">// Register the category</span></div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  m_Categories.insert(std::move(category));</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span> </div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="keywordflow">return</span> categoryPtr;</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  }</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span> </div><div class="line"><a name="l00462"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a1819a5a244fd4317b6dcd49cdbf67a2d"> 462</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a1819a5a244fd4317b6dcd49cdbf67a2d">RegisterDevice</a>(<span class="keyword">const</span> std::string& deviceName,</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  uint16_t cores = 0)</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  {</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="comment">// Get the device UID</span></div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  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> </div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <span class="comment">// Create the device</span></div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a22a0d730c0d08335585e6e8999be8f8b">DevicePtr</a> device = std::make_unique<Device>(deviceUid, deviceName, cores);</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  BOOST_ASSERT(device);</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="comment">// Get the raw device pointer</span></div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a>* devicePtr = device.get();</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  BOOST_ASSERT(devicePtr);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span> </div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="comment">// Register the device</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  m_Devices.insert(std::make_pair(deviceUid, std::move(device)));</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span> </div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordflow">return</span> devicePtr;</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  }</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span> </div><div class="line"><a name="l00482"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae0d8bd45562c0887985b1be728640bbc"> 482</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae0d8bd45562c0887985b1be728640bbc">RegisterCounterSet</a>(</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keyword">const</span> std::string& counterSetName,</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  uint16_t count = 0)</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  {</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <span class="comment">// Get the counter set UID</span></div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  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> </div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="comment">// Create the counter set</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#abaedc7fcb8ecb2e086482afe10737fb7">CounterSetPtr</a> counterSet = std::make_unique<CounterSet>(counterSetUid, counterSetName, count);</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  BOOST_ASSERT(counterSet);</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="comment">// Get the raw counter set pointer</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a>* counterSetPtr = counterSet.get();</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  BOOST_ASSERT(counterSetPtr);</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span> </div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <span class="comment">// Register the counter set</span></div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  m_CounterSets.insert(std::make_pair(counterSetUid, std::move(counterSet)));</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span> </div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <span class="keywordflow">return</span> counterSetPtr;</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  }</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span> </div><div class="line"><a name="l00503"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a130d8f6cbda6d299aeb355d4abcc5f95"> 503</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a130d8f6cbda6d299aeb355d4abcc5f95">RegisterCounter</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& backendId,</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keyword">const</span> uint16_t uid,</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <span class="keyword">const</span> std::string& parentCategoryName,</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  uint16_t counterClass,</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  uint16_t interpolation,</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordtype">double</span> multiplier,</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <span class="keyword">const</span> std::string& name,</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="keyword">const</span> std::string& description,</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_optional.xhtml">armnn::Optional<std::string></a>& units = <a class="code" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>(),</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_optional.xhtml">armnn::Optional<uint16_t></a>& numberOfCores = <a class="code" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>(),</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_optional.xhtml">armnn::Optional<uint16_t></a>& deviceUid = <a class="code" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>(),</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_optional.xhtml">armnn::Optional<uint16_t></a>& counterSetUid = <a class="code" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>())</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  {</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(backendId);</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span> </div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  <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>  uint16_t deviceCores = numberOfCores.has_value() ? numberOfCores.value() : 0;</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span> </div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <span class="comment">// Get the device UID</span></div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  uint16_t deviceUidValue = deviceUid.has_value() ? deviceUid.value() : 0;</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span> </div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <span class="comment">// Get the counter set UID</span></div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  uint16_t counterSetUidValue = counterSetUid.has_value() ? counterSetUid.value() : 0;</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span> </div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <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>  std::vector<uint16_t> 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>  BOOST_ASSERT(!counterUids.empty());</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  uint16_t maxCounterUid = deviceCores <= 1 ? counterUids.front() : counterUids.back();</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span> </div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="comment">// Get the counter units</span></div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keyword">const</span> std::string unitsValue = units.has_value() ? units.value() : <span class="stringliteral">""</span>;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span> </div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="comment">// Create the counter</span></div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a38de53725b010ce63ea7557bb1d270e7">CounterPtr</a> counter = std::make_shared<Counter>(armnn::profiling::BACKEND_ID,</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  counterUids.front(),</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  maxCounterUid,</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  counterClass,</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  interpolation,</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  multiplier,</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  name,</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  description,</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  unitsValue,</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  deviceUidValue,</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  counterSetUidValue);</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  BOOST_ASSERT(counter);</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span> </div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="comment">// Get the raw counter pointer</span></div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a>* counterPtr = counter.get();</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  BOOST_ASSERT(counterPtr);</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span> </div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  <span class="comment">// Process multiple counters if necessary</span></div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  <span class="keywordflow">for</span> (uint16_t counterUid : counterUids)</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  {</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  <span class="comment">// Connect the counter to the parent category</span></div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <a class="code" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>* parentCategory = <span class="keyword">const_cast<</span><a class="code" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>*<span class="keyword">></span>(GetCategory(parentCategoryName));</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  BOOST_ASSERT(parentCategory);</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  parentCategory-><a class="code" href="classarmnn_1_1profiling_1_1_category.xhtml#a12c62f88426b5fe466446040d9dc80af">m_Counters</a>.push_back(counterUid);</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span> </div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="comment">// Register the counter</span></div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  m_Counters.insert(std::make_pair(counterUid, counter));</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  }</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span> </div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="keywordflow">return</span> counterPtr;</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  }</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span> </div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="comment">// Getters for counts</span></div><div class="line"><a name="l00569"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a4626db62503c13042a745a40399f8317"> 569</a></span>  uint16_t <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a4626db62503c13042a745a40399f8317">GetCategoryCount</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint16_t>(m_Categories.size()); }</div><div class="line"><a name="l00570"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad742b37bc2beb568e083225f3fd8160b"> 570</a></span>  uint16_t <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad742b37bc2beb568e083225f3fd8160b">GetDeviceCount</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint16_t>(m_Devices.size()); }</div><div class="line"><a name="l00571"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae3b7dbaa7317dacbcec25f30f6a16075"> 571</a></span>  uint16_t <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae3b7dbaa7317dacbcec25f30f6a16075">GetCounterSetCount</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint16_t>(m_CounterSets.size()); }</div><div class="line"><a name="l00572"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad9062caad1836f8e6b810e4e97bb19d1"> 572</a></span>  uint16_t <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad9062caad1836f8e6b810e4e97bb19d1">GetCounterCount</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><uint16_t>(m_Counters.size()); }</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span> </div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <span class="comment">// Getters for collections</span></div><div class="line"><a name="l00575"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af55b37f13ace15889ce8a0b18dda3ed9"> 575</a></span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#af55bc6e5233a4720fe8a813db470b06f">Categories</a>& <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af55b37f13ace15889ce8a0b18dda3ed9">GetCategories</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> m_Categories; }</div><div class="line"><a name="l00576"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac9bdbed464222fa06875096a4f373ca8"> 576</a></span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#a3ff1066867cb9bd3b08338957c414401">Devices</a>& <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac9bdbed464222fa06875096a4f373ca8">GetDevices</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> m_Devices; }</div><div class="line"><a name="l00577"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#afcb72c4151fd72abfffcb7dae0ed2817"> 577</a></span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a>& <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#afcb72c4151fd72abfffcb7dae0ed2817">GetCounterSets</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> m_CounterSets; }</div><div class="line"><a name="l00578"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a6d7f92b987338cab6cbfbad8d53a9738"> 578</a></span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#aeeb6904ffbae435c8d0a7138427688f4">Counters</a>& <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a6d7f92b987338cab6cbfbad8d53a9738">GetCounters</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> m_Counters; }</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span> </div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="comment">// Getters for profiling objects</span></div><div class="line"><a name="l00581"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a739170f2a39056dd19a09216092fd089"> 581</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_category.xhtml">Category</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a739170f2a39056dd19a09216092fd089">GetCategory</a>(<span class="keyword">const</span> std::string& name)<span class="keyword"> const override</span></div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <span class="keyword">auto</span> it = std::find_if(m_Categories.begin(), m_Categories.end(), [&name](<span class="keyword">const</span> <a class="code" href="namespacearmnn_1_1profiling.xhtml#a8adee535828386656b4c8acfa8bcf871">CategoryPtr</a>& category)</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  {</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  BOOST_ASSERT(category);</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span> </div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keywordflow">return</span> category->m_Name == name;</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  });</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span> </div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  <span class="keywordflow">if</span> (it == m_Categories.end())</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  {</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  }</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span> </div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <span class="keywordflow">return</span> it->get();</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  }</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span> </div><div class="line"><a name="l00598"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a5fa9a7091e79fb9c5c0af5f663c71df1"> 598</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_device.xhtml">Device</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a5fa9a7091e79fb9c5c0af5f663c71df1">GetDevice</a>(uint16_t uid)<span class="keyword"> const override</span></div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(uid);</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <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>  }</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span> </div><div class="line"><a name="l00604"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af96ac62d23f06a90b7e36fca3f13367b"> 604</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_counter_set.xhtml">CounterSet</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af96ac62d23f06a90b7e36fca3f13367b">GetCounterSet</a>(uint16_t uid)<span class="keyword"> const override</span></div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(uid);</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  <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>  }</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span> </div><div class="line"><a name="l00610"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ab2aecc9a0ed092f50b752d30a40bb31a"> 610</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_counter.xhtml">Counter</a>* <a class="code" href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ab2aecc9a0ed092f50b752d30a40bb31a">GetCounter</a>(uint16_t uid)<span class="keyword"> const override</span></div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  <a class="code" href="namespacearmnn.xhtml#a44affeeb090c3c6a3062830562672e84">IgnoreUnused</a>(uid);</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <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>  }</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span> </div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#af55bc6e5233a4720fe8a813db470b06f">Categories</a> m_Categories;</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#a3ff1066867cb9bd3b08338957c414401">Devices</a> m_Devices;</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#acfe20da73b5dc66439a65b49f04f7a21">CounterSets</a> m_CounterSets;</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <a class="code" href="namespacearmnn_1_1profiling.xhtml#aeeb6904ffbae435c8d0a7138427688f4">Counters</a> m_Counters;</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span> };</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span> </div><div class="line"><a name="l00623"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml"> 623</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml">MockProfilingService</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_profiling_service.xhtml">IProfilingService</a>, <span class="keyword">public</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.xhtml">IRegisterCounterMapping</a></div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span> {</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00626"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#ac4fdca7279e346879a29fd8f04cd24be"> 626</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#ac4fdca7279e346879a29fd8f04cd24be">MockProfilingService</a>(<a class="code" href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml">MockBufferManager</a>& mockBufferManager,</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  <span class="keywordtype">bool</span> isProfilingEnabled,</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_capture_data.xhtml">CaptureData</a>& captureData) :</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  m_SendCounterPacket(mockBufferManager),</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  m_IsProfilingEnabled(isProfilingEnabled),</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  m_CaptureData(captureData) {}</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span> <span class="comment"></span></div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span> <span class="comment"> /// Return the next random Guid in the sequence</span></div><div class="line"><a name="l00634"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#aeea32305626f921e1e9f99434dbf9049"> 634</a></span> <span class="comment"></span> <a class="code" href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">ProfilingDynamicGuid</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#aeea32305626f921e1e9f99434dbf9049">NextGuid</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  <span class="keywordflow">return</span> m_GuidGenerator.NextGuid();</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  }</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span> <span class="comment"></span></div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span> <span class="comment"> /// Create a ProfilingStaticGuid based on a hash of the string</span></div><div class="line"><a name="l00640"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#afd19633513acfc3ae294aa90b1e13a04"> 640</a></span> <span class="comment"></span> <a class="code" href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">ProfilingStaticGuid</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#afd19633513acfc3ae294aa90b1e13a04">GenerateStaticId</a>(<span class="keyword">const</span> std::string& str)<span class="keyword"> override</span></div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  <span class="keywordflow">return</span> m_GuidGenerator.GenerateStaticId(str);</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  }</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span> </div><div class="line"><a name="l00645"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a81f774c9319ff5d5b5bf4875e816d989"> 645</a></span>  std::unique_ptr<ISendTimelinePacket> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a81f774c9319ff5d5b5bf4875e816d989">GetSendTimelinePacket</a>()<span class="keyword"> const override</span></div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  }</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span> </div><div class="line"><a name="l00650"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a37bec1c830464c365aa4434edd0de35a"> 650</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1profiling_1_1_i_counter_mappings.xhtml">ICounterMappings</a>& <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a37bec1c830464c365aa4434edd0de35a">GetCounterMappings</a>()<span class="keyword"> const override</span></div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <span class="keywordflow">return</span> m_CounterMapping;</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  }</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span> </div><div class="line"><a name="l00655"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a28c5bcb3adea9e2476255acf1fc0647e"> 655</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_i_send_counter_packet.xhtml">ISendCounterPacket</a>& <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a28c5bcb3adea9e2476255acf1fc0647e">GetSendCounterPacket</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <span class="keywordflow">return</span> m_SendCounterPacket;</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  }</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span> </div><div class="line"><a name="l00660"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a70db5b1cdd0d22c1fa912c6e8b9089ce"> 660</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a70db5b1cdd0d22c1fa912c6e8b9089ce">IsProfilingEnabled</a>()<span class="keyword"> const override</span></div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  <span class="keywordflow">return</span> m_IsProfilingEnabled;</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  }</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span> </div><div class="line"><a name="l00665"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#aff23669159bfc39106dc16d50c0a6e5f"> 665</a></span>  <a class="code" href="classarmnn_1_1profiling_1_1_capture_data.xhtml">CaptureData</a> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#aff23669159bfc39106dc16d50c0a6e5f">GetCaptureData</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  <a class="code" href="classarmnn_1_1profiling_1_1_capture_data.xhtml">CaptureData</a> copy(m_CaptureData);</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  <span class="keywordflow">return</span> copy;</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  }</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span> </div><div class="line"><a name="l00671"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a4c014af62ced747fc2ebbbc312f9845f"> 671</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a4c014af62ced747fc2ebbbc312f9845f">RegisterMapping</a>(uint16_t globalCounterId,</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  uint16_t backendCounterId,</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a>& backendId)<span class="keyword"> override</span></div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  m_CounterMapping.RegisterMapping(globalCounterId, backendCounterId, backendId);</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  }</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span> </div><div class="line"><a name="l00678"></a><span class="lineno"><a class="line" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#af82f4acaed7bb39d568e689a9caa63d5"> 678</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#af82f4acaed7bb39d568e689a9caa63d5">Reset</a>()<span class="keyword"> override</span></div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  m_CounterMapping.Reset();</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  }</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span> </div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  <a class="code" href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">ProfilingGuidGenerator</a> m_GuidGenerator;</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <a class="code" href="classarmnn_1_1profiling_1_1_counter_id_map.xhtml">CounterIdMap</a> m_CounterMapping;</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  <a class="code" href="classarmnn_1_1profiling_1_1_send_counter_packet.xhtml">SendCounterPacket</a> m_SendCounterPacket;</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <span class="keywordtype">bool</span> m_IsProfilingEnabled;</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  <a class="code" href="classarmnn_1_1profiling_1_1_capture_data.xhtml">CaptureData</a> m_CaptureData;</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span> };</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span> </div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span> } <span class="comment">// namespace profiling</span></div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span> </div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span> } <span class="comment">// namespace armnn</span></div><div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_af96ac62d23f06a90b7e36fca3f13367b"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af96ac62d23f06a90b7e36fca3f13367b">armnn::profiling::MockCounterDirectory::GetCounterSet</a></div><div class="ttdeci">const CounterSet * GetCounterSet(uint16_t uid) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00604">ProfilingMocks.hpp:604</a></div></div> |
| 102 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_af82f4acaed7bb39d568e689a9caa63d5"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#af82f4acaed7bb39d568e689a9caa63d5">armnn::profiling::MockProfilingService::Reset</a></div><div class="ttdeci">void Reset() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00678">ProfilingMocks.hpp:678</a></div></div> |
| 103 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_ac3f43b4dd3fafd6b13342acc2263bbb4"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ac3f43b4dd3fafd6b13342acc2263bbb4">armnn::profiling::MockBufferManager::Reserve</a></div><div class="ttdeci">IPacketBufferPtr Reserve(unsigned int requestedSize, unsigned int &reservedSize) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00208">ProfilingMocks.hpp:208</a></div></div> |
| 104 | <div class="ttc" id="_ignore_unused_8hpp_xhtml"><div class="ttname"><a href="_ignore_unused_8hpp.xhtml">IgnoreUnused.hpp</a></div></div> |
| 105 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_add78c1a7dbde9d871b4193345e250d96"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#add78c1a7dbde9d871b4193345e250d96">armnn::profiling::MockStreamCounterBuffer::MockStreamCounterBuffer</a></div><div class="ttdeci">MockStreamCounterBuffer(unsigned int maxBufferSize=4096)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00276">ProfilingMocks.hpp:276</a></div></div> |
| 106 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_register_counter_mapping_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_register_counter_mapping.xhtml">armnn::profiling::IRegisterCounterMapping</a></div><div class="ttdef"><b>Definition:</b> <a href="_counter_id_map_8hpp_source.xhtml#l00023">CounterIdMap.hpp:23</a></div></div> |
| 107 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml">armnn::profiling::MockCounterDirectory</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00439">ProfilingMocks.hpp:439</a></div></div> |
| 108 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_a28c5bcb3adea9e2476255acf1fc0647e"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a28c5bcb3adea9e2476255acf1fc0647e">armnn::profiling::MockProfilingService::GetSendCounterPacket</a></div><div class="ttdeci">ISendCounterPacket & GetSendCounterPacket() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00655">ProfilingMocks.hpp:655</a></div></div> |
| 109 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory.xhtml">armnn::profiling::MockProfilingConnectionFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00160">ProfilingMocks.hpp:160</a></div></div> |
| 110 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_af55b37f13ace15889ce8a0b18dda3ed9"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#af55b37f13ace15889ce8a0b18dda3ed9">armnn::profiling::MockCounterDirectory::GetCategories</a></div><div class="ttdeci">const Categories & GetCategories() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00575">ProfilingMocks.hpp:575</a></div></div> |
| 111 | <div class="ttc" id="classarmnn_1_1_optional_xhtml"><div class="ttname"><a href="classarmnn_1_1_optional.xhtml">armnn::Optional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00270">Optional.hpp:270</a></div></div> |
| 112 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_a81f774c9319ff5d5b5bf4875e816d989"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a81f774c9319ff5d5b5bf4875e816d989">armnn::profiling::MockProfilingService::GetSendTimelinePacket</a></div><div class="ttdeci">std::unique_ptr< ISendTimelinePacket > GetSendTimelinePacket() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00645">ProfilingMocks.hpp:645</a></div></div> |
| 113 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_ac9bdbed464222fa06875096a4f373ca8"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac9bdbed464222fa06875096a4f373ca8">armnn::profiling::MockCounterDirectory::GetDevices</a></div><div class="ttdeci">const Devices & GetDevices() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00576">ProfilingMocks.hpp:576</a></div></div> |
| 114 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_af22fdc7450c285c4d7449425c8fe994f"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#af22fdc7450c285c4d7449425c8fe994f">armnn::profiling::MockStreamCounterBuffer::FlushReadList</a></div><div class="ttdeci">void FlushReadList() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00350">ProfilingMocks.hpp:350</a></div></div> |
| 115 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_ad675ff4e9053375bd41d0aad6b3bbb63"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ad675ff4e9053375bd41d0aad6b3bbb63">armnn::profiling::MockBufferManager::SetConsumer</a></div><div class="ttdeci">void SetConsumer(IConsumer *consumer) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00250">ProfilingMocks.hpp:250</a></div></div> |
| 116 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_send_counter_packet_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml">armnn::profiling::MockSendCounterPacket</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00386">ProfilingMocks.hpp:386</a></div></div> |
| 117 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_abce8709dc1b666a26f427ba7ff08b737"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#abce8709dc1b666a26f427ba7ff08b737">armnn::profiling::MockStreamCounterBuffer::GetReadableBuffer</a></div><div class="ttdeci">IPacketBufferPtr GetReadableBuffer() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00320">ProfilingMocks.hpp:320</a></div></div> |
| 118 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a88183b946cc5f0e8c96b2e66e1c74a7e">armnn::profiling::MockProfilingConnection::PacketType::Unknown</a></div></div> |
| 119 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_aeeb6904ffbae435c8d0a7138427688f4"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#aeeb6904ffbae435c8d0a7138427688f4">armnn::profiling::Counters</a></div><div class="ttdeci">std::unordered_map< uint16_t, CounterPtr > Counters</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00040">ICounterDirectory.hpp:40</a></div></div> |
| 120 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_send_counter_packet_xhtml_a2a2e451c4e4963909b8a6dc7e7653cd1"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a2a2e451c4e4963909b8a6dc7e7653cd1">armnn::profiling::MockSendCounterPacket::SendStreamMetaDataPacket</a></div><div class="ttdeci">void SendStreamMetaDataPacket() override</div><div class="ttdoc">Create and write a StreamMetaDataPacket in the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00391">ProfilingMocks.hpp:391</a></div></div> |
| 121 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_a183eaa37ccd326bd82179bed901c7122"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a183eaa37ccd326bd82179bed901c7122">armnn::profiling::MockStreamCounterBuffer::Commit</a></div><div class="ttdeci">void Commit(IPacketBufferPtr &packetBuffer, unsigned int size, bool notifyConsumer=true) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00299">ProfilingMocks.hpp:299</a></div></div> |
| 122 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a532e27bb0051b56c487ef37d522dcc2b">armnn::profiling::MockProfilingConnection::PacketType::TimelineMessageDirectory</a></div></div> |
| 123 | <div class="ttc" id="classarmnn_1_1profiling_1_1_capture_data_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_capture_data.xhtml">armnn::profiling::CaptureData</a></div><div class="ttdef"><b>Definition:</b> <a href="_holder_8hpp_source.xhtml#l00019">Holder.hpp:19</a></div></div> |
| 124 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_a70db5b1cdd0d22c1fa912c6e8b9089ce"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a70db5b1cdd0d22c1fa912c6e8b9089ce">armnn::profiling::MockProfilingService::IsProfilingEnabled</a></div><div class="ttdeci">bool IsProfilingEnabled() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00660">ProfilingMocks.hpp:660</a></div></div> |
| 125 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_send_counter_packet_xhtml_a3b526a823530443efec886c4305e52de"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a3b526a823530443efec886c4305e52de">armnn::profiling::MockSendCounterPacket::SendCounterDirectoryPacket</a></div><div class="ttdeci">void SendCounterDirectoryPacket(const ICounterDirectory &counterDirectory) override</div><div class="ttdoc">Create and write a CounterDirectoryPacket from the parameters to the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00400">ProfilingMocks.hpp:400</a></div></div> |
| 126 | <div class="ttc" id="structarmnn_1_1profiling_1_1_profiling_dynamic_guid_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_profiling_dynamic_guid.xhtml">armnn::profiling::ProfilingDynamicGuid</a></div><div class="ttdoc">Strongly typed guids to distinguish between those generated at runtime, and those that are statically...</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00294">Types.hpp:294</a></div></div> |
| 127 | <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< Device > DevicePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00032">ICounterDirectory.hpp:32</a></div></div> |
| 128 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml">armnn::profiling::MockProfilingService</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00623">ProfilingMocks.hpp:623</a></div></div> |
| 129 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0ac0b9859e4ac3c476e5cf6bb0c7a70dc5"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ac0b9859e4ac3c476e5cf6bb0c7a70dc5">armnn::profiling::MockProfilingConnection::PacketType::PerJobCounterSelection</a></div></div> |
| 130 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_a0a0b47bcd9b2b00de2c82761705cfd58"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a0a0b47bcd9b2b00de2c82761705cfd58">armnn::profiling::MockStreamCounterBuffer::GetCommittedSize</a></div><div class="ttdeci">unsigned int GetCommittedSize() const</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00359">ProfilingMocks.hpp:359</a></div></div> |
| 131 | <div class="ttc" id="classarmnn_1_1profiling_1_1_category_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_category.xhtml">armnn::profiling::Category</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00048">ICounterDirectory.hpp:48</a></div></div> |
| 132 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_consumer_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_consumer.xhtml">armnn::profiling::IConsumer</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_consumer_8hpp_source.xhtml#l00014">IConsumer.hpp:14</a></div></div> |
| 133 | <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< CounterSet > CounterSetPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00033">ICounterDirectory.hpp:33</a></div></div> |
| 134 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_a6b34b9ef41ff50cf988dde8381fa4f7e"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a6b34b9ef41ff50cf988dde8381fa4f7e">armnn::profiling::MockPacketBuffer::~MockPacketBuffer</a></div><div class="ttdeci">~MockPacketBuffer()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00179">ProfilingMocks.hpp:179</a></div></div> |
| 135 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0aebabc0e295bef3bf6d0d659a4843ebe4"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0aebabc0e295bef3bf6d0d659a4843ebe4">armnn::profiling::MockProfilingConnection::PacketType::PeriodicCounterSelection</a></div></div> |
| 136 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_profiling_connection_factory_xhtml_abb7f442bd7409c8dff2b9346fd67bce3"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_profiling_connection_factory.xhtml#abb7f442bd7409c8dff2b9346fd67bce3">armnn::profiling::IProfilingConnectionFactory::IProfilingConnectionPtr</a></div><div class="ttdeci">std::unique_ptr< IProfilingConnection > IProfilingConnectionPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_profiling_connection_factory_8hpp_source.xhtml#l00024">IProfilingConnectionFactory.hpp:24</a></div></div> |
| 137 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter.xhtml">armnn::profiling::Counter</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00095">ICounterDirectory.hpp:95</a></div></div> |
| 138 | <div class="ttc" id="_send_thread_8hpp_xhtml"><div class="ttname"><a href="_send_thread_8hpp.xhtml">SendThread.hpp</a></div></div> |
| 139 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a372bdcb3088c30e1a5bb38cf4b30d586"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a372bdcb3088c30e1a5bb38cf4b30d586">armnn::profiling::MockProfilingConnection::MockProfilingConnection</a></div><div class="ttdeci">MockProfilingConnection()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00038">ProfilingMocks.hpp:38</a></div></div> |
| 140 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_profiling_connection_factory_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_profiling_connection_factory.xhtml">armnn::profiling::IProfilingConnectionFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_profiling_connection_factory_8hpp_source.xhtml#l00020">IProfilingConnectionFactory.hpp:20</a></div></div> |
| 141 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_adc32d741a992ea6f9af3f9e65aebf34d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#adc32d741a992ea6f9af3f9e65aebf34d">armnn::profiling::MockProfilingConnection::GetWrittenDataSize</a></div><div class="ttdeci">unsigned long GetWrittenDataSize()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00139">ProfilingMocks.hpp:139</a></div></div> |
| 142 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_aa71d36872f416feaa853788a7a7a7ef8"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#aa71d36872f416feaa853788a7a7a7ef8">armnn::profiling::MockProfilingConnection::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00146">ProfilingMocks.hpp:146</a></div></div> |
| 143 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 144 | <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 &&...)</div><div class="ttdef"><b>Definition:</b> <a href="_ignore_unused_8hpp_source.xhtml#l00014">IgnoreUnused.hpp:14</a></div></div> |
| 145 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_aeea32305626f921e1e9f99434dbf9049"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#aeea32305626f921e1e9f99434dbf9049">armnn::profiling::MockProfilingService::NextGuid</a></div><div class="ttdeci">ProfilingDynamicGuid NextGuid() override</div><div class="ttdoc">Return the next random Guid in the sequence. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00634">ProfilingMocks.hpp:634</a></div></div> |
| 146 | <div class="ttc" id="_cl_layer_tests_8cpp_xhtml_a37f1c3ccc9fc906be85185350dd83d48"><div class="ttname"><a href="_cl_layer_tests_8cpp.xhtml#a37f1c3ccc9fc906be85185350dd83d48">true</a></div><div class="ttdeci">DataLayout::NCHW DataLayout::NCHW DataLayout::NHWC DataLayout::NHWC true</div><div class="ttdef"><b>Definition:</b> <a href="_cl_layer_tests_8cpp_source.xhtml#l00202">ClLayerTests.cpp:202</a></div></div> |
| 147 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_a183eaa37ccd326bd82179bed901c7122"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#a183eaa37ccd326bd82179bed901c7122">armnn::profiling::MockBufferManager::Commit</a></div><div class="ttdeci">void Commit(IPacketBufferPtr &packetBuffer, unsigned int size, bool notifyConsumer=true) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00222">ProfilingMocks.hpp:222</a></div></div> |
| 148 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_profiling_service_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_profiling_service.xhtml">armnn::profiling::IProfilingService</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_profiling_service_8hpp_source.xhtml#l00019">IProfilingService.hpp:19</a></div></div> |
| 149 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_send_counter_packet_xhtml_a47406a4d108beb4f20031d370a155a9d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#a47406a4d108beb4f20031d370a155a9d">armnn::profiling::MockSendCounterPacket::SendPeriodicCounterSelectionPacket</a></div><div class="ttdeci">void SendPeriodicCounterSelectionPacket(uint32_t capturePeriod, const std::vector< uint16_t > &selectedCounterIds) override</div><div class="ttdoc">Create and write a PeriodicCounterSelectionPacket from the parameters to the buffer. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00423">ProfilingMocks.hpp:423</a></div></div> |
| 150 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_a226108649851aa1b1a8168560c5228b5"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a226108649851aa1b1a8168560c5228b5">armnn::profiling::MockStreamCounterBuffer::Release</a></div><div class="ttdeci">void Release(IPacketBufferPtr &packetBuffer) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00313">ProfilingMocks.hpp:313</a></div></div> |
| 151 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_acfe20da73b5dc66439a65b49f04f7a21"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#acfe20da73b5dc66439a65b49f04f7a21">armnn::profiling::CounterSets</a></div><div class="ttdeci">std::unordered_map< uint16_t, CounterSetPtr > CounterSets</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00039">ICounterDirectory.hpp:39</a></div></div> |
| 152 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0ae43273a3645f4894a1088081feb9827d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ae43273a3645f4894a1088081feb9827d">armnn::profiling::MockProfilingConnection::PacketType::StreamMetaData</a></div></div> |
| 153 | <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> |
| 154 | <div class="ttc" id="_profiling_guid_generator_8hpp_xhtml"><div class="ttname"><a href="_profiling_guid_generator_8hpp.xhtml">ProfilingGuidGenerator.hpp</a></div></div> |
| 155 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_a130d8f6cbda6d299aeb355d4abcc5f95"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a130d8f6cbda6d299aeb355d4abcc5f95">armnn::profiling::MockCounterDirectory::RegisterCounter</a></div><div class="ttdeci">const Counter * RegisterCounter(const BackendId &backendId, const uint16_t uid, const std::string &parentCategoryName, uint16_t counterClass, uint16_t interpolation, double multiplier, const std::string &name, const std::string &description, const armnn::Optional< std::string > &units=armnn::EmptyOptional(), const armnn::Optional< uint16_t > &numberOfCores=armnn::EmptyOptional(), const armnn::Optional< uint16_t > &deviceUid=armnn::EmptyOptional(), const armnn::Optional< uint16_t > &counterSetUid=armnn::EmptyOptional())</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00503">ProfilingMocks.hpp:503</a></div></div> |
| 156 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0">armnn::profiling::MockProfilingConnection::PacketType</a></div><div class="ttdeci">PacketType</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00044">ProfilingMocks.hpp:44</a></div></div> |
| 157 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_ae717263b3243e9f88f4caea6d31b0652"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ae717263b3243e9f88f4caea6d31b0652">armnn::profiling::MockStreamCounterBuffer::MarkRead</a></div><div class="ttdeci">void MarkRead(IPacketBufferPtr &packetBuffer) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00334">ProfilingMocks.hpp:334</a></div></div> |
| 158 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_a4626db62503c13042a745a40399f8317"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a4626db62503c13042a745a40399f8317">armnn::profiling::MockCounterDirectory::GetCategoryCount</a></div><div class="ttdeci">uint16_t GetCategoryCount() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00569">ProfilingMocks.hpp:569</a></div></div> |
| 159 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options_1_1_external_profiling_options.xhtml">armnn::IRuntime::CreationOptions::ExternalProfilingOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00060">IRuntime.hpp:60</a></div></div> |
| 160 | <div class="ttc" id="namespacestd_xhtml"><div class="ttname"><a href="namespacestd.xhtml">std</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00147">BackendId.hpp:147</a></div></div> |
| 161 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_afedc435235efffdfab1fb0670f52d7c1"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#afedc435235efffdfab1fb0670f52d7c1">armnn::profiling::MockPacketBuffer::GetWritableData</a></div><div class="ttdeci">unsigned char * GetWritableData() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00191">ProfilingMocks.hpp:191</a></div></div> |
| 162 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_ae717263b3243e9f88f4caea6d31b0652"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ae717263b3243e9f88f4caea6d31b0652">armnn::profiling::MockBufferManager::MarkRead</a></div><div class="ttdeci">void MarkRead(IPacketBufferPtr &packetBuffer) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00244">ProfilingMocks.hpp:244</a></div></div> |
| 163 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_a9a7614d7b084e33f72045ed161eb95bc"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a9a7614d7b084e33f72045ed161eb95bc">armnn::profiling::MockPacketBuffer::GetReadableData</a></div><div class="ttdeci">const unsigned char * GetReadableData() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00181">ProfilingMocks.hpp:181</a></div></div> |
| 164 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0f9aecd570c4e5e6d41337f0e2f1adf5"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0f9aecd570c4e5e6d41337f0e2f1adf5">armnn::profiling::MockProfilingConnection::Close</a></div><div class="ttdeci">void Close() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00064">ProfilingMocks.hpp:64</a></div></div> |
| 165 | <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< Counter > CounterPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00034">ICounterDirectory.hpp:34</a></div></div> |
| 166 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_afcb72c4151fd72abfffcb7dae0ed2817"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#afcb72c4151fd72abfffcb7dae0ed2817">armnn::profiling::MockCounterDirectory::GetCounterSets</a></div><div class="ttdeci">const CounterSets & GetCounterSets() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00577">ProfilingMocks.hpp:577</a></div></div> |
| 167 | <div class="ttc" id="_optional_8hpp_xhtml"><div class="ttname"><a href="_optional_8hpp.xhtml">Optional.hpp</a></div></div> |
| 168 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_a37bec1c830464c365aa4434edd0de35a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a37bec1c830464c365aa4434edd0de35a">armnn::profiling::MockProfilingService::GetCounterMappings</a></div><div class="ttdeci">const ICounterMappings & GetCounterMappings() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00650">ProfilingMocks.hpp:650</a></div></div> |
| 169 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_a1819a5a244fd4317b6dcd49cdbf67a2d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a1819a5a244fd4317b6dcd49cdbf67a2d">armnn::profiling::MockCounterDirectory::RegisterDevice</a></div><div class="ttdeci">const Device * RegisterDevice(const std::string &deviceName, uint16_t cores=0)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00462">ProfilingMocks.hpp:462</a></div></div> |
| 170 | <div class="ttc" id="structarmnn_1_1profiling_1_1_profiling_static_guid_xhtml"><div class="ttname"><a href="structarmnn_1_1profiling_1_1_profiling_static_guid.xhtml">armnn::profiling::ProfilingStaticGuid</a></div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00299">Types.hpp:299</a></div></div> |
| 171 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_ab158e7cd554e5f65e77bad0c4d448474"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ab158e7cd554e5f65e77bad0c4d448474">armnn::profiling::MockStreamCounterBuffer::GetReadableSize</a></div><div class="ttdeci">unsigned int GetReadableSize() const</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00360">ProfilingMocks.hpp:360</a></div></div> |
| 172 | <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< uint16_t > 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> |
| 173 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_packet_buffer_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_packet_buffer.xhtml">armnn::profiling::IPacketBuffer</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_packet_buffer_8hpp_source.xhtml#l00028">IPacketBuffer.hpp:28</a></div></div> |
| 174 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_abce8709dc1b666a26f427ba7ff08b737"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#abce8709dc1b666a26f427ba7ff08b737">armnn::profiling::MockBufferManager::GetReadableBuffer</a></div><div class="ttdeci">IPacketBufferPtr GetReadableBuffer() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00233">ProfilingMocks.hpp:233</a></div></div> |
| 175 | <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 &name) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00581">ProfilingMocks.hpp:581</a></div></div> |
| 176 | <div class="ttc" id="_i_profiling_connection_factory_8hpp_xhtml"><div class="ttname"><a href="_i_profiling_connection_factory_8hpp.xhtml">IProfilingConnectionFactory.hpp</a></div></div> |
| 177 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_ab03338cef0f6b48d46effb2c2a64407d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#ab03338cef0f6b48d46effb2c2a64407d">armnn::profiling::MockPacketBuffer::GetSize</a></div><div class="ttdeci">unsigned int GetSize() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00183">ProfilingMocks.hpp:183</a></div></div> |
| 178 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a4952ebb7930976133a3520fb113f77b7">armnn::profiling::MockProfilingConnection::PacketType::PeriodicCounterCapture</a></div></div> |
| 179 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml">armnn::profiling::MockStreamCounterBuffer</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00273">ProfilingMocks.hpp:273</a></div></div> |
| 180 | <div class="ttc" id="classarmnn_1_1profiling_1_1_packet_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_packet.xhtml">armnn::profiling::Packet</a></div><div class="ttdef"><b>Definition:</b> <a href="_packet_8hpp_source.xhtml#l00018">Packet.hpp:18</a></div></div> |
| 181 | <div class="ttc" id="classarmnn_1_1profiling_1_1_device_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_device.xhtml">armnn::profiling::Device</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00063">ICounterDirectory.hpp:63</a></div></div> |
| 182 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_afd19633513acfc3ae294aa90b1e13a04"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#afd19633513acfc3ae294aa90b1e13a04">armnn::profiling::MockProfilingService::GenerateStaticId</a></div><div class="ttdeci">ProfilingStaticGuid GenerateStaticId(const std::string &str) override</div><div class="ttdoc">Create a ProfilingStaticGuid based on a hash of the string. </div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00640">ProfilingMocks.hpp:640</a></div></div> |
| 183 | <div class="ttc" id="namespacearmnn_xhtml_a37fa39012e90d568df7f774cd6d1e956"><div class="ttname"><a href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">armnn::numeric_cast</a></div><div class="ttdeci">std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)</div><div class="ttdef"><b>Definition:</b> <a href="_numeric_cast_8hpp_source.xhtml#l00033">NumericCast.hpp:33</a></div></div> |
| 184 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_ac44342ac08725d8f5dd52e2ee93ca20d"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ac44342ac08725d8f5dd52e2ee93ca20d">armnn::profiling::MockCounterDirectory::RegisterCategory</a></div><div class="ttdeci">const Category * RegisterCategory(const std::string &categoryName)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00446">ProfilingMocks.hpp:446</a></div></div> |
| 185 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0a79bb5b82761f89b8d72b4c79a9511c54"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0a79bb5b82761f89b8d72b4c79a9511c54">armnn::profiling::MockProfilingConnection::PacketType::ReqCounterDirectory</a></div></div> |
| 186 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_ab2aecc9a0ed092f50b752d30a40bb31a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ab2aecc9a0ed092f50b752d30a40bb31a">armnn::profiling::MockCounterDirectory::GetCounter</a></div><div class="ttdeci">const Counter * GetCounter(uint16_t uid) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00610">ProfilingMocks.hpp:610</a></div></div> |
| 187 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_send_counter_packet_xhtml_ac9261c6ee7d313090d15cfa22173d80c"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#ac9261c6ee7d313090d15cfa22173d80c">armnn::profiling::MockSendCounterPacket::SendPeriodicCounterCapturePacket</a></div><div class="ttdeci">void SendPeriodicCounterCapturePacket(uint64_t timestamp, const std::vector< CounterValue > &values) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00411">ProfilingMocks.hpp:411</a></div></div> |
| 188 | <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.xhtml">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00080">Exceptions.hpp:80</a></div></div> |
| 189 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_ad9062caad1836f8e6b810e4e97bb19d1"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad9062caad1836f8e6b810e4e97bb19d1">armnn::profiling::MockCounterDirectory::GetCounterCount</a></div><div class="ttdeci">uint16_t GetCounterCount() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00572">ProfilingMocks.hpp:572</a></div></div> |
| 190 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_send_counter_packet_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_send_counter_packet.xhtml">armnn::profiling::ISendCounterPacket</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_send_counter_packet_8hpp_source.xhtml#l00017">ISendCounterPacket.hpp:17</a></div></div> |
| 191 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_a7e55485c728365ea5d8bd9968cf45356"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a7e55485c728365ea5d8bd9968cf45356">armnn::profiling::MockStreamCounterBuffer::~MockStreamCounterBuffer</a></div><div class="ttdeci">~MockStreamCounterBuffer()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00283">ProfilingMocks.hpp:283</a></div></div> |
| 192 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_ad56f4c3ea5e88279bb6ef1f31d9dc6df"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#ad56f4c3ea5e88279bb6ef1f31d9dc6df">armnn::profiling::ReadUint32</a></div><div class="ttdeci">uint32_t ReadUint32(const IPacketBufferPtr &packetBuffer, unsigned int offset)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_utils_8cpp_source.xhtml#l00204">ProfilingUtils.cpp:204</a></div></div> |
| 193 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_ae3b7dbaa7317dacbcec25f30f6a16075"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae3b7dbaa7317dacbcec25f30f6a16075">armnn::profiling::MockCounterDirectory::GetCounterSetCount</a></div><div class="ttdeci">uint16_t GetCounterSetCount() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00571">ProfilingMocks.hpp:571</a></div></div> |
| 194 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml">armnn::profiling::MockProfilingConnection</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00035">ProfilingMocks.hpp:35</a></div></div> |
| 195 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_af55bc6e5233a4720fe8a813db470b06f"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#af55bc6e5233a4720fe8a813db470b06f">armnn::profiling::Categories</a></div><div class="ttdeci">std::unordered_set< CategoryPtr > Categories</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00037">ICounterDirectory.hpp:37</a></div></div> |
| 196 | <div class="ttc" id="_holder_8hpp_xhtml"><div class="ttname"><a href="_holder_8hpp.xhtml">Holder.hpp</a></div></div> |
| 197 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a4ae3f922dfaad569006a2fc2cc12b3a6"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a4ae3f922dfaad569006a2fc2cc12b3a6">armnn::profiling::MockProfilingConnection::WritePacket</a></div><div class="ttdeci">bool WritePacket(Packet &&packet)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00121">ProfilingMocks.hpp:121</a></div></div> |
| 198 | <div class="ttc" id="classarmnn_1_1profiling_1_1_category_xhtml_a12c62f88426b5fe466446040d9dc80af"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_category.xhtml#a12c62f88426b5fe466446040d9dc80af">armnn::profiling::Category::m_Counters</a></div><div class="ttdeci">std::vector< uint16_t > m_Counters</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00060">ICounterDirectory.hpp:60</a></div></div> |
| 199 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_ae8b885e4225f3b0976f22ae8bc94f52a"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ae8b885e4225f3b0976f22ae8bc94f52a">armnn::profiling::MockBufferManager::~MockBufferManager</a></div><div class="ttdeci">~MockBufferManager()</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00206">ProfilingMocks.hpp:206</a></div></div> |
| 200 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0ad2cacb6bc37a3363ae810b656e3b6190"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ad2cacb6bc37a3363ae810b656e3b6190">armnn::profiling::MockProfilingConnection::PacketType::CounterDirectory</a></div></div> |
| 201 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_af22fdc7450c285c4d7449425c8fe994f"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#af22fdc7450c285c4d7449425c8fe994f">armnn::profiling::MockBufferManager::FlushReadList</a></div><div class="ttdeci">void FlushReadList() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00258">ProfilingMocks.hpp:258</a></div></div> |
| 202 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a1adbda8257d3a74a0566e0d8407ff458"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a1adbda8257d3a74a0566e0d8407ff458">armnn::profiling::MockProfilingConnection::ReadPacket</a></div><div class="ttdeci">Packet ReadPacket(uint32_t timeout) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00129">ProfilingMocks.hpp:129</a></div></div> |
| 203 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_ac29af30972ae62351f87a669e2c8940f"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#ac29af30972ae62351f87a669e2c8940f">armnn::profiling::MockBufferManager::MockBufferManager</a></div><div class="ttdeci">MockBufferManager(unsigned int size)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00202">ProfilingMocks.hpp:202</a></div></div> |
| 204 | <div class="ttc" id="structarmnn_1_1_empty_optional_xhtml"><div class="ttname"><a href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a></div><div class="ttdoc">EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.xhtml#l00032">Optional.hpp:32</a></div></div> |
| 205 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_a6d7f92b987338cab6cbfbad8d53a9738"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a6d7f92b987338cab6cbfbad8d53a9738">armnn::profiling::MockCounterDirectory::GetCounters</a></div><div class="ttdeci">const Counters & GetCounters() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00578">ProfilingMocks.hpp:578</a></div></div> |
| 206 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_aff23669159bfc39106dc16d50c0a6e5f"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#aff23669159bfc39106dc16d50c0a6e5f">armnn::profiling::MockProfilingService::GetCaptureData</a></div><div class="ttdeci">CaptureData GetCaptureData() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00665">ProfilingMocks.hpp:665</a></div></div> |
| 207 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_profiling_connection_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_profiling_connection.xhtml">armnn::profiling::IProfilingConnection</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_profiling_connection_8hpp_source.xhtml#l00018">IProfilingConnection.hpp:18</a></div></div> |
| 208 | <div class="ttc" id="classarmnn_1_1profiling_1_1_send_counter_packet_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_send_counter_packet.xhtml">armnn::profiling::SendCounterPacket</a></div><div class="ttdef"><b>Definition:</b> <a href="_send_counter_packet_8hpp_source.xhtml#l00021">SendCounterPacket.hpp:21</a></div></div> |
| 209 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_aa630bd4c9ada8ab204fbb42651b10613"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#aa630bd4c9ada8ab204fbb42651b10613">armnn::profiling::MockPacketBuffer::MarkRead</a></div><div class="ttdeci">void MarkRead() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00185">ProfilingMocks.hpp:185</a></div></div> |
| 210 | <div class="ttc" id="_exceptions_8hpp_xhtml"><div class="ttname"><a href="_exceptions_8hpp.xhtml">Exceptions.hpp</a></div></div> |
| 211 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_ae589e488b5420a2e680c1652072861e8"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#ae589e488b5420a2e680c1652072861e8">armnn::profiling::MockPacketBuffer::MockPacketBuffer</a></div><div class="ttdeci">MockPacketBuffer(unsigned int maxSize)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00173">ProfilingMocks.hpp:173</a></div></div> |
| 212 | <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< Category > CategoryPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00031">ICounterDirectory.hpp:31</a></div></div> |
| 213 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a42eb542b5a1d73d00c4ce474140bb78c"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a42eb542b5a1d73d00c4ce474140bb78c">armnn::profiling::MockProfilingConnection::WritePacket</a></div><div class="ttdeci">bool WritePacket(const unsigned char *buffer, uint32_t length) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00071">ProfilingMocks.hpp:71</a></div></div> |
| 214 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_a1a5dddc8911f6189f9ca01394c59faaf"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a1a5dddc8911f6189f9ca01394c59faaf">armnn::profiling::MockPacketBuffer::Release</a></div><div class="ttdeci">void Release() override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00189">ProfilingMocks.hpp:189</a></div></div> |
| 215 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_ae0d8bd45562c0887985b1be728640bbc"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ae0d8bd45562c0887985b1be728640bbc">armnn::profiling::MockCounterDirectory::RegisterCounterSet</a></div><div class="ttdeci">const CounterSet * RegisterCounterSet(const std::string &counterSetName, uint16_t count=0)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00482">ProfilingMocks.hpp:482</a></div></div> |
| 216 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a1de32cbfa025fc6e4eb2ff7a4fd16d6b"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a1de32cbfa025fc6e4eb2ff7a4fd16d6b">armnn::profiling::MockProfilingConnection::CheckForPacket</a></div><div class="ttdeci">long CheckForPacket(const std::pair< PacketType, uint32_t > packetInfo)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00106">ProfilingMocks.hpp:106</a></div></div> |
| 217 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_a5fa9a7091e79fb9c5c0af5f663c71df1"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#a5fa9a7091e79fb9c5c0af5f663c71df1">armnn::profiling::MockCounterDirectory::GetDevice</a></div><div class="ttdeci">const Device * GetDevice(uint16_t uid) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00598">ProfilingMocks.hpp:598</a></div></div> |
| 218 | <div class="ttc" id="classarmnn_1_1profiling_1_1_profiling_guid_generator_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_profiling_guid_generator.xhtml">armnn::profiling::ProfilingGuidGenerator</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_guid_generator_8hpp_source.xhtml#l00018">ProfilingGuidGenerator.hpp:18</a></div></div> |
| 219 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_buffer_manager_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_buffer_manager.xhtml">armnn::profiling::IBufferManager</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_buffer_manager_8hpp_source.xhtml#l00021">IBufferManager.hpp:21</a></div></div> |
| 220 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a3ff1066867cb9bd3b08338957c414401"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a3ff1066867cb9bd3b08338957c414401">armnn::profiling::Devices</a></div><div class="ttdeci">std::unordered_map< uint16_t, DevicePtr > Devices</div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00038">ICounterDirectory.hpp:38</a></div></div> |
| 221 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a91bdc9d5497d47f5d707418beb83b140"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a91bdc9d5497d47f5d707418beb83b140">armnn::profiling::MockProfilingConnection::IsOpen</a></div><div class="ttdeci">bool IsOpen() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00057">ProfilingMocks.hpp:57</a></div></div> |
| 222 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_id_map_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter_id_map.xhtml">armnn::profiling::CounterIdMap</a></div><div class="ttdef"><b>Definition:</b> <a href="_counter_id_map_8hpp_source.xhtml#l00033">CounterIdMap.hpp:33</a></div></div> |
| 223 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_ad675ff4e9053375bd41d0aad6b3bbb63"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ad675ff4e9053375bd41d0aad6b3bbb63">armnn::profiling::MockStreamCounterBuffer::SetConsumer</a></div><div class="ttdeci">void SetConsumer(IConsumer *consumer) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00342">ProfilingMocks.hpp:342</a></div></div> |
| 224 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a6560146509197f3e197d8d36f76c1347"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a></div><div class="ttdeci">armnn::Runtime::CreationOptions::ExternalProfilingOptions options</div><div class="ttdef"><b>Definition:</b> <a href="_file_only_profiling_decorator_tests_8cpp_source.xhtml#l00045">FileOnlyProfilingDecoratorTests.cpp:45</a></div></div> |
| 225 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory_xhtml_a7b486986bc169a2c637e6c49cb3dfe73"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection_factory.xhtml#a7b486986bc169a2c637e6c49cb3dfe73">armnn::profiling::MockProfilingConnectionFactory::GetProfilingConnection</a></div><div class="ttdeci">IProfilingConnectionPtr GetProfilingConnection(const ExternalProfilingOptions &options) const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00163">ProfilingMocks.hpp:163</a></div></div> |
| 226 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml">armnn::profiling::MockPacketBuffer</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00170">ProfilingMocks.hpp:170</a></div></div> |
| 227 | <div class="ttc" id="classarmnn_1_1profiling_1_1_counter_set_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_counter_set.xhtml">armnn::profiling::CounterSet</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00079">ICounterDirectory.hpp:79</a></div></div> |
| 228 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_ac4fdca7279e346879a29fd8f04cd24be"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#ac4fdca7279e346879a29fd8f04cd24be">armnn::profiling::MockProfilingService::MockProfilingService</a></div><div class="ttdeci">MockProfilingService(MockBufferManager &mockBufferManager, bool isProfilingEnabled, const CaptureData &captureData)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00626">ProfilingMocks.hpp:626</a></div></div> |
| 229 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_directory_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_directory.xhtml">armnn::profiling::ICounterDirectory</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_counter_directory_8hpp_source.xhtml#l00139">ICounterDirectory.hpp:139</a></div></div> |
| 230 | <div class="ttc" id="_conversion_8hpp_xhtml"><div class="ttname"><a href="_conversion_8hpp.xhtml">Conversion.hpp</a></div></div> |
| 231 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml_a226108649851aa1b1a8168560c5228b5"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml#a226108649851aa1b1a8168560c5228b5">armnn::profiling::MockBufferManager::Release</a></div><div class="ttdeci">void Release(IPacketBufferPtr &packetBuffer) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00238">ProfilingMocks.hpp:238</a></div></div> |
| 232 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_service_xhtml_a4c014af62ced747fc2ebbbc312f9845f"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_service.xhtml#a4c014af62ced747fc2ebbbc312f9845f">armnn::profiling::MockProfilingService::RegisterMapping</a></div><div class="ttdeci">void RegisterMapping(uint16_t globalCounterId, uint16_t backendCounterId, const armnn::BackendId &backendId) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00671">ProfilingMocks.hpp:671</a></div></div> |
| 233 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_a7233f6a0ab843a226dc07c72edd76168"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#a7233f6a0ab843a226dc07c72edd76168">armnn::profiling::MockStreamCounterBuffer::GetReadSize</a></div><div class="ttdeci">unsigned int GetReadSize() const</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00361">ProfilingMocks.hpp:361</a></div></div> |
| 234 | <div class="ttc" id="namespacearmnn_1_1profiling_xhtml_a14328d977cec3abadcfd5935f04f3409"><div class="ttname"><a href="namespacearmnn_1_1profiling.xhtml#a14328d977cec3abadcfd5935f04f3409">armnn::profiling::IPacketBufferPtr</a></div><div class="ttdeci">std::unique_ptr< IPacketBuffer > IPacketBufferPtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_packet_buffer_8hpp_source.xhtml#l00040">IPacketBuffer.hpp:40</a></div></div> |
| 235 | <div class="ttc" id="_i_profiling_service_8hpp_xhtml"><div class="ttname"><a href="_i_profiling_service_8hpp.xhtml">IProfilingService.hpp</a></div></div> |
| 236 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer_xhtml_ac3f43b4dd3fafd6b13342acc2263bbb4"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_stream_counter_buffer.xhtml#ac3f43b4dd3fafd6b13342acc2263bbb4">armnn::profiling::MockStreamCounterBuffer::Reserve</a></div><div class="ttdeci">IPacketBufferPtr Reserve(unsigned int requestedSize, unsigned int &reservedSize) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00285">ProfilingMocks.hpp:285</a></div></div> |
| 237 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_send_counter_packet_xhtml_aff0340dbcc0881b2c7477565034cb956"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_send_counter_packet.xhtml#aff0340dbcc0881b2c7477565034cb956">armnn::profiling::MockSendCounterPacket::MockSendCounterPacket</a></div><div class="ttdeci">MockSendCounterPacket(IBufferManager &sendBuffer)</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00389">ProfilingMocks.hpp:389</a></div></div> |
| 238 | <div class="ttc" id="classarmnn_1_1profiling_1_1_i_counter_mappings_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_i_counter_mappings.xhtml">armnn::profiling::ICounterMappings</a></div><div class="ttdef"><b>Definition:</b> <a href="_counter_id_map_8hpp_source.xhtml#l00015">CounterIdMap.hpp:15</a></div></div> |
| 239 | <div class="ttc" id="_profiling_utils_8hpp_xhtml"><div class="ttname"><a href="_profiling_utils_8hpp.xhtml">ProfilingUtils.hpp</a></div></div> |
| 240 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_buffer_manager_xhtml"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_buffer_manager.xhtml">armnn::profiling::MockBufferManager</a></div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00199">ProfilingMocks.hpp:199</a></div></div> |
| 241 | <div class="ttc" id="_send_counter_packet_8hpp_xhtml"><div class="ttname"><a href="_send_counter_packet_8hpp.xhtml">SendCounterPacket.hpp</a></div></div> |
| 242 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_counter_directory_xhtml_ad742b37bc2beb568e083225f3fd8160b"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_counter_directory.xhtml#ad742b37bc2beb568e083225f3fd8160b">armnn::profiling::MockCounterDirectory::GetDeviceCount</a></div><div class="ttdeci">uint16_t GetDeviceCount() const override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00570">ProfilingMocks.hpp:570</a></div></div> |
| 243 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_profiling_connection_xhtml_a0a80a7bc045affcf10846075b88cbca0ab9eaea43754be09188f3b4d2e20f6c95"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_profiling_connection.xhtml#a0a80a7bc045affcf10846075b88cbca0ab9eaea43754be09188f3b4d2e20f6c95">armnn::profiling::MockProfilingConnection::PacketType::ConnectionAcknowledge</a></div></div> |
| 244 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 245 | <div class="ttc" id="classarmnn_1_1profiling_1_1_mock_packet_buffer_xhtml_a1d7238f289009294f40b0b2bcb8d594f"><div class="ttname"><a href="classarmnn_1_1profiling_1_1_mock_packet_buffer.xhtml#a1d7238f289009294f40b0b2bcb8d594f">armnn::profiling::MockPacketBuffer::Commit</a></div><div class="ttdeci">void Commit(unsigned int size) override</div><div class="ttdef"><b>Definition:</b> <a href="_profiling_mocks_8hpp_source.xhtml#l00187">ProfilingMocks.hpp:187</a></div></div> |
| 246 | </div><!-- fragment --></div><!-- contents --> |
| 247 | </div><!-- doc-content --> |
| 248 | <!-- start footer part --> |
| 249 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 250 | <ul> |
| 251 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_637c692f14729569dd2eac0c18e2a54a.xhtml">profiling</a></li><li class="navelem"><a class="el" href="dir_6b1198f6e738611120ec65b09506d2f8.xhtml">test</a></li><li class="navelem"><a class="el" href="_profiling_mocks_8hpp.xhtml">ProfilingMocks.hpp</a></li> |
| 252 | <li class="footer">Generated on Fri Mar 13 2020 16:09:13 for ArmNN by |
| 253 | <a href="http://www.doxygen.org/index.html"> |
| 254 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 255 | </ul> |
| 256 | </div> |
| 257 | </body> |
| 258 | </html> |