blob: 56b2b6a2e31ea977486630816960a1420eb81daa [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright (c) 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<script>
function onTraceViewerImportFail() {
document.addEventListener('DOMContentLoaded', function() {
document.body.textContent = 'bin/trace_viewer_full.html is missing. ' +
'Run vulcanize_trace_viewer from $TRACE_VIEWER and reload.';
});
}
</script>
<link rel="import" href="trace_viewer_full.html" onerror="onTraceViewerImportFail(event)">
<style>
html, body {
box-sizing: border-box;
overflow: hidden;
margin: 0px;
padding: 0;
width: 100%;
height: 100%;
}
#trace-viewer {
width: 100%;
height: 100%;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
var viewer = new tr.TraceViewer('../test_data/big_trace.json');
viewer.id = 'trace-viewer';
viewer.tabIndex = 1;
document.body.appendChild(viewer);
});
</script>
</head>
<body>
</body>
</html>