2020-06-29 19:21:56 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!-- Copyright 2020 the V8 project authors. All rights reserved.
|
|
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
|
|
found in the LICENSE file. -->
|
|
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Indicium</title>
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
|
|
|
|
<!-- <link rel="icon" type="image/png" href="/images/favicon.png"/> -->
|
2020-07-14 15:03:14 +00:00
|
|
|
<script type="module" src="index.mjs"></script>
|
2020-07-13 18:02:52 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="./index.css">
|
2020-07-16 14:46:13 +00:00
|
|
|
<script type="module" src="helper.mjs"></script>
|
2020-07-10 10:02:08 +00:00
|
|
|
|
2020-06-29 19:21:56 +00:00
|
|
|
<script src="../splaytree.js"></script>
|
|
|
|
<script src="../codemap.js"></script>
|
|
|
|
<script src="../csvparser.js"></script>
|
|
|
|
<script src="../consarray.js"></script>
|
|
|
|
<script src="../profile.js"></script>
|
|
|
|
<script src="../profile_view.js"></script>
|
|
|
|
<script src="../logreader.js"></script>
|
|
|
|
<script src="../arguments.js"></script>
|
|
|
|
<script src="../SourceMap.js"></script>
|
2020-07-28 09:02:26 +00:00
|
|
|
<style>
|
2020-07-14 15:03:14 +00:00
|
|
|
#instructions {
|
|
|
|
padding: 10px 10px 60px 10px ;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
kbd {
|
2020-07-28 09:02:26 +00:00
|
|
|
background-color: var(--primary-color);
|
|
|
|
color: var(--on-primary-color);
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid var(--on-primary-color);
|
|
|
|
display: inline-block;
|
|
|
|
font-size: .9em;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 0px 4px 2px 4px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
/*Simple css to style it like a toggle switch*/
|
|
|
|
.theme-switch-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.theme-switch {
|
|
|
|
display: inline-block;
|
|
|
|
height: 34px;
|
|
|
|
position: relative;
|
|
|
|
width: 60px;
|
|
|
|
}
|
|
|
|
.theme-switch input {
|
|
|
|
display:none;
|
|
|
|
}
|
|
|
|
.slider {
|
2020-08-05 04:13:01 +00:00
|
|
|
background-color: var(--primary-color);
|
2020-07-28 09:02:26 +00:00
|
|
|
bottom: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
transition: .4s;
|
|
|
|
}
|
|
|
|
.slider:before {
|
|
|
|
background-color: var(--surface-color);
|
|
|
|
bottom: 4px;
|
|
|
|
content: "";
|
|
|
|
height: 26px;
|
|
|
|
left: 4px;
|
|
|
|
position: absolute;
|
|
|
|
transition: .4s;
|
|
|
|
width: 26px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked + .slider {
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked + .slider:before {
|
|
|
|
transform: translateX(26px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.slider.round {
|
|
|
|
border-radius: 34px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slider.round:before {
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
2020-08-12 15:10:23 +00:00
|
|
|
|
|
|
|
#container.initial {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#container.loaded {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
|
|
|
|
grid-auto-flow: dense;
|
|
|
|
}
|
|
|
|
|
|
|
|
#container.loaded > #timeline-panel {
|
|
|
|
grid-column: span 2;
|
|
|
|
}
|
|
|
|
|
2020-06-29 19:21:56 +00:00
|
|
|
</style>
|
2020-07-14 15:03:14 +00:00
|
|
|
<script type="module" >
|
2020-07-15 07:28:00 +00:00
|
|
|
import {App} from './index.mjs';
|
|
|
|
|
2020-07-28 12:46:10 +00:00
|
|
|
globalThis.app = new App("#log-file-reader", "#map-panel", "#timeline-panel",
|
|
|
|
"#ic-panel", "#map-track", "#ic-track");
|
2020-06-29 19:21:56 +00:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="content">
|
|
|
|
<section id="file-reader">
|
|
|
|
<br></br>
|
2020-07-23 08:41:38 +00:00
|
|
|
<log-file-reader id="log-file-reader"></log-file-reader>
|
2020-06-29 19:21:56 +00:00
|
|
|
<br></br>
|
|
|
|
</section>
|
2020-08-12 15:10:23 +00:00
|
|
|
<div id="container" class="initial">
|
2020-07-28 12:46:10 +00:00
|
|
|
<timeline-panel id="timeline-panel">
|
|
|
|
<timeline-track id="map-track"></timeline-track>
|
|
|
|
<timeline-track id="ic-track"></timeline-track>
|
|
|
|
</timeline-panel>
|
2020-08-04 08:51:59 +00:00
|
|
|
<map-panel id="map-panel"></map-panel>
|
2020-07-15 14:29:04 +00:00
|
|
|
<ic-panel id="ic-panel" onchange="app.handleSelectIc(event)"></ic-panel>
|
2020-06-29 19:21:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-28 09:02:26 +00:00
|
|
|
<div class="theme-switch-wrapper">
|
|
|
|
<label class="theme-switch" for="checkbox">
|
|
|
|
<input type="checkbox" id="checkbox"/>
|
|
|
|
<div class="slider round"></div>
|
|
|
|
</label>
|
|
|
|
</div>
|
2020-06-29 19:21:56 +00:00
|
|
|
<div id="instructions">
|
|
|
|
<h2>Instructions</h2>
|
2020-08-12 15:10:23 +00:00
|
|
|
<p>
|
|
|
|
Unified web interface for analyzing the trace information of the Maps/ICs
|
|
|
|
</p>
|
2020-06-29 19:21:56 +00:00
|
|
|
<ul>
|
|
|
|
<li> Visualize Map trees that have gathered</li>
|
|
|
|
<li><code> /path/to/d8 --trace-maps $FILE</code></li>
|
|
|
|
<li> Visualize IC events that have gathered</li>
|
|
|
|
<li><code> /path/to/d8 --trace_ic $FILE (your_script.js) </code></li>
|
|
|
|
</ul>
|
2020-07-13 09:28:47 +00:00
|
|
|
<h3>Keyboard Shortcuts</h3>
|
|
|
|
<dl>
|
|
|
|
<dt><kbd>SHIFT</kbd> + <kbd>Arrow Up</kbd></dt>
|
|
|
|
<dd>Follow Map transition forward (first child)</dd>
|
|
|
|
|
|
|
|
<dt><kbd>SHIFT</kbd> + <kbd>Arrow Down</kbd></dt>
|
|
|
|
<dd>Follow Map transition backwards</dd>
|
|
|
|
|
|
|
|
<dt><kbd>Arrow Up</kbd></dt>
|
|
|
|
<dd>Go to previous Map chunk</dd>
|
|
|
|
|
|
|
|
<dt><kbd>Arrow Down</kbd></dt>
|
|
|
|
<dd>Go to next Map in chunk</dd>
|
|
|
|
|
|
|
|
<dt><kbd>Arrow Left</kbd></dt>
|
|
|
|
<dd>Go to previous chunk</dd>
|
|
|
|
|
|
|
|
<dt><kbd>Arrow Right</kbd></dt>
|
|
|
|
<dd>Go to next chunk</dd>
|
|
|
|
|
|
|
|
<dt><kbd>+</kbd></dt>
|
|
|
|
<dd>Timeline zoom in</dd>
|
|
|
|
|
|
|
|
<dt><kbd>-</kbd></dt>
|
|
|
|
<dd>Timeline zoom out</dd>
|
|
|
|
</dl>
|
2020-06-29 19:21:56 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|