var first_trace = '';
var params = ParseParams();
-if (!('history' in params)) {
- params.history = 150;
- // make this option somewhat user discoverable :-/
- window.location.href = MakeURL(params);
-}
function jsonToJs(data) {
return eval('(' + data + ')')
function get_url() {
new_url = window.location.href;
- new_url = new_url.replace(/50/, "150");
- new_url = new_url.replace(/\&lookout/, "");
+ new_url = new_url.replace(/\?lookout/, "?");
+ new_url = new_url.replace(/\&thumbnail/, "");
return new_url;
}
// Parse the summary data file.
var rows = data.split('\n');
var max_rows = rows.length;
- if (max_rows > params.history)
- max_rows = params.history;
+ if ('history' in params && max_rows > params.history) {
+ max_rows = params.history;
+ } else if ('lookout' in params && max_rows > 150) {
+ max_rows = 150;
+ }
var allTraces = {};
<div id="header_text">
<script>
-document.write('Timings for the <b>' + Config.title + '</b> configuration ' +
- 'generated by the ' +
- '<a href="' + Config.buildbotLink + '">SCons buildbot</a>.');
+document.write('<a href="' + Config.buildbotLink + '">SCons buildbot</a>' +
+ ' timings for the <b>' + Config.title + '</b> configuration.')
+if ('graph' in params)
+ document.write(' Displaying values for <b>' + params.graph + '</b>.');
</script>
</div>
var perf_url = DirName(window.location.href);
function DisplayGraph(name, heighth, width, thumbnail, graph) {
var params = ParseParams();
- var url = perf_url + '/' + name + '/graph.html' +
- '?history=50' +
- '&lookout';
+ var url = perf_url + '/' + name + '/graph.html' + '?lookout';
//var debug = url;
var debug = '';
+ if ('history' in params) {
+ url += '&history=' + params.history
+ }
if (typeof graph == 'undefined') {
if ('graph' in params) {
graph = params.graph;