-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathscheduler.html
83 lines (75 loc) · 2.38 KB
/
scheduler.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
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Completely Fair Scheduler Visualization</title>
<style>
header h1 {
margin: 2px;
font-size: 2em;
}
h3 {
text-align: center;
}
.control_row {
margin-bottom: 10px;
}
#svg {
border: 1px solid;
}
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 5.5px;
}
.node text {
font: 10px sans-serif;
}
.link {
fill: none;
stroke: #ccc;
stroke-width: 1.5px;
}
</style>
</head>
<body>
<h3>Completely Fair Scheduler</h3>
<label>Tasks File: </label>
<input id="fileInput" type="file" size="5"/><br/>
<textarea id="rawTasksFile" cols="80" rows="5">3 11
A 1 3
B 2 4
C 2 3</textarea>
<br/><br/>
<div>
<input name="stats" id="summary" type=radio checked><label>Summary</label>
<input name="stats" id="csv" type=radio><label>CSV</label>
<input name="stats" id="report" type=radio><label>Report</label>
<input name="stats" id="detailed" type=radio><label>Detailed Report</label>
</div>
<div style="float:right; margin-right: 5em">
<span id="curTimeDisplay" style="display:table; margin:0 auto; font-size: 250%">0</span>
<span style="display:table; margin:0 auto; ">Current CPU Time</span>
<br/>
<span id="curTaskDisplay" style="display:table; margin:0 auto; font-size: 250%">-</span>
<span style="display:table; margin:0 auto;">Current Task</span>
<br/>
<span id="messageDisplay" style="display:table; margin:0 auto; font-size: 150%"></span>
</div>
<div>
<input id="runButton" type="submit" size="5" value="Run Scheduler"/><br/><br/>
</div>
<textarea id="schedulerResults" cols="80" rows="2"></textarea>
<br/><br/>
<div id="viz">
<svg id="svg"></svg>
</div>
<script type="text/javascript" src="lib/d3.v3.min.js"></script>
<script src="trees/binarytree.js"></script>
<script src="trees/bst.js"></script>
<script src="trees/rbt.js"></script>
<script src="tasks.js"></script>
<script src="scheduler.js"></script>
<script src="web/scheduler.js"></script>
</body>
</html>