blob: ce28005ccae3d60b5832be2ab0f6ba568d529751 [file] [log] [blame]
Chris Craikb122baf2015-03-05 13:58:42 -08001<!DOCTYPE html>
2<!--
3Copyright (c) 2014 The Chromium Authors. All rights reserved.
4Use of this source code is governed by a BSD-style license that can be
5found in the LICENSE file.
6-->
7<head>
8<script>
9function onTraceViewerImportFail() {
10 document.addEventListener('DOMContentLoaded', function() {
11 document.body.textContent = 'bin/trace_viewer_full.html is missing. Run vulcanize_trace_viewer from $TRACE_VIEWER and reload.';
12 });
13}
14</script>
15<link rel="import" href="trace_viewer_full.html" onerror="onTraceViewerImportFail(event)">
16
17<style>
18 html, body {
19 box-sizing: border-box;
20 overflow: hidden;
21 margin: 0px;
22 padding: 0;
23 width: 100%;
24 height: 100%;
25 }
26 #trace-viewer {
27 width: 100%;
28 height: 100%;
29 }
30</style>
31<script>
32document.addEventListener('DOMContentLoaded', function() {
33 var viewer = new tv.TraceViewer('../test_data/big_trace.json');
34 viewer.id = 'trace-viewer';
35 viewer.tabIndex = 1;
36 document.body.appendChild(viewer);
37});
38</script>
39</head>
40<body>
41</body>
42</html>