1 <!-- HTML header for doxygen 1.8.9.1-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.6"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>Compute Library: MaliCounter Class Reference</title>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <script type="text/javascript" src="jquery.js"></script>
12 <script type="text/javascript" src="dynsections.js"></script>
13 <link href="navtree.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="resize.js"></script>
15 <script type="text/javascript" src="navtree.js"></script>
16 <script type="text/javascript">
17 $(document).ready(initResizable);
18 $(window).load(resizeHeight);
20 <link href="search/search.css" rel="stylesheet" type="text/css"/>
21 <script type="text/javascript" src="search/search.js"></script>
22 <script type="text/javascript">
23 $(document).ready(function() { searchBox.OnSelectItem(0); });
25 <script type="text/x-mathjax-config">
27 extensions: ["tex2jax.js"],
28 jax: ["input/TeX","output/HTML-CSS"],
30 </script><script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
31 <link href="doxygen.css" rel="stylesheet" type="text/css" />
34 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
36 <table cellspacing="0" cellpadding="0">
38 <tr style="height: 56px;">
39 <td style="padding-left: 0.5em;">
40 <div id="projectname">Compute Library
41  <span id="projectnumber">17.10</span>
48 <!-- end header part -->
49 <!-- Generated by Doxygen 1.8.6 -->
50 <script type="text/javascript">
51 var searchBox = new SearchBox("searchBox", "search",false,'Search');
53 <div id="navrow1" class="tabs">
55 <li><a href="index.xhtml"><span>Main Page</span></a></li>
56 <li><a href="pages.xhtml"><span>Related Pages</span></a></li>
57 <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
58 <li class="current"><a href="annotated.xhtml"><span>Data Structures</span></a></li>
59 <li><a href="files.xhtml"><span>Files</span></a></li>
61 <div id="MSearchBox" class="MSearchBoxInactive">
63 <img id="MSearchSelect" src="search/mag_sel.png"
64 onmouseover="return searchBox.OnSearchSelectShow()"
65 onmouseout="return searchBox.OnSearchSelectHide()"
67 <input type="text" id="MSearchField" value="Search" accesskey="S"
68 onfocus="searchBox.OnSearchFieldFocus(true)"
69 onblur="searchBox.OnSearchFieldFocus(false)"
70 onkeyup="searchBox.OnSearchFieldChange(event)"/>
71 </span><span class="right">
72 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
78 <div id="navrow2" class="tabs2">
80 <li><a href="annotated.xhtml"><span>Data Structures</span></a></li>
81 <li><a href="classes.xhtml"><span>Data Structure Index</span></a></li>
82 <li><a href="inherits.xhtml"><span>Class Hierarchy</span></a></li>
83 <li><a href="functions.xhtml"><span>Data Fields</span></a></li>
87 <div id="side-nav" class="ui-resizable side-nav-resizable">
89 <div id="nav-tree-contents">
90 <div id="nav-sync" class="sync"></div>
93 <div id="splitbar" style="-moz-user-select:none;"
94 class="ui-resizable-handle">
97 <script type="text/javascript">
98 $(document).ready(function(){initNavTree('classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml','');});
100 <div id="doc-content">
101 <!-- window showing the filter options -->
102 <div id="MSearchSelectWindow"
103 onmouseover="return searchBox.OnSearchSelectShow()"
104 onmouseout="return searchBox.OnSearchSelectHide()"
105 onkeydown="return searchBox.OnSearchSelectKey(event)">
106 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div>
108 <!-- iframe showing the search results (closed by default) -->
109 <div id="MSearchResultsWindow">
110 <iframe src="javascript:void(0)" frameborder="0"
111 name="MSearchResults" id="MSearchResults">
116 <div class="summary">
117 <a href="#nested-classes">Data Structures</a> |
118 <a href="#pub-methods">Public Member Functions</a> </div>
119 <div class="headertitle">
120 <div class="title">MaliCounter Class Reference</div> </div>
122 <div class="contents">
124 <p><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml" title="Interface for classes that can be used to measure performance. ">Instrument</a> implementation for mali hw counters.
125 <a href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#details">More...</a></p>
127 <p><code>#include <<a class="el" href="_mali_counter_8h_source.xhtml">MaliCounter.h</a>></code></p>
128 <div class="dynheader">
129 Collaboration diagram for MaliCounter:</div>
130 <div class="dyncontent">
131 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1test_1_1framework_1_1_mali_counter__coll__graph.svg" width="103" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
133 <center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
134 <table class="memberdecls">
135 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
136 Public Member Functions</h2></td></tr>
137 <tr class="memitem:a17bcc07902788df6407481fd5bcd2ec8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a17bcc07902788df6407481fd5bcd2ec8">MaliCounter</a> ()</td></tr>
138 <tr class="memdesc:a17bcc07902788df6407481fd5bcd2ec8"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a17bcc07902788df6407481fd5bcd2ec8">More...</a><br/></td></tr>
139 <tr class="separator:a17bcc07902788df6407481fd5bcd2ec8"><td class="memSeparator" colspan="2"> </td></tr>
140 <tr class="memitem:ae5c70ca71b4046301e066696c17174e0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#ae5c70ca71b4046301e066696c17174e0">MaliCounter</a> (const <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> &)=delete</td></tr>
141 <tr class="separator:ae5c70ca71b4046301e066696c17174e0"><td class="memSeparator" colspan="2"> </td></tr>
142 <tr class="memitem:a6a1582aa0e3a2791a9e3a00d3001d66e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a6a1582aa0e3a2791a9e3a00d3001d66e">operator=</a> (const <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> &)=delete</td></tr>
143 <tr class="separator:a6a1582aa0e3a2791a9e3a00d3001d66e"><td class="memSeparator" colspan="2"> </td></tr>
144 <tr class="memitem:a87ac9e6ba4855e29fc0f94dc2765daf7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a87ac9e6ba4855e29fc0f94dc2765daf7">~MaliCounter</a> ()</td></tr>
145 <tr class="memdesc:a87ac9e6ba4855e29fc0f94dc2765daf7"><td class="mdescLeft"> </td><td class="mdescRight">Default destructor. <a href="#a87ac9e6ba4855e29fc0f94dc2765daf7">More...</a><br/></td></tr>
146 <tr class="separator:a87ac9e6ba4855e29fc0f94dc2765daf7"><td class="memSeparator" colspan="2"> </td></tr>
147 <tr class="memitem:a501ef37fef441a0a6a8ea8b8e30a7181"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a501ef37fef441a0a6a8ea8b8e30a7181">id</a> () const override</td></tr>
148 <tr class="memdesc:a501ef37fef441a0a6a8ea8b8e30a7181"><td class="mdescLeft"> </td><td class="mdescRight">Identifier for the instrument. <a href="#a501ef37fef441a0a6a8ea8b8e30a7181">More...</a><br/></td></tr>
149 <tr class="separator:a501ef37fef441a0a6a8ea8b8e30a7181"><td class="memSeparator" colspan="2"> </td></tr>
150 <tr class="memitem:a5d5d9ebd12cd3a7d268bc98a3fc7bf97"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a5d5d9ebd12cd3a7d268bc98a3fc7bf97">start</a> () override</td></tr>
151 <tr class="memdesc:a5d5d9ebd12cd3a7d268bc98a3fc7bf97"><td class="mdescLeft"> </td><td class="mdescRight">Start measuring. <a href="#a5d5d9ebd12cd3a7d268bc98a3fc7bf97">More...</a><br/></td></tr>
152 <tr class="separator:a5d5d9ebd12cd3a7d268bc98a3fc7bf97"><td class="memSeparator" colspan="2"> </td></tr>
153 <tr class="memitem:ab3536e22848ce87b16a9b96d6d824d45"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#ab3536e22848ce87b16a9b96d6d824d45">stop</a> () override</td></tr>
154 <tr class="memdesc:ab3536e22848ce87b16a9b96d6d824d45"><td class="mdescLeft"> </td><td class="mdescRight">Stop measuring. <a href="#ab3536e22848ce87b16a9b96d6d824d45">More...</a><br/></td></tr>
155 <tr class="separator:ab3536e22848ce87b16a9b96d6d824d45"><td class="memSeparator" colspan="2"> </td></tr>
156 <tr class="memitem:a73cabccc9d4406bf48f1db033dc35005"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#afc7df496e6026b91c3f48da6821c86a9">MeasurementsMap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a73cabccc9d4406bf48f1db033dc35005">measurements</a> () const override</td></tr>
157 <tr class="memdesc:a73cabccc9d4406bf48f1db033dc35005"><td class="mdescLeft"> </td><td class="mdescRight">Return the latest measurement. <a href="#a73cabccc9d4406bf48f1db033dc35005">More...</a><br/></td></tr>
158 <tr class="separator:a73cabccc9d4406bf48f1db033dc35005"><td class="memSeparator" colspan="2"> </td></tr>
159 <tr class="inherit_header pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a></td></tr>
160 <tr class="memitem:a44dfdf6c9c53e1b5c5eddfc58c31dc54 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#a44dfdf6c9c53e1b5c5eddfc58c31dc54">Instrument</a> ()=default</td></tr>
161 <tr class="separator:a44dfdf6c9c53e1b5c5eddfc58c31dc54 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
162 <tr class="memitem:ac92db65cbe174915234b0d99b3ad4be7 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#ac92db65cbe174915234b0d99b3ad4be7">Instrument</a> (const <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a> &)=default</td></tr>
163 <tr class="separator:ac92db65cbe174915234b0d99b3ad4be7 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
164 <tr class="memitem:adda867124fd5c093788f96cb2eaf67cd inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#adda867124fd5c093788f96cb2eaf67cd">Instrument</a> (<a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a> &&)=default</td></tr>
165 <tr class="separator:adda867124fd5c093788f96cb2eaf67cd inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
166 <tr class="memitem:ae4a6c66ea355204cca47490247b91f5f inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#ae4a6c66ea355204cca47490247b91f5f">operator=</a> (const <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a> &)=default</td></tr>
167 <tr class="separator:ae4a6c66ea355204cca47490247b91f5f inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
168 <tr class="memitem:a550047da2682a06765be837ae570e542 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#a550047da2682a06765be837ae570e542">operator=</a> (<a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a> &&)=default</td></tr>
169 <tr class="separator:a550047da2682a06765be837ae570e542 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
170 <tr class="memitem:a7bd8541cf37e6c439d4a6bf7296437a2 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#a7bd8541cf37e6c439d4a6bf7296437a2">~Instrument</a> ()=default</td></tr>
171 <tr class="separator:a7bd8541cf37e6c439d4a6bf7296437a2 inherit pub_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
172 </table><table class="memberdecls">
173 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
174 Additional Inherited Members</h2></td></tr>
175 <tr class="inherit_header pub_types_classarm__compute_1_1test_1_1framework_1_1_instrument"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classarm__compute_1_1test_1_1framework_1_1_instrument')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a></td></tr>
176 <tr class="memitem:afc7df496e6026b91c3f48da6821c86a9 inherit pub_types_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#afc7df496e6026b91c3f48da6821c86a9">MeasurementsMap</a> = std::map< std::string, <a class="el" href="structarm__compute_1_1test_1_1framework_1_1_measurement.xhtml">Measurement</a> ></td></tr>
177 <tr class="separator:afc7df496e6026b91c3f48da6821c86a9 inherit pub_types_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
178 <tr class="inherit_header pub_static_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classarm__compute_1_1test_1_1framework_1_1_instrument')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a></td></tr>
179 <tr class="memitem:af3baba1356e4ba1194d7e611ca3c9657 inherit pub_static_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
180 <tr class="memitem:af3baba1356e4ba1194d7e611ca3c9657 inherit pub_static_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memTemplItemLeft" align="right" valign="top">static std::unique_ptr<br class="typebreak"/>
181 < <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml">Instrument</a> > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#af3baba1356e4ba1194d7e611ca3c9657">make_instrument</a> ()</td></tr>
182 <tr class="memdesc:af3baba1356e4ba1194d7e611ca3c9657 inherit pub_static_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="mdescLeft"> </td><td class="mdescRight">Helper function to create an instrument of the given type. <a href="#af3baba1356e4ba1194d7e611ca3c9657">More...</a><br/></td></tr>
183 <tr class="separator:af3baba1356e4ba1194d7e611ca3c9657 inherit pub_static_methods_classarm__compute_1_1test_1_1framework_1_1_instrument"><td class="memSeparator" colspan="2"> </td></tr>
185 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
186 <div class="textblock"><p><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml" title="Interface for classes that can be used to measure performance. ">Instrument</a> implementation for mali hw counters. </p>
188 <p>Definition at line <a class="el" href="_mali_counter_8h_source.xhtml#l00041">41</a> of file <a class="el" href="_mali_counter_8h_source.xhtml">MaliCounter.h</a>.</p>
189 </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
190 <a class="anchor" id="a17bcc07902788df6407481fd5bcd2ec8"></a>
191 <div class="memitem">
192 <div class="memproto">
193 <table class="memname">
195 <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> </td>
197 <td class="paramname"></td><td>)</td>
201 </div><div class="memdoc">
203 <p>Default constructor. </p>
205 <p>Definition at line <a class="el" href="_mali_counter_8cpp_source.xhtml#l00110">110</a> of file <a class="el" href="_mali_counter_8cpp_source.xhtml">MaliCounter.cpp</a>.</p>
206 <div class="fragment"><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> {</div>
207 <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  _counters =</div>
208 <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {</div>
209 <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  { <span class="stringliteral">"GPU_ACTIVE"</span>, TypedMeasurement<uint64_t>(0, <span class="stringliteral">"cycles"</span>) },</div>
210 <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  };</div>
211 <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
212 <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  _core_counters =</div>
213 <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  {</div>
214 <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  { <span class="stringliteral">"ARITH_WORDS"</span>, { <span class="stringliteral">"Arithmetic pipe"</span>, std::map<int, uint64_t>(), <span class="stringliteral">"instructions"</span> } },</div>
215 <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  { <span class="stringliteral">"LS_ISSUE"</span>, { <span class="stringliteral">"LS pipe"</span>, std::map<int, uint64_t>(), <span class="stringliteral">"instructions"</span> } },</div>
216 <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  { <span class="stringliteral">"TEX_ISSUE"</span>, { <span class="stringliteral">"Texture pipe"</span>, std::map<int, uint64_t>(), <span class="stringliteral">"instructions"</span> } },</div>
217 <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  { <span class="stringliteral">"COMPUTE_ACTIVE"</span>, { <span class="stringliteral">"Compute core"</span>, std::map<int, uint64_t>(), <span class="stringliteral">"cycles"</span> } },</div>
218 <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  { <span class="stringliteral">"FRAG_ACTIVE"</span>, { <span class="stringliteral">"Fragment core"</span>, std::map<int, uint64_t>(), <span class="stringliteral">"cycles"</span> } },</div>
219 <div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  };</div>
220 <div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div>
221 <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  init();</div>
222 <div class="line"><a name="l00127"></a><span class="lineno"> 127</span> }</div>
223 </div><!-- fragment -->
226 <a class="anchor" id="ae5c70ca71b4046301e066696c17174e0"></a>
227 <div class="memitem">
228 <div class="memproto">
229 <table class="mlabels">
231 <td class="mlabels-left">
232 <table class="memname">
234 <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> </td>
236 <td class="paramtype">const <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> & </td>
237 <td class="paramname"></td><td>)</td>
242 <td class="mlabels-right">
243 <span class="mlabels"><span class="mlabel">delete</span></span> </td>
246 </div><div class="memdoc">
250 <a class="anchor" id="a87ac9e6ba4855e29fc0f94dc2765daf7"></a>
251 <div class="memitem">
252 <div class="memproto">
253 <table class="memname">
255 <td class="memname">~<a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> </td>
257 <td class="paramname"></td><td>)</td>
261 </div><div class="memdoc">
263 <p>Default destructor. </p>
265 <p>Definition at line <a class="el" href="_mali_counter_8cpp_source.xhtml#l00129">129</a> of file <a class="el" href="_mali_counter_8cpp_source.xhtml">MaliCounter.cpp</a>.</p>
266 <div class="fragment"><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> {</div>
267 <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  term();</div>
268 <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div>
269 </div><!-- fragment -->
272 <h2 class="groupheader">Member Function Documentation</h2>
273 <a class="anchor" id="a501ef37fef441a0a6a8ea8b8e30a7181"></a>
274 <div class="memitem">
275 <div class="memproto">
276 <table class="mlabels">
278 <td class="mlabels-left">
279 <table class="memname">
281 <td class="memname">std::string id </td>
283 <td class="paramname"></td><td>)</td>
288 <td class="mlabels-right">
289 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
292 </div><div class="memdoc">
294 <p>Identifier for the instrument. </p>
296 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#a93697d33dc9325ba180a9a2a8ade6937">Instrument</a>.</p>
298 <p>Definition at line <a class="el" href="_mali_counter_8cpp_source.xhtml#l00400">400</a> of file <a class="el" href="_mali_counter_8cpp_source.xhtml">MaliCounter.cpp</a>.</p>
299 <div class="fragment"><div class="line"><a name="l00401"></a><span class="lineno"> 401</span> {</div>
300 <div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Mali Counter"</span>;</div>
301 <div class="line"><a name="l00403"></a><span class="lineno"> 403</span> }</div>
302 </div><!-- fragment -->
305 <a class="anchor" id="a73cabccc9d4406bf48f1db033dc35005"></a>
306 <div class="memitem">
307 <div class="memproto">
308 <table class="mlabels">
310 <td class="mlabels-left">
311 <table class="memname">
313 <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#afc7df496e6026b91c3f48da6821c86a9">Instrument::MeasurementsMap</a> measurements </td>
315 <td class="paramname"></td><td>)</td>
320 <td class="mlabels-right">
321 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
324 </div><div class="memdoc">
326 <p>Return the latest measurement. </p>
328 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#a4cf9eb56e129a841a24bd67bb548603b">Instrument</a>.</p>
330 <p>Definition at line <a class="el" href="_mali_counter_8cpp_source.xhtml#l00405">405</a> of file <a class="el" href="_mali_counter_8cpp_source.xhtml">MaliCounter.cpp</a>.</p>
332 <p>References <a class="el" href="_toolchain_support_8h_source.xhtml#l00168">arm_compute::support::cpp11::to_string()</a>.</p>
333 <div class="fragment"><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> {</div>
334 <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#afc7df496e6026b91c3f48da6821c86a9">MeasurementsMap</a> <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a73cabccc9d4406bf48f1db033dc35005">measurements</a></div>
335 <div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  {</div>
336 <div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  { <span class="stringliteral">"Timespan"</span>, TypedMeasurement<uint64_t>(_stop_time - _start_time, <span class="stringliteral">"ns"</span>) },</div>
337 <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  { <span class="stringliteral">"GPU active"</span>, _counters.at(<span class="stringliteral">"GPU_ACTIVE"</span>) },</div>
338 <div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  };</div>
339 <div class="line"><a name="l00412"></a><span class="lineno"> 412</span> </div>
340 <div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> &counter : _core_counters)</div>
341 <div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  {</div>
342 <div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keywordflow">for</span>(<span class="keyword">const</span> <span class="keyword">auto</span> &core : counter.second.values)</div>
343 <div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  {</div>
344 <div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a73cabccc9d4406bf48f1db033dc35005">measurements</a>.emplace(counter.second.name + <span class="stringliteral">" #"</span> + <a class="code" href="namespacearm__compute_1_1support_1_1cpp11.xhtml#acc5dddee1cbe93a4eaf0a9f74ee96bb7">support::cpp11::to_string</a>(core.first), TypedMeasurement<uint64_t>(core.second, counter.second.unit));</div>
345 <div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  }</div>
346 <div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  }</div>
347 <div class="line"><a name="l00420"></a><span class="lineno"> 420</span> </div>
348 <div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keywordflow">return</span> <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a73cabccc9d4406bf48f1db033dc35005">measurements</a>;</div>
349 <div class="line"><a name="l00422"></a><span class="lineno"> 422</span> }</div>
350 <div class="ttc" id="namespacearm__compute_1_1support_1_1cpp11_xhtml_acc5dddee1cbe93a4eaf0a9f74ee96bb7"><div class="ttname"><a href="namespacearm__compute_1_1support_1_1cpp11.xhtml#acc5dddee1cbe93a4eaf0a9f74ee96bb7">arm_compute::support::cpp11::to_string</a></div><div class="ttdeci">std::string to_string(T &&value)</div><div class="ttdoc">Convert integer and float values to string. </div><div class="ttdef"><b>Definition:</b> <a href="_toolchain_support_8h_source.xhtml#l00168">ToolchainSupport.h:168</a></div></div>
351 <div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_mali_counter_xhtml_a73cabccc9d4406bf48f1db033dc35005"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml#a73cabccc9d4406bf48f1db033dc35005">arm_compute::test::framework::MaliCounter::measurements</a></div><div class="ttdeci">MeasurementsMap measurements() const override</div><div class="ttdoc">Return the latest measurement. </div><div class="ttdef"><b>Definition:</b> <a href="_mali_counter_8cpp_source.xhtml#l00405">MaliCounter.cpp:405</a></div></div>
352 <div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_instrument_xhtml_afc7df496e6026b91c3f48da6821c86a9"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#afc7df496e6026b91c3f48da6821c86a9">arm_compute::test::framework::Instrument::MeasurementsMap</a></div><div class="ttdeci">std::map< std::string, Measurement > MeasurementsMap</div><div class="ttdef"><b>Definition:</b> <a href="_instrument_8h_source.xhtml#l00067">Instrument.h:67</a></div></div>
353 </div><!-- fragment -->
356 <a class="anchor" id="a6a1582aa0e3a2791a9e3a00d3001d66e"></a>
357 <div class="memitem">
358 <div class="memproto">
359 <table class="mlabels">
361 <td class="mlabels-left">
362 <table class="memname">
364 <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a>& operator= </td>
366 <td class="paramtype">const <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a> & </td>
367 <td class="paramname"></td><td>)</td>
372 <td class="mlabels-right">
373 <span class="mlabels"><span class="mlabel">delete</span></span> </td>
376 </div><div class="memdoc">
380 <a class="anchor" id="a5d5d9ebd12cd3a7d268bc98a3fc7bf97"></a>
381 <div class="memitem">
382 <div class="memproto">
383 <table class="mlabels">
385 <td class="mlabels-left">
386 <table class="memname">
388 <td class="memname">void start </td>
390 <td class="paramname"></td><td>)</td>
395 <td class="mlabels-right">
396 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
399 </div><div class="memdoc">
401 <p>Start measuring. </p>
403 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#ac0ae5f26cd2001d772aed9d2ea97d41c">Instrument</a>.</p>
405 <p>Definition at line <a class="el" href="_mali_counter_8cpp_source.xhtml#l00364">364</a> of file <a class="el" href="_mali_counter_8cpp_source.xhtml">MaliCounter.cpp</a>.</p>
406 <div class="fragment"><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> {</div>
407 <div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  sample_counters();</div>
408 <div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  wait_next_event();</div>
409 <div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  _start_time = _timestamp;</div>
410 <div class="line"><a name="l00369"></a><span class="lineno"> 369</span> }</div>
411 </div><!-- fragment -->
414 <a class="anchor" id="ab3536e22848ce87b16a9b96d6d824d45"></a>
415 <div class="memitem">
416 <div class="memproto">
417 <table class="mlabels">
419 <td class="mlabels-left">
420 <table class="memname">
422 <td class="memname">void stop </td>
424 <td class="paramname"></td><td>)</td>
429 <td class="mlabels-right">
430 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
433 </div><div class="memdoc">
435 <p>Stop measuring. </p>
437 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_instrument.xhtml#a0efff8623a2fb79dad94a96dcf16d966">Instrument</a>.</p>
439 <p>Definition at line <a class="el" href="_mali_counter_8cpp_source.xhtml#l00371">371</a> of file <a class="el" href="_mali_counter_8cpp_source.xhtml">MaliCounter.cpp</a>.</p>
441 <p>References <a class="el" href="hwc__names_8hpp_source.xhtml#l00030">mali_userspace::MALI_NAME_BLOCK_JM</a>, and <a class="el" href="hwc__names_8hpp_source.xhtml#l00032">mali_userspace::MALI_NAME_BLOCK_SHADER</a>.</p>
442 <div class="fragment"><div class="line"><a name="l00372"></a><span class="lineno"> 372</span> {</div>
443 <div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  sample_counters();</div>
444 <div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  wait_next_event();</div>
445 <div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div>
446 <div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keyword">const</span> <span class="keyword">auto</span> counter = get_counters(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06a9e4b72e32bbb15e27d24efef32ad4f42">mali_userspace::MALI_NAME_BLOCK_JM</a>);</div>
447 <div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  _counters.at(<span class="stringliteral">"GPU_ACTIVE"</span>).value = counter[find_counter_index_by_name(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06a9e4b72e32bbb15e27d24efef32ad4f42">mali_userspace::MALI_NAME_BLOCK_JM</a>, <span class="stringliteral">"GPU_ACTIVE"</span>)];</div>
448 <div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div>
449 <div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> arith_index = find_counter_index_by_name(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c">mali_userspace::MALI_NAME_BLOCK_SHADER</a>, <span class="stringliteral">"ARITH_WORDS"</span>);</div>
450 <div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> ls_index = find_counter_index_by_name(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c">mali_userspace::MALI_NAME_BLOCK_SHADER</a>, <span class="stringliteral">"LS_ISSUE"</span>);</div>
451 <div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> tex_index = find_counter_index_by_name(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c">mali_userspace::MALI_NAME_BLOCK_SHADER</a>, <span class="stringliteral">"TEX_ISSUE"</span>);</div>
452 <div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> compute_index = find_counter_index_by_name(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c">mali_userspace::MALI_NAME_BLOCK_SHADER</a>, <span class="stringliteral">"COMPUTE_ACTIVE"</span>);</div>
453 <div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> frag_index = find_counter_index_by_name(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c">mali_userspace::MALI_NAME_BLOCK_SHADER</a>, <span class="stringliteral">"FRAG_ACTIVE"</span>);</div>
454 <div class="line"><a name="l00384"></a><span class="lineno"> 384</span> </div>
455 <div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="comment">// Shader core counters can be averaged if desired, but here we don't.</span></div>
456 <div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordflow">for</span>(<span class="keywordtype">int</span> core = 0; core < _num_cores; ++core)</div>
457 <div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  {</div>
458 <div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keyword">const</span> <span class="keyword">auto</span> sc_counter = get_counters(<a class="code" href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c">mali_userspace::MALI_NAME_BLOCK_SHADER</a>, core);</div>
459 <div class="line"><a name="l00389"></a><span class="lineno"> 389</span> </div>
460 <div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  _core_counters.at(<span class="stringliteral">"ARITH_WORDS"</span>).values[core] = sc_counter[arith_index];</div>
461 <div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  _core_counters.at(<span class="stringliteral">"LS_ISSUE"</span>).values[core] = sc_counter[ls_index];</div>
462 <div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  _core_counters.at(<span class="stringliteral">"TEX_ISSUE"</span>).values[core] = sc_counter[tex_index];</div>
463 <div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  _core_counters.at(<span class="stringliteral">"COMPUTE_ACTIVE"</span>).values[core] = sc_counter[compute_index];</div>
464 <div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  _core_counters.at(<span class="stringliteral">"FRAG_ACTIVE"</span>).values[core] = sc_counter[frag_index];</div>
465 <div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  }</div>
466 <div class="line"><a name="l00396"></a><span class="lineno"> 396</span> </div>
467 <div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  _stop_time = _timestamp;</div>
468 <div class="line"><a name="l00398"></a><span class="lineno"> 398</span> }</div>
469 <div class="ttc" id="namespacemali__userspace_xhtml_a5108465542fd3a21106324203a729e06a9e4b72e32bbb15e27d24efef32ad4f42"><div class="ttname"><a href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06a9e4b72e32bbb15e27d24efef32ad4f42">mali_userspace::MALI_NAME_BLOCK_JM</a></div><div class="ttdef"><b>Definition:</b> <a href="hwc__names_8hpp_source.xhtml#l00030">hwc_names.hpp:30</a></div></div>
470 <div class="ttc" id="namespacemali__userspace_xhtml_a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c"><div class="ttname"><a href="namespacemali__userspace.xhtml#a5108465542fd3a21106324203a729e06aca9aa649a1cea3ef1b46603e678a727c">mali_userspace::MALI_NAME_BLOCK_SHADER</a></div><div class="ttdef"><b>Definition:</b> <a href="hwc__names_8hpp_source.xhtml#l00032">hwc_names.hpp:32</a></div></div>
471 </div><!-- fragment -->
474 <hr/>The documentation for this class was generated from the following files:<ul>
475 <li>tests/framework/instruments/<a class="el" href="_mali_counter_8h_source.xhtml">MaliCounter.h</a></li>
476 <li>tests/framework/instruments/<a class="el" href="_mali_counter_8cpp_source.xhtml">MaliCounter.cpp</a></li>
478 </div><!-- contents -->
479 </div><!-- doc-content -->
480 <!-- start footer part -->
481 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
483 <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test.xhtml">test</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test_1_1framework.xhtml">framework</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1test_1_1framework_1_1_mali_counter.xhtml">MaliCounter</a></li>
484 <li class="footer">Generated on Thu Oct 12 2017 14:26:38 for Compute Library by
485 <a href="http://www.doxygen.org/index.html">
486 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>