1
0
forked from 0ad/0ad
0ad/source/tools/replayprofile/graph.html
wraitii 5e5ea5cba5 Fix replayprofile/ graphing tool for Profiler1
All modern browsers block ajax request to local file.
This changes extract.pl to generate a single HTML file with data
embedded.
This is now the default behaviour, --to-json to export, --from-json to
load exported.

Patch by: nwtour
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D3621
This was SVN commit r24975.
2021-03-02 08:35:39 +00:00

28 lines
800 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>0 A.D. Simulation Profiling</title>
<!-- include js -->
<!-- include graph js -->
</head>
<body onload="showReplayData();">
<div>
<label>Graph:
<select id="replayGraphSelection" size="1" onChange="showReplayData()">
<option value="time" selected="selected">Performance</option>
<option value="bytes">Memory</option>
<option value="garbageCollection">Garbage Collections</option>
</select>
</label>
</div>
<div id="replayGraphContainer">
<div id="replayGraphLegend" style="width:300px;float:left"></div>
<div>
<div id="replayGraph" style="width:1100px; height:600px; float:left"></div>
<div id="replayGraphDescription" style="float:top"></div>
</div>
</div>
</body>
</html>