]> git.ozlabs.org Git - hiprofile/blob - hiprofile/resources/symbol.html
Convert to a python package
[hiprofile] / hiprofile / resources / symbol.html
1
2 {% extends "base.html" %}
3
4 {% block heading %}Symbol: {{ symbol.name }}{% endblock %}
5
6 {% block content %}
7
8 <table class="meta">
9  <tr>
10   <th>Total samples:</th>
11   <td>{{ symbol.count }}</td>
12  </tr>
13  <tr>
14   <th>Module:</th>
15   <td><span class="path">{{ symbol.module }}</span></td>
16  </tr>
17 </table>
18
19 <table class="instructions">
20  <tr>
21   <th>Address</th>
22   <th>Samples</th>
23   <th>%</th>
24   <th/>
25   <th>Instruction</th>
26  </tr>
27
28 {% for insn in symbol.insns %}
29  <tr>
30   <td><span class="address">0x{{ insn.addr }}</span></td>
31   <td style="color: {{insn.colour()}}">{{ insn.samples }}</td>
32   <td style="color: {{insn.colour()}}">{{ "%.2f"|format(insn.percentage) }}</td>
33 {% if insn.source %}
34   <td class="source-expander" onclick="expand_source(this);">+</td>
35 {% else %}
36   <td/>
37 {% endif %}
38   <td>
39    <pre class="source">{{insn.source}}</pre>
40    <pre class="assembly" style="color: {{insn.colour()}}">{{ insn.asm }}</pre>
41   </td>
42  </tr>
43 {% endfor %}
44 </table>
45
46
47 {% endblock %}