Repository navigation
Expand file tree
/
Copy pathhome.html
More file actions
78 lines (72 loc) · 2.56 KB
/
Copy pathhome.html
File metadata and controls
78 lines (72 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{% extends "codespeed/base_site.html" %}
{% load static %}
{% block extra_head %}
<link rel="stylesheet" type="text/css" href="{% static 'css/dygraph.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'css/home.css' %}" />
{% endblock %}
{% block navigation %}
{% endblock navigation %}
{% block body %}
<div id="presentation">
<a href="{% url "changes" %}">
<div id="changes" class="menubox">
<h2>Changes</h2>
<p>Track performance changes in the latest revisions</p>
</div>
</a>
<a href="{% url "timeline" %}">
<div id="timeline" class="menubox">
<h2>Timeline</h2>
<p>Analyze performance over time</p>
</div>
</a>
<a href="{% url "comparison" %}">
<div id="comparison" class="menubox">
<h2>Comparison</h2>
<p>Compare different executables and revisions</p>
</div>
</a>
<div id="geomean">
<h3>How has performance changed over the last 30 days?</h3>
<div id="geomean-plot"
data-url="{% url 'gethomegeomeandata' %}"
data-changes-url="{% url 'changes' %}"></div>
<div id="geomean-legend"></div>
<p class="plot-caption">
Geometric mean of all benchmark times, relative to the first run in the
window. Lower is faster. Each line is one executable on one machine;
click a point to open that commit's results.
</p>
</div>
<div id="reports"></div>
</div>
{% endblock body %}
{% block extra_script %}
{{ block.super }}
<script type="text/javascript" src="{% static 'js/dygraph.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/home_geomean.js' %}"></script>
<script type="text/javascript">
function permalinkToChanges(permalink) {
window.location=permalink;
}
function updateTable() {
//Add permalink events to table rows
$("div#reports table tbody tr").each(function() {
$(this).click(function () {
permalink_string = $(this).find("td:eq(0) label").text();
permalinkToChanges(permalink_string);
});
});
//Add hover effect to rows
$("div#reports table tbody tr td").hover(function() {
$(this).parents('tr').addClass('highlight');
}, function() {
$(this).parents('tr').removeClass('highlight');
});
}
$(function() {
$("#reports").html(getLoadText("Loading...", 0, true))
.load("{% url "reports" %}", function(responseText) { updateTable(); });
});
</script>
{% endblock %}