summaryrefslogtreecommitdiff
path: root/chromium/v8/tools/system-analyzer/timeline/timeline-track-template.html
blob: 93f30747be76c763c557cafda65c20ec29de8220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!-- 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. -->

<head>
  <link href="./index.css" rel="stylesheet">
</head>
<style>
  #timeline {
    position: relative;
    height: 300px;
    overflow-y: hidden;
    overflow-x: scroll;
    user-select: none;
    background-color: var(--timeline-background-color);
  }

  #timelineLabel {
    transform: rotate(90deg);
    transform-origin: left bottom 0;
    position: absolute;
    left: 0;
    width: 250px;
    text-align: center;
    font-size: 10px;
    opacity: 0.5;
  }

  #timelineChunks {
    height: 250px;
    position: absolute;
    margin-right: 100px;
  }

  #timelineCanvas {
    height: 250px;
    position: relative;
    overflow: visible;
    pointer-events: none;
  }

  .chunk {
    width: 6px;
    border: 0px var(--timeline-background-color) solid;
    border-width: 0 2px 0 2px;
    position: absolute;
    background-size: 100% 100%;
    image-rendering: pixelated;
    bottom: 0px;
  }

  .timestamp {
    height: 250px;
    width: 100px;
    border-left: 1px var(--surface-color) dashed;
    padding-left: 4px;
    position: absolute;
    pointer-events: none;
    font-size: 10px;
    opacity: 0.5;
  }

  #legend {
    position: relative;
    float: right;
    text-align: center;
    width: 100%;
    max-width: 280px;
    padding-left: 20px;
    padding-top: 10px;
  }

  th,
  td {
    width: 200px;
    text-align: center;
    padding: 5px;
  }

  .timeline {
    background-color: var(--timeline-background-color);
  }

  #timeline .rightHandle,
  #timeline .leftHandle {
    background-color: rgba(200, 200, 200, 0.5);
    height: 100%;
    width: 5px;
    position: absolute;
    z-index: 3;
    cursor: col-resize;
  }

  #timeline .selection {
    background-color: rgba(133, 68, 163, 0.5);
    height: 100%;
    position: absolute;
    z-index: 2;
  }
</style>
<div class="timeline">
  <div id="legend">
    <table>
      <thead>
        <tr>
          <td>Color</td>
          <td>Type</td>
          <td>Count</td>
          <td>Percent</td>
        </tr>
      </thead>
      <tbody id="legendContent">
      </tbody>
    </table>
  </div>
  <div id="timeline">
    <div class="leftHandle"></div>
    <div class="selection"></div>
    <div class="rightHandle"></div>
    <div id="timelineLabel">Frequency</div>
    <div id="timelineChunks"></div>
    <canvas id="timelineCanvas"></canvas>
  </div>
</div>