forked from brownsys/X-Trace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph.html
43 lines (43 loc) · 1.9 KB
/
graph.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
<html>
<head>
<script type="text/javascript" src="lib/d3/d3.v3.min.js"></script>
<script type="text/javascript" src="lib/jQuery/jquery-1.9.0.js"></script>
<script type="text/javascript" src="lib/jQuery/jquery.tipsy.js"></script>
<script type="text/javascript" src="lib/jQuery/jquery.contextMenu.js"></script>
<script type="text/javascript" src="lib/dagre/dagre.js"></script>
<script type="text/javascript" src="js/Minimap.js"></script>
<script type="text/javascript" src="js/MinimapZoom.js"></script>
<script type="text/javascript" src="js/DirectedAcyclicGraph.js"></script>
<script type="text/javascript" src="js/List.js"></script>
<script type="text/javascript" src="js/Selectable.js"></script>
<script type="text/javascript" src="js/Graph.js"></script>
<script type="text/javascript" src="js/History.js"></script>
<script type="text/javascript" src="js/Tooltip.js"></script>
<script type="text/javascript" src="js/ContextMenu.js"></script>
<script type="text/javascript" src="js/xtrace_utils.js"></script>
<script type="text/javascript" src="js/xtrace_graph.js"></script>
<link href="stylesheets/xtrace.css" rel="stylesheet" type="text/css">
<link href="stylesheets/tipsy.css" rel="stylesheet" type="text/css" />
<link href="stylesheets/jquery.contextMenu.css" rel="stylesheet" type="text/css" />
<script>
window.onload = function() {
var params = getParameters();
var id = params["id"];
var callback = function(data) {
console.log("Reports received, accessible as window.data", data);
window.data = data;
window.xtrace = new XTraceDAG(document.body, data[0].reports, params);
};
var errback = function(message, error) {
console.log("Error retrieving reports", error);
};
if (id==null) {
document.body.appendChild(document.createTextNode("No Trace ID specified"));
} else {
getReports(id, callback, errback);
}
}
</script>
</head>
<body width="100%" height="100%" style="margin: 0"></body>
</html>