-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
79 lines (66 loc) · 1.88 KB
/
index.html
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
79
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Trace Compare</title>
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<ul id="metric-selector">
</ul>
<div id="charts-header">
<div id="charts-header-left">
Group A: <span id="active-left">-</span> of <span id="total-left">-</span> executions selected.
</div>
<div id="charts-header-right">
Group B: <span id="active-right">-</span> of <span id="total-right">-</span> executions selected.
</div>
</div>
<div id="charts">
</div>
<svg id="flamegraph">
</svg>
<div id="selected-function" style="display:none;">
<span id="selected-function-links">
<a id="selected-function-focus" href="javascript:void(0)">Focus</a>
<a id="selected-function-filter" href="javascript:void(0)">Filter</a>
</span>
<span id="selected-function-name"> </span>
</div>
<div>
<a id="zoom" href="javascript:void(0)">Zoom</a>
<a id="unfocus" href="javascript:void(0)" style="display:none;">Unfocus</a>
</div>
<table>
<thead>
<tr>
<th>Time</th>
<th>Duration</th>
</tr>
</thead>
<tbody id="executions-table">
</tbody>
</table>
<script src="contrib/crossfilter/crossfilter.v1.js"></script>
<script src="contrib/d3/d3.js"></script>
<script src="tracecompare.js"></script>
<script>
// From http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
function getParameterByName(name) {
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
var results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var data = getParameterByName("data");
if (data.length == 0)
{
alert("No data specified in the URL.");
}
else
{
compare = tracecompare("data/" + data + ".json");
}
</script>
</body>
</html>