rack-mini-profiler 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +13 -4
- data/lib/html/dot.1.1.2.min.js +2 -0
- data/lib/html/includes.css +102 -34
- data/lib/html/includes.js +2191 -1008
- data/lib/html/includes.scss +515 -441
- data/lib/html/includes.tmpl +138 -148
- data/lib/html/share.html +0 -1
- data/lib/mini_profiler/asset_version.rb +3 -2
- data/lib/mini_profiler/config.rb +4 -4
- data/lib/mini_profiler/profiler.rb +34 -10
- data/lib/mini_profiler/storage/file_store.rb +1 -1
- data/lib/mini_profiler/version.rb +1 -1
- data/lib/mini_profiler_rails/railtie.rb +2 -0
- data/rack-mini-profiler.gemspec +3 -1
- metadata +5 -9
- data/lib/html/jquery.1.7.1.js +0 -4
- data/lib/html/jquery.tmpl.js +0 -486
- data/lib/html/list.css +0 -9
- data/lib/html/list.js +0 -38
- data/lib/html/list.tmpl +0 -34
data/lib/html/includes.scss
CHANGED
@@ -1,545 +1,619 @@
|
|
1
1
|
@mixin box-shadow($dx, $dy, $radius, $color) {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
-moz-box-shadow: $dx $dy $radius $color;
|
3
|
+
-webkit-box-shadow: $dx $dy $radius $color;
|
4
|
+
box-shadow: $dx $dy $radius $color;
|
5
5
|
}
|
6
6
|
|
7
|
-
$anchorColor: #
|
7
|
+
$anchorColor: #0077cc;
|
8
8
|
$buttonBorderColor: #888;
|
9
9
|
$numberColor: #111;
|
10
10
|
$textColor: #555;
|
11
11
|
$mutedColor: #767676;
|
12
12
|
$normalFonts: Helvetica, Arial, sans-serif;
|
13
13
|
$codeFonts: Consolas, monospace, serif;
|
14
|
-
$zindex:2147483640; // near 32bit max 2147483647
|
14
|
+
$zindex: 2147483640; // near 32bit max 2147483647
|
15
15
|
|
16
16
|
// do some resets
|
17
|
-
.profiler-result,
|
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
|
-
|
17
|
+
.profiler-result,
|
18
|
+
.profiler-queries {
|
19
|
+
color: #555;
|
20
|
+
line-height: 1;
|
21
|
+
font-size: 12px;
|
22
|
+
|
23
|
+
pre,
|
24
|
+
code,
|
25
|
+
label,
|
26
|
+
table,
|
27
|
+
tbody,
|
28
|
+
thead,
|
29
|
+
tfoot,
|
30
|
+
tr,
|
31
|
+
th,
|
32
|
+
td {
|
33
|
+
margin: 0;
|
34
|
+
padding: 0;
|
35
|
+
border: 0;
|
36
|
+
font-size: 100%;
|
37
|
+
font: inherit;
|
38
|
+
vertical-align: baseline;
|
39
|
+
background-color: transparent;
|
40
|
+
overflow: visible;
|
41
|
+
max-height: none;
|
42
|
+
}
|
43
|
+
table {
|
44
|
+
border-collapse: collapse;
|
45
|
+
border-spacing: 0;
|
46
|
+
}
|
47
|
+
a,
|
48
|
+
a:hover {
|
49
|
+
cursor: pointer;
|
50
|
+
color: $anchorColor;
|
51
|
+
}
|
52
|
+
a {
|
53
|
+
text-decoration: none;
|
54
|
+
&:hover {
|
55
|
+
text-decoration: underline;
|
46
56
|
}
|
57
|
+
}
|
47
58
|
}
|
48
59
|
|
49
60
|
// styles shared between popup view and full view
|
50
|
-
.profiler-result
|
51
|
-
{
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
61
|
+
.profiler-result {
|
62
|
+
.profiler-toggle-duration-with-children {
|
63
|
+
float: right;
|
64
|
+
}
|
65
|
+
table.profiler-client-timings {
|
66
|
+
margin-top: 10px;
|
67
|
+
}
|
68
|
+
font-family: $normalFonts;
|
69
|
+
|
70
|
+
.profiler-label {
|
71
|
+
color: $textColor;
|
72
|
+
overflow: hidden;
|
73
|
+
text-overflow: ellipsis;
|
74
|
+
}
|
75
|
+
|
76
|
+
.profiler-unit {
|
77
|
+
color: $mutedColor;
|
78
|
+
}
|
79
|
+
|
80
|
+
.profiler-trivial {
|
81
|
+
display: none;
|
82
|
+
td,
|
83
|
+
td * {
|
84
|
+
color: $mutedColor !important;
|
56
85
|
}
|
57
|
-
|
58
|
-
|
59
|
-
|
86
|
+
}
|
87
|
+
|
88
|
+
pre,
|
89
|
+
code,
|
90
|
+
.profiler-number,
|
91
|
+
.profiler-unit {
|
92
|
+
font-family: $codeFonts;
|
93
|
+
}
|
94
|
+
|
95
|
+
.profiler-number {
|
96
|
+
color: $numberColor;
|
97
|
+
}
|
98
|
+
|
99
|
+
.profiler-info {
|
100
|
+
text-align: right;
|
101
|
+
.profiler-name {
|
102
|
+
float: left;
|
60
103
|
}
|
61
|
-
|
62
|
-
|
63
|
-
.profiler-label {
|
64
|
-
color:$textColor;
|
65
|
-
overflow:hidden;
|
66
|
-
text-overflow: ellipsis;
|
104
|
+
.profiler-server-time {
|
105
|
+
white-space: nowrap;
|
67
106
|
}
|
107
|
+
}
|
68
108
|
|
69
|
-
|
70
|
-
|
109
|
+
.profiler-timings {
|
110
|
+
th {
|
111
|
+
background-color: #fff;
|
112
|
+
color: $mutedColor;
|
113
|
+
text-align: right;
|
71
114
|
}
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
td, td * {
|
76
|
-
color:$mutedColor !important;
|
77
|
-
}
|
115
|
+
th,
|
116
|
+
td {
|
117
|
+
white-space: nowrap;
|
78
118
|
}
|
79
|
-
|
80
|
-
|
81
|
-
font-family:$codeFonts;
|
119
|
+
.profiler-duration-with-children {
|
120
|
+
display: none;
|
82
121
|
}
|
83
|
-
|
84
|
-
|
85
|
-
|
122
|
+
.profiler-duration {
|
123
|
+
color: $numberColor;
|
124
|
+
text-align: right;
|
86
125
|
}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
126
|
+
.profiler-indent {
|
127
|
+
letter-spacing: 4px;
|
128
|
+
}
|
129
|
+
.profiler-queries-show {
|
130
|
+
.profiler-number,
|
131
|
+
.profiler-unit {
|
132
|
+
color: $anchorColor;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
.profiler-queries-duration {
|
136
|
+
padding-left: 6px;
|
137
|
+
}
|
138
|
+
.profiler-percent-in-sql {
|
139
|
+
white-space: nowrap;
|
140
|
+
text-align: right;
|
96
141
|
}
|
97
142
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
.profiler-duration-with-children {
|
108
|
-
display:none;
|
109
|
-
}
|
110
|
-
.profiler-duration {
|
111
|
-
color:$numberColor;
|
112
|
-
text-align:right;
|
113
|
-
}
|
114
|
-
.profiler-indent {
|
115
|
-
letter-spacing:4px;
|
116
|
-
}
|
117
|
-
.profiler-queries-show {
|
118
|
-
.profiler-number, .profiler-unit {
|
119
|
-
color:$anchorColor;
|
120
|
-
}
|
121
|
-
}
|
122
|
-
.profiler-queries-duration {
|
123
|
-
padding-left:6px;
|
124
|
-
}
|
125
|
-
.profiler-percent-in-sql {
|
126
|
-
white-space:nowrap;
|
127
|
-
text-align:right;
|
128
|
-
}
|
143
|
+
tfoot {
|
144
|
+
td {
|
145
|
+
padding-top: 10px;
|
146
|
+
text-align: right;
|
147
|
+
|
148
|
+
a {
|
149
|
+
font-size: 95%;
|
150
|
+
display: inline-block;
|
151
|
+
margin-left: 12px;
|
129
152
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
display:inline-block;
|
138
|
-
margin-left:12px;
|
139
|
-
|
140
|
-
&:first-child {
|
141
|
-
float:left;
|
142
|
-
margin-left:0px;
|
143
|
-
}
|
144
|
-
&.profiler-custom-link {
|
145
|
-
float:left;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
153
|
+
&:first-child {
|
154
|
+
float: left;
|
155
|
+
margin-left: 0px;
|
156
|
+
}
|
157
|
+
&.profiler-custom-link {
|
158
|
+
float: left;
|
159
|
+
}
|
149
160
|
}
|
161
|
+
}
|
150
162
|
}
|
163
|
+
}
|
151
164
|
|
152
|
-
|
153
|
-
|
165
|
+
.profiler-queries {
|
166
|
+
font-family: $normalFonts;
|
154
167
|
|
155
|
-
|
156
|
-
|
157
|
-
|
168
|
+
.profiler-stack-trace {
|
169
|
+
margin-bottom: 15px;
|
170
|
+
}
|
158
171
|
|
159
|
-
|
160
|
-
|
161
|
-
|
172
|
+
tbody tr {
|
173
|
+
border-bottom: 1px solid #f1f1f1;
|
174
|
+
}
|
162
175
|
|
163
|
-
|
164
|
-
|
165
|
-
|
176
|
+
tr {
|
177
|
+
background-color: #fff;
|
178
|
+
&.higlight-animate {
|
179
|
+
animation: highlight-in 3s;
|
180
|
+
}
|
181
|
+
}
|
166
182
|
|
167
|
-
|
168
|
-
|
169
|
-
|
183
|
+
tr.slow {
|
184
|
+
background-color: #fee;
|
185
|
+
}
|
170
186
|
|
171
|
-
|
172
|
-
|
173
|
-
|
187
|
+
tr.very-slow {
|
188
|
+
background-color: #fdd;
|
189
|
+
}
|
174
190
|
|
175
|
-
|
176
|
-
|
177
|
-
|
191
|
+
tr.very-very-slow {
|
192
|
+
background-color: #fcc;
|
193
|
+
}
|
178
194
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
195
|
+
pre {
|
196
|
+
font-family: $codeFonts;
|
197
|
+
white-space: pre-wrap;
|
198
|
+
}
|
183
199
|
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
200
|
+
th {
|
201
|
+
background-color: #fff;
|
202
|
+
border-bottom: 1px solid #555;
|
203
|
+
font-weight: bold;
|
204
|
+
padding: 15px;
|
205
|
+
white-space: nowrap;
|
206
|
+
}
|
191
207
|
|
192
|
-
|
193
|
-
|
194
|
-
|
208
|
+
td {
|
209
|
+
padding: 15px;
|
210
|
+
text-align: left;
|
195
211
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
212
|
+
&:last-child {
|
213
|
+
padding-right: 25px; // compensate for scrollbars
|
214
|
+
}
|
215
|
+
}
|
200
216
|
|
201
|
-
|
202
|
-
|
203
|
-
|
217
|
+
.profiler-since-start,
|
218
|
+
.profiler-duration {
|
219
|
+
text-align: right;
|
220
|
+
}
|
204
221
|
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
222
|
+
.profiler-info div {
|
223
|
+
text-align: right;
|
224
|
+
margin-bottom: 5px;
|
225
|
+
}
|
209
226
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
227
|
+
.profiler-gap-info,
|
228
|
+
.profiler-gap-info td {
|
229
|
+
background-color: #ccc;
|
230
|
+
}
|
231
|
+
.profiler-gap-info {
|
232
|
+
.profiler-unit {
|
233
|
+
color: #777;
|
234
|
+
}
|
235
|
+
.profiler-info {
|
236
|
+
text-align: right;
|
237
|
+
}
|
238
|
+
&.profiler-trivial-gaps {
|
239
|
+
display: none;
|
240
|
+
}
|
241
|
+
}
|
216
242
|
|
217
|
-
|
218
|
-
|
219
|
-
// prettify colors
|
220
|
-
.str{color:maroon}
|
221
|
-
.kwd{color:#00008b}
|
222
|
-
.com{color:gray}
|
223
|
-
.typ{color:#2b91af}
|
224
|
-
.lit{color:maroon}
|
225
|
-
.pun{color:#000}
|
226
|
-
.pln{color:#000}
|
227
|
-
.tag{color:maroon}
|
228
|
-
.atn{color:red}
|
229
|
-
.atv{color:blue}
|
230
|
-
.dec{color:purple}
|
231
|
-
}
|
232
|
-
|
233
|
-
.profiler-warning, .profiler-warning *, .profiler-warning .profiler-queries-show, .profiler-warning .profiler-queries-show .profiler-unit { // i'm no good at css
|
234
|
-
color:#f00;
|
235
|
-
&:hover {
|
236
|
-
color:#f00;
|
237
|
-
}
|
243
|
+
.profiler-trivial-gap-container {
|
244
|
+
text-align: center;
|
238
245
|
}
|
239
246
|
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
+
// prettify colors
|
248
|
+
.str {
|
249
|
+
color: maroon;
|
250
|
+
}
|
251
|
+
.kwd {
|
252
|
+
color: #00008b;
|
253
|
+
}
|
254
|
+
.com {
|
255
|
+
color: gray;
|
256
|
+
}
|
257
|
+
.typ {
|
258
|
+
color: #2b91af;
|
247
259
|
}
|
260
|
+
.lit {
|
261
|
+
color: maroon;
|
262
|
+
}
|
263
|
+
.pun {
|
264
|
+
color: #000;
|
265
|
+
}
|
266
|
+
.pln {
|
267
|
+
color: #000;
|
268
|
+
}
|
269
|
+
.tag {
|
270
|
+
color: maroon;
|
271
|
+
}
|
272
|
+
.atn {
|
273
|
+
color: red;
|
274
|
+
}
|
275
|
+
.atv {
|
276
|
+
color: blue;
|
277
|
+
}
|
278
|
+
.dec {
|
279
|
+
color: purple;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
.profiler-warning,
|
284
|
+
.profiler-warning *,
|
285
|
+
.profiler-warning .profiler-queries-show,
|
286
|
+
.profiler-warning .profiler-queries-show .profiler-unit {
|
287
|
+
// i'm no good at css
|
288
|
+
color: #f00;
|
289
|
+
&:hover {
|
290
|
+
color: #f00;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
|
294
|
+
.profiler-nuclear {
|
295
|
+
color: #f00;
|
296
|
+
&:hover {
|
297
|
+
color: #f00;
|
298
|
+
}
|
299
|
+
font-weight: bold;
|
300
|
+
padding-right: 2px;
|
301
|
+
}
|
248
302
|
}
|
249
303
|
|
250
304
|
// ajaxed-in results will be appended to this
|
251
|
-
.profiler-results
|
252
|
-
|
253
|
-
|
254
|
-
position:fixed;
|
255
|
-
|
256
|
-
$radius:10px;
|
257
|
-
|
258
|
-
&.profiler-top {
|
259
|
-
top:0px;
|
260
|
-
|
261
|
-
&.profiler-left {
|
262
|
-
left:0px;
|
263
|
-
|
264
|
-
&.profiler-no-controls .profiler-totals, &.profiler-no-controls .profiler-result:last-child .profiler-button, .profiler-controls {
|
265
|
-
-webkit-border-bottom-right-radius: $radius;
|
266
|
-
-moz-border-radius-bottomright: $radius;
|
267
|
-
border-bottom-right-radius: $radius;
|
268
|
-
}
|
305
|
+
.profiler-results {
|
306
|
+
z-index: $zindex + 3;
|
307
|
+
position: fixed;
|
269
308
|
|
270
|
-
|
271
|
-
border-right: 1px solid $buttonBorderColor;
|
272
|
-
}
|
273
|
-
}
|
309
|
+
$radius: 10px;
|
274
310
|
|
275
|
-
|
276
|
-
|
311
|
+
&.profiler-top {
|
312
|
+
top: 0px;
|
277
313
|
|
278
|
-
|
279
|
-
|
280
|
-
-moz-border-radius-bottomleft: $radius;
|
281
|
-
border-bottom-left-radius: $radius;
|
282
|
-
}
|
314
|
+
&.profiler-left {
|
315
|
+
left: 0px;
|
283
316
|
|
284
|
-
|
285
|
-
|
286
|
-
|
317
|
+
&.profiler-no-controls .profiler-totals,
|
318
|
+
&.profiler-no-controls .profiler-result:last-child .profiler-button,
|
319
|
+
.profiler-controls {
|
320
|
+
-webkit-border-bottom-right-radius: $radius;
|
321
|
+
-moz-border-radius-bottomright: $radius;
|
322
|
+
border-bottom-right-radius: $radius;
|
287
323
|
}
|
288
|
-
}
|
289
324
|
|
290
|
-
|
291
|
-
|
325
|
+
.profiler-button,
|
326
|
+
.profiler-controls {
|
327
|
+
border-right: 1px solid $buttonBorderColor;
|
328
|
+
}
|
329
|
+
}
|
292
330
|
|
293
|
-
|
294
|
-
|
331
|
+
&.profiler-right {
|
332
|
+
right: 0px;
|
295
333
|
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
334
|
+
&.profiler-no-controls .profiler-totals,
|
335
|
+
&.profiler-no-controls .profiler-result:last-child .profiler-button,
|
336
|
+
.profiler-controls {
|
337
|
+
-webkit-border-bottom-left-radius: $radius;
|
338
|
+
-moz-border-radius-bottomleft: $radius;
|
339
|
+
border-bottom-left-radius: $radius;
|
340
|
+
}
|
301
341
|
|
302
|
-
|
303
|
-
|
304
|
-
|
342
|
+
.profiler-button,
|
343
|
+
.profiler-controls {
|
344
|
+
border-left: 1px solid $buttonBorderColor;
|
305
345
|
}
|
346
|
+
}
|
347
|
+
}
|
306
348
|
|
307
|
-
|
308
|
-
|
349
|
+
&.profiler-bottom {
|
350
|
+
bottom: 0px;
|
309
351
|
|
310
|
-
|
311
|
-
|
312
|
-
-moz-border-radius-topleft: $radius;
|
313
|
-
border-top-left-radius: $radius;
|
314
|
-
}
|
352
|
+
&.profiler-left {
|
353
|
+
left: 0px;
|
315
354
|
|
316
|
-
|
317
|
-
|
318
|
-
|
355
|
+
&.profiler-no-controls .profiler-totals,
|
356
|
+
&.profiler-no-controls .profiler-result:first-child .profiler-button,
|
357
|
+
.profiler-controls {
|
358
|
+
-webkit-border-top-right-radius: $radius;
|
359
|
+
-moz-border-radius-topright: $radius;
|
360
|
+
border-top-right-radius: $radius;
|
319
361
|
}
|
320
|
-
}
|
321
362
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
background-color:#fff;
|
327
|
-
padding: 4px 7px;
|
328
|
-
text-align:right;
|
329
|
-
cursor:pointer;
|
330
|
-
|
331
|
-
&.profiler-button-active {
|
332
|
-
background-color:maroon;
|
333
|
-
|
334
|
-
.profiler-number, .profiler-nuclear {
|
335
|
-
color:#fff;
|
336
|
-
font-weight:bold;
|
337
|
-
}
|
338
|
-
.profiler-unit {
|
339
|
-
color:#fff;
|
340
|
-
font-weight:normal;
|
341
|
-
}
|
342
|
-
}
|
363
|
+
.profiler-button,
|
364
|
+
.profiler-controls {
|
365
|
+
border-right: 1px solid $buttonBorderColor;
|
366
|
+
}
|
343
367
|
}
|
344
368
|
|
369
|
+
&.profiler-right {
|
370
|
+
right: 0px;
|
345
371
|
|
346
|
-
|
347
|
-
.profiler-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
font-family: $codeFonts;
|
353
|
-
content: "×";
|
354
|
-
margin-right: 1px;
|
355
|
-
}
|
372
|
+
&.profiler-no-controls .profiler-totals,
|
373
|
+
&.profiler-no-controls .profiler-result:first-child .profiler-button,
|
374
|
+
.profiler-controls {
|
375
|
+
-webkit-border-bottom-top-radius: $radius;
|
376
|
+
-moz-border-radius-topleft: $radius;
|
377
|
+
border-top-left-radius: $radius;
|
356
378
|
}
|
357
|
-
}
|
358
379
|
|
359
|
-
|
360
|
-
|
361
|
-
|
380
|
+
.profiler-button,
|
381
|
+
.profiler-controls {
|
382
|
+
border-left: 1px solid $buttonBorderColor;
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
387
|
+
.profiler-button,
|
388
|
+
.profiler-controls {
|
389
|
+
display: none;
|
390
|
+
z-index: $zindex;
|
391
|
+
border-bottom: 1px solid $buttonBorderColor;
|
392
|
+
background-color: #fff;
|
393
|
+
padding: 4px 7px;
|
394
|
+
text-align: right;
|
395
|
+
cursor: pointer;
|
396
|
+
|
397
|
+
&.profiler-button-active {
|
398
|
+
background-color: maroon;
|
399
|
+
|
400
|
+
.profiler-number,
|
401
|
+
.profiler-nuclear {
|
402
|
+
color: #fff;
|
403
|
+
font-weight: bold;
|
404
|
+
}
|
405
|
+
.profiler-unit {
|
406
|
+
color: #fff;
|
407
|
+
font-weight: normal;
|
408
|
+
}
|
409
|
+
}
|
410
|
+
}
|
411
|
+
|
412
|
+
.profiler-totals {
|
413
|
+
.profiler-reqs {
|
414
|
+
font-family: $codeFonts;
|
415
|
+
font-size: 10px;
|
416
|
+
margin-left: 6px;
|
417
|
+
&:before {
|
362
418
|
font-family: $codeFonts;
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
419
|
+
content: "×";
|
420
|
+
margin-right: 1px;
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
.profiler-controls {
|
426
|
+
display: block;
|
427
|
+
font-size: 12px;
|
428
|
+
font-family: $codeFonts;
|
429
|
+
cursor: default;
|
430
|
+
text-align: center;
|
431
|
+
|
432
|
+
span {
|
433
|
+
border-right: 1px solid $mutedColor;
|
434
|
+
padding-right: 5px;
|
435
|
+
margin-right: 5px;
|
436
|
+
cursor: pointer;
|
376
437
|
}
|
377
438
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
background-color:#fff;
|
383
|
-
border: 1px solid #aaa;
|
384
|
-
padding:5px 10px;
|
385
|
-
text-align:left;
|
386
|
-
line-height:18px;
|
387
|
-
overflow:auto;
|
388
|
-
|
389
|
-
@include box-shadow(0px, 1px, 15px, #555);
|
390
|
-
|
391
|
-
.profiler-info {
|
392
|
-
margin-bottom:3px;
|
393
|
-
padding-bottom:2px;
|
394
|
-
border-bottom:1px solid #ddd;
|
395
|
-
|
396
|
-
.profiler-name {
|
397
|
-
font-size:110%;
|
398
|
-
font-weight:bold;
|
399
|
-
.profiler-overall-duration {
|
400
|
-
display:none;
|
401
|
-
}
|
402
|
-
}
|
403
|
-
.profiler-server-time {
|
404
|
-
font-size:95%;
|
405
|
-
}
|
406
|
-
}
|
439
|
+
span:last-child {
|
440
|
+
border-right: none;
|
441
|
+
}
|
442
|
+
}
|
407
443
|
|
408
|
-
|
444
|
+
.profiler-popup {
|
445
|
+
display: none;
|
446
|
+
z-index: $zindex + 1;
|
447
|
+
position: absolute;
|
448
|
+
background-color: #fff;
|
449
|
+
border: 1px solid #aaa;
|
450
|
+
padding: 5px 10px;
|
451
|
+
text-align: left;
|
452
|
+
line-height: 18px;
|
453
|
+
overflow: auto;
|
409
454
|
|
410
|
-
|
411
|
-
padding-left:6px;
|
412
|
-
padding-right:6px;
|
413
|
-
}
|
455
|
+
@include box-shadow(0px, 1px, 15px, #555);
|
414
456
|
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
457
|
+
.profiler-info {
|
458
|
+
margin-bottom: 3px;
|
459
|
+
padding-bottom: 2px;
|
460
|
+
border-bottom: 1px solid #ddd;
|
419
461
|
|
420
|
-
|
421
|
-
|
422
|
-
|
462
|
+
.profiler-name {
|
463
|
+
font-size: 110%;
|
464
|
+
font-weight: bold;
|
465
|
+
.profiler-overall-duration {
|
466
|
+
display: none;
|
423
467
|
}
|
468
|
+
}
|
469
|
+
.profiler-server-time {
|
470
|
+
font-size: 95%;
|
471
|
+
}
|
424
472
|
}
|
425
473
|
|
426
|
-
.profiler-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
background-color:#fff;
|
474
|
+
.profiler-timings {
|
475
|
+
th,
|
476
|
+
td {
|
477
|
+
padding-left: 6px;
|
478
|
+
padding-right: 6px;
|
479
|
+
}
|
433
480
|
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
481
|
+
th {
|
482
|
+
font-size: 95%;
|
483
|
+
padding-bottom: 3px;
|
484
|
+
}
|
438
485
|
|
439
|
-
|
440
|
-
|
486
|
+
.profiler-label {
|
487
|
+
max-width: 275px;
|
488
|
+
}
|
441
489
|
}
|
442
|
-
|
443
|
-
|
444
|
-
|
490
|
+
}
|
491
|
+
|
492
|
+
.profiler-queries {
|
493
|
+
display: none;
|
494
|
+
z-index: $zindex + 3;
|
495
|
+
position: absolute;
|
496
|
+
overflow-y: auto;
|
497
|
+
overflow-x: auto;
|
498
|
+
background-color: #fff;
|
499
|
+
|
500
|
+
th {
|
501
|
+
font-size: 17px;
|
445
502
|
}
|
503
|
+
}
|
446
504
|
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
margin: 0px;
|
451
|
-
}
|
505
|
+
&.profiler-min .profiler-result {
|
506
|
+
display: none;
|
507
|
+
}
|
452
508
|
|
453
|
-
|
509
|
+
&.profiler-min .profiler-controls span {
|
510
|
+
display: none;
|
511
|
+
}
|
454
512
|
|
455
|
-
|
456
|
-
|
457
|
-
|
513
|
+
&.profiler-min .profiler-controls .profiler-min-max {
|
514
|
+
border-right: none;
|
515
|
+
padding: 0px;
|
516
|
+
margin: 0px;
|
517
|
+
}
|
518
|
+
|
519
|
+
.profiler-more-actions {
|
520
|
+
float: left;
|
521
|
+
}
|
522
|
+
|
523
|
+
@media print {
|
524
|
+
display: none;
|
525
|
+
}
|
458
526
|
}
|
459
527
|
|
460
528
|
// popup results' queries will be displayed in front of this
|
461
529
|
.profiler-queries-bg {
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
530
|
+
z-index: $zindex + 2;
|
531
|
+
display: none;
|
532
|
+
background: #000;
|
533
|
+
opacity: 0.7;
|
534
|
+
position: absolute;
|
535
|
+
top: 0px;
|
536
|
+
left: 0px;
|
537
|
+
min-width: 100%;
|
470
538
|
}
|
471
539
|
|
472
|
-
|
473
540
|
// used when viewing a shared, full page result
|
474
541
|
.profiler-result-full {
|
475
|
-
|
542
|
+
.profiler-result {
|
543
|
+
width: 950px;
|
544
|
+
margin: 30px auto;
|
545
|
+
|
546
|
+
.profiler-button {
|
547
|
+
display: none;
|
548
|
+
}
|
549
|
+
|
550
|
+
.profiler-popup {
|
551
|
+
.profiler-info {
|
552
|
+
font-size: 25px;
|
553
|
+
border-bottom: 1px solid $mutedColor;
|
554
|
+
padding-bottom: 3px;
|
555
|
+
margin-bottom: 25px;
|
476
556
|
|
477
|
-
|
478
|
-
|
557
|
+
.profiler-overall-duration {
|
558
|
+
padding-right: 20px;
|
559
|
+
font-size: 80%;
|
560
|
+
color: #888;
|
561
|
+
}
|
562
|
+
}
|
479
563
|
|
480
|
-
|
481
|
-
|
564
|
+
.profiler-timings {
|
565
|
+
td,
|
566
|
+
th {
|
567
|
+
padding-left: 8px;
|
568
|
+
padding-right: 8px;
|
569
|
+
}
|
570
|
+
th {
|
571
|
+
padding-bottom: 7px;
|
482
572
|
}
|
573
|
+
td {
|
574
|
+
font-size: 14px;
|
575
|
+
padding-bottom: 4px;
|
483
576
|
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
font-size: 25px;
|
488
|
-
border-bottom:1px solid $mutedColor;
|
489
|
-
padding-bottom:3px;
|
490
|
-
margin-bottom:25px;
|
491
|
-
|
492
|
-
.profiler-overall-duration {
|
493
|
-
padding-right:20px;
|
494
|
-
font-size:80%;
|
495
|
-
color:#888;
|
496
|
-
}
|
497
|
-
}
|
498
|
-
|
499
|
-
.profiler-timings {
|
500
|
-
td, th {
|
501
|
-
padding-left:8px;
|
502
|
-
padding-right:8px;
|
503
|
-
}
|
504
|
-
th {
|
505
|
-
padding-bottom:7px;
|
506
|
-
}
|
507
|
-
td {
|
508
|
-
font-size:14px;
|
509
|
-
padding-bottom:4px;
|
510
|
-
|
511
|
-
&:first-child {
|
512
|
-
padding-left:10px;
|
513
|
-
}
|
514
|
-
}
|
515
|
-
|
516
|
-
.profiler-label {
|
517
|
-
max-width:550px;
|
518
|
-
}
|
519
|
-
}
|
577
|
+
&:first-child {
|
578
|
+
padding-left: 10px;
|
579
|
+
}
|
520
580
|
}
|
521
581
|
|
522
|
-
.profiler-
|
523
|
-
|
524
|
-
table {
|
525
|
-
width:100%;
|
526
|
-
}
|
527
|
-
th {
|
528
|
-
font-size:16px;
|
529
|
-
color:#555;
|
530
|
-
line-height:20px;
|
531
|
-
}
|
532
|
-
|
533
|
-
td {
|
534
|
-
padding:15px 10px;
|
535
|
-
text-align:left;
|
536
|
-
}
|
537
|
-
|
538
|
-
.profiler-info div {
|
539
|
-
text-align:right;
|
540
|
-
margin-bottom:5px;
|
541
|
-
}
|
582
|
+
.profiler-label {
|
583
|
+
max-width: 550px;
|
542
584
|
}
|
585
|
+
}
|
543
586
|
}
|
544
587
|
|
588
|
+
.profiler-queries {
|
589
|
+
margin: 25px 0;
|
590
|
+
table {
|
591
|
+
width: 100%;
|
592
|
+
}
|
593
|
+
th {
|
594
|
+
font-size: 16px;
|
595
|
+
color: #555;
|
596
|
+
line-height: 20px;
|
597
|
+
}
|
598
|
+
|
599
|
+
td {
|
600
|
+
padding: 15px 10px;
|
601
|
+
text-align: left;
|
602
|
+
}
|
603
|
+
|
604
|
+
.profiler-info div {
|
605
|
+
text-align: right;
|
606
|
+
margin-bottom: 5px;
|
607
|
+
}
|
608
|
+
}
|
609
|
+
}
|
610
|
+
}
|
611
|
+
|
612
|
+
@keyframes highlight-in {
|
613
|
+
0% {
|
614
|
+
background: #ffffbb;
|
615
|
+
}
|
616
|
+
100% {
|
617
|
+
background: #fff;
|
618
|
+
}
|
545
619
|
}
|