This patch will generate html file which contains per-scene graph ofg all device statistics over all period of time. There are still some possible tweaks to look and feel of the graphs, but it's good enough for now.
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Benchmark Results</title>
|
|
<script src="source/chart.bundle.js"></script>
|
|
<script src="source/utils.js"></script>
|
|
<script src="source/jquery.min.js"></script>
|
|
<script src="source/jquery.jqGrid.min.js"></script>
|
|
<script src="source/bootstrap.min.js"></script>
|
|
<script src="dataset/history.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="style/main.css">
|
|
<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css" />
|
|
<link rel="stylesheet" type="text/css" href="style/ui.jqgrid-bootstrap.css" />
|
|
</head>
|
|
<body>
|
|
<div id="container">
|
|
</div>
|
|
<br><br>
|
|
<table id="spreadsheet"></table>
|
|
<script type="text/javascript">
|
|
window.onload = function() {
|
|
var container = document.getElementById("container");
|
|
for (scene_name of data.scenes) {
|
|
var canvas = document.createElement("canvas");
|
|
container.appendChild(canvas);
|
|
var chart_ctx = canvas.getContext("2d");
|
|
buildHistoryChart(chart_ctx, data, scene_name);
|
|
}
|
|
};
|
|
</script>
|
|
</body>
|
|
</html>
|