This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
TileComputationObserver.xhtml.vm
76 lines (68 loc) · 2.27 KB
/
TileComputationObserver.xhtml.vm
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>${docTitle}</title>
<style type="text/css">
p, td, li {
font-size: x-small;
line-height: 140%;
font-family: Helvetica, Arial, sans-serif;
letter-spacing: 0.1em;
word-spacing: 0.3em;
}
</style>
</head>
<body>
<h1>${docTitle}</h1>
<!--
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
<?import namespace="svg" urn="http://www.w3.org/2000/svg" implementation="#AdobeSVG"?>
-->
<table>
<tr>
<th>ID</th>
<th>Dup</th>
<th>Product</th>
<th>Operator</th>
<th>Band</th>
<th>Image</th>
<th>TileX</th>
<th>TileY</th>
<th>Start(s)</th>
<th>Duration(s)</th>
<th>Thread</th>
<th>Chart (${totalTime} s)</th>
</tr>
#foreach( $task in $tasks )
#set( $textPosX = ${task.barX} + 4 )
<tr>
<td>${task.event.id}</td>
#if( $task.sameTask )
<td style="background-color:red;">${task.sameTask.event.id}</td>
#else
<td>-</td>
#end
<td>${task.band.product.name}</td>
<td>${task.operator.class.simpleName}</td>
<td>${task.band.name}</td>
<td>${task.imageId}</td>
<td>${task.event.tileX}</td>
<td>${task.event.tileY}</td>
<td>${task.start}</td>
<td>${task.duration}</td>
<td>${task.event.threadName}</td>
<td>
<svg:svg version="1.1" baseProfile="full" width="${chartWidth}" height="10">
<svg:rect x="${task.barX}" y="0" width="${task.barWidth}" height="10"
style="fill:green; stroke:black;"/>
<svg:text x="${textPosX}" y="8">${task.duration} s</svg:text>
</svg:svg>
</td>
</tr>
#end
</table>
</body>
</html>