This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
devtools-panel.html
126 lines (121 loc) · 3.69 KB
/
devtools-panel.html
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
125
126
<!DOCTYPE html>
<html>
<head>
<title>Browser session benchmarker</title>
<style>
body {
font: 13px sans-serif;
box-sizing: border-box;
}
h2 {
margin: 0 0 1em 0;
}
textarea {
margin: 0;
border: 1px solid #ccc;
padding: 4px;
width: 100%;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
resize: none;
box-sizing: inherit;
}
code {
font: 11px monospace;
background-color: #eee;
}
.pane-root {
margin: 0;
border: 0;
padding: 0;
width: 98%;
vertical-align: top;
position: relative;
box-sizing: border-box;
}
.pane {
margin: 0;
border: 0;
padding: 0;
display: inline-block;
vertical-align: top;
position: absolute;
top: 0;
bottom: 0;
box-sizing: border-box;
}
.pane:nth-of-type(1) {
padding: 4px;
left: 0;
width: 40%;
overflow-x: hidden;
overflow-y: auto;
}
.pane:nth-of-type(2) {
left: 40%;
right: 0;
}
table td {
white-space: nowrap;
text-align: right;
}
table tr:nth-of-type(1) td {
text-align: left;
}
table td:nth-of-type(1) {
padding-right: 1em;
}
#startButton {
}
#sessionThirdPartyDomains, #sessionFailedURLs {
white-space: pre;
font: 12px monospace;
}
</style>
</head>
<body>
<div style="pane-root">
<div class="pane">
<h2>Session benchmarker</h2>
<p>Each directive in the right pane will be executed in sequence.
Each directive must be separated by a newline character.
Unknown directives will be ignored.</p>
<p>Valid directives:</p>
<ul>
<li><code>repeat <i>n</i></code>: Repeat the benchmark <i>n</i> time and report averaged results.
<li><code>wait <i>n</i></code>: Wait <i>n</i> seconds before each page load.
<li><code>clear cache</code>: Clear the browser cache.
<li><code>clear cookies</code>: Clear all cookies.
<li><code><i>URL</i></code>: A URL to benchmark.
<p style="text-align:center">
<button id="startButton">Start benchmark</button>
<button id="stopButton" style="display:none">Abort benchmark</button>
</p>
<table id="results">
<tr><td colspan="2">Averages after <span id="sessionRepeat">—</span> runs:
<!-- <tr><td>Load time:<td><span id="sessionTime">—</span> -->
<tr><td>URLs visited:<td><span id="sessionURLCount">—</span>
<tr><td>Domains (3<sup>rd</sup> party / all):<td><span id="sessionThirdPartyDomainCount">—</span> / <span id="sessionDomainCount">—</span>
<tr><td>Hosts (3<sup>rd</sup> party / all):<td><span id="sessionThirdPartyHostCount">—</span> / <span id="sessionHostCount">—</span>
<tr><td>Scripts (3<sup>rd</sup> party / all):<td><span id="sessionThirdPartyScriptCount">—</span> / <span id="sessionScriptCount">—</span>
<tr><td>Outbound cookies (3<sup>rd</sup> party / all):<td><span id="sessionThirdPartyCookieSentCount">—</span> / <span id="sessionCookieSentCount">—</span>
<tr><td>Net requests (3<sup>rd</sup> party / all):<td><span id="sessionThirdPartyRequestCount">—</span> / <span id="sessionRequestCount">—</span>
<tr><td>Bandwidth:<td><span id="sessionBandwidth">—</span>
<tr><td>3rd-party domains:<td>
<tr><td id="sessionThirdPartyDomains" colspan="2">—
<tr><td>Failed URLs:<td>
<tr><td id="sessionFailedURLs" colspan="2">—
</table>
</div>
<div class="pane">
<textarea id="playlistRaw"></textarea>
</div>
</div>
<script src="lib/punycode.min.js"></script>
<script src="lib/publicsuffixlist.js"></script>
<script src="js/devtools-panel.js"></script>
</body>
</html>