]> git.ozlabs.org Git - hiprofile/blobdiff - hiprofile/resources/report.html
Convert to a python package
[hiprofile] / hiprofile / resources / report.html
diff --git a/hiprofile/resources/report.html b/hiprofile/resources/report.html
new file mode 100644 (file)
index 0000000..c2fe2c3
--- /dev/null
@@ -0,0 +1,46 @@
+{% extends "base.html" %}
+
+{% block heading %}
+Oprofile report
+{% endblock %}
+
+{% block content %}
+<table class="meta">
+ <tr>
+  <th>Host:</th>
+  <td>{{ report.host }}</td>
+ </tr>
+ <tr>
+  <th>Arch:</th>
+  <td>{{ report.arch }}</td>
+ </tr>
+ <tr>
+  <th>CPU:</th>
+  <td>{{ report.cpu }}</td>
+ </tr>
+ <tr>
+  <th>Samples:</th>
+  <td>{{ report.total_samples }}</td>
+ </tr>
+</table>
+
+<table>
+ <tr>
+  <th>Binary</th>
+  <th>Samples</th>
+  <th>%</th>
+ </tr>
+{% for binary in report.binaries %}
+ <tr>
+  <td><a href="{{binary.filename()}}" title="{{ binary.name }}"
+    >{{binary.shortname()}}</a></td>
+  <td>{{ binary.count }}</td>
+  <td>{{ "%.2f"|format(binary.percentage) }}</td>
+  <td><img src="bar.png" height="10"
+   width="{{ "%d"|format(binary.percentage) }}"
+   alt="{{ "%.1f"|format(binary.percentage) }}%"/></td>
+ </tr>
+{% endfor %}
+</table>
+
+{% endblock %}