mirror of
https://github.com/golang/go
synced 2024-11-26 14:26:51 -07:00
all: use HTML5 br tags
In HTML5 br tags don't need a closing slash
Change-Id: Ic53c43faee08c5b1267daa9a02cc186b1c255ca1
GitHub-Last-Rev: 6522081169
GitHub-Pull-Request: golang/go#44283
Reviewed-on: https://go-review.googlesource.com/c/go/+/292370
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
This commit is contained in:
parent
73eb27bd3b
commit
8e725f8452
@ -993,13 +993,13 @@
|
|||||||
</style>
|
</style>
|
||||||
<div style="padding-right: 200px">
|
<div style="padding-right: 200px">
|
||||||
<div style="float:right; border-style: solid; border-width: 1px; padding:20px">
|
<div style="float:right; border-style: solid; border-width: 1px; padding:20px">
|
||||||
X no feedback<br/>
|
X no feedback<br>
|
||||||
0 uninitialized<br/>
|
0 uninitialized<br>
|
||||||
. premonomorphic<br/>
|
. premonomorphic<br>
|
||||||
1 monomorphic<br/>
|
1 monomorphic<br>
|
||||||
^ recompute handler<br/>
|
^ recompute handler<br>
|
||||||
P polymorphic<br/>
|
P polymorphic<br>
|
||||||
N megamorphic<br/>
|
N megamorphic<br>
|
||||||
G generic
|
G generic
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -3596,7 +3596,7 @@
|
|||||||
<div id="pipeline_per_frame_container">
|
<div id="pipeline_per_frame_container">
|
||||||
<div class="subtitle">Graphics Pipeline and Raster Tasks</div>
|
<div class="subtitle">Graphics Pipeline and Raster Tasks</div>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
When raster tasks are completed in comparison to the rest of the graphics pipeline.<br/>
|
When raster tasks are completed in comparison to the rest of the graphics pipeline.<br>
|
||||||
Only pages where raster tasks are completed after beginFrame is issued are included.
|
Only pages where raster tasks are completed after beginFrame is issued are included.
|
||||||
</div>
|
</div>
|
||||||
<tr-v-ui-raster-visualization id="rasterVisualization">
|
<tr-v-ui-raster-visualization id="rasterVisualization">
|
||||||
|
@ -1064,7 +1064,7 @@ func (f *Func) HTML(phase string, dot *dotWriter) string {
|
|||||||
p := htmlFuncPrinter{w: buf}
|
p := htmlFuncPrinter{w: buf}
|
||||||
fprintFunc(p, f)
|
fprintFunc(p, f)
|
||||||
|
|
||||||
// fprintFunc(&buf, f) // TODO: HTML, not text, <br /> for line breaks, etc.
|
// fprintFunc(&buf, f) // TODO: HTML, not text, <br> for line breaks, etc.
|
||||||
fmt.Fprint(buf, "</code>")
|
fmt.Fprint(buf, "</code>")
|
||||||
return buf.String()
|
return buf.String()
|
||||||
}
|
}
|
||||||
|
@ -283,7 +283,7 @@ var templMMU = `<!doctype html>
|
|||||||
.done(function(worst) {
|
.done(function(worst) {
|
||||||
details.text('Lowest mutator utilization in ' + niceDuration(windowNS) + ' windows:');
|
details.text('Lowest mutator utilization in ' + niceDuration(windowNS) + ' windows:');
|
||||||
for (var i = 0; i < worst.length; i++) {
|
for (var i = 0; i < worst.length; i++) {
|
||||||
details.append($('<br/>'));
|
details.append($('<br>'));
|
||||||
var text = worst[i].MutatorUtil.toFixed(3) + ' at time ' + niceDuration(worst[i].Time);
|
var text = worst[i].MutatorUtil.toFixed(3) + ' at time ' + niceDuration(worst[i].Time);
|
||||||
details.append($('<a/>').text(text).attr('href', worst[i].URL));
|
details.append($('<a/>').text(text).attr('href', worst[i].URL));
|
||||||
}
|
}
|
||||||
@ -328,27 +328,27 @@ var templMMU = `<!doctype html>
|
|||||||
<div id="mmu_chart" style="width: 900px; height: 500px; display: inline-block; vertical-align: top">Loading plot...</div>
|
<div id="mmu_chart" style="width: 900px; height: 500px; display: inline-block; vertical-align: top">Loading plot...</div>
|
||||||
<div id="options" style="display: inline-block; vertical-align: top">
|
<div id="options" style="display: inline-block; vertical-align: top">
|
||||||
<p>
|
<p>
|
||||||
<b>View</b><br/>
|
<b>View</b><br>
|
||||||
<input type="radio" name="view" id="system" checked><label for="system">System</label>
|
<input type="radio" name="view" id="system" checked><label for="system">System</label>
|
||||||
<span class="help">?<span>Consider whole system utilization. For example, if one of four procs is available to the mutator, mutator utilization will be 0.25. This is the standard definition of an MMU.</span></span><br/>
|
<span class="help">?<span>Consider whole system utilization. For example, if one of four procs is available to the mutator, mutator utilization will be 0.25. This is the standard definition of an MMU.</span></span><br>
|
||||||
<input type="radio" name="view" id="perProc"><label for="perProc">Per-goroutine</label>
|
<input type="radio" name="view" id="perProc"><label for="perProc">Per-goroutine</label>
|
||||||
<span class="help">?<span>Consider per-goroutine utilization. When even one goroutine is interrupted by GC, mutator utilization is 0.</span></span><br/>
|
<span class="help">?<span>Consider per-goroutine utilization. When even one goroutine is interrupted by GC, mutator utilization is 0.</span></span><br>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Include</b><br/>
|
<b>Include</b><br>
|
||||||
<input type="checkbox" id="stw" checked><label for="stw">STW</label>
|
<input type="checkbox" id="stw" checked><label for="stw">STW</label>
|
||||||
<span class="help">?<span>Stop-the-world stops all goroutines simultaneously.</span></span><br/>
|
<span class="help">?<span>Stop-the-world stops all goroutines simultaneously.</span></span><br>
|
||||||
<input type="checkbox" id="background" checked><label for="background">Background workers</label>
|
<input type="checkbox" id="background" checked><label for="background">Background workers</label>
|
||||||
<span class="help">?<span>Background workers are GC-specific goroutines. 25% of the CPU is dedicated to background workers during GC.</span></span><br/>
|
<span class="help">?<span>Background workers are GC-specific goroutines. 25% of the CPU is dedicated to background workers during GC.</span></span><br>
|
||||||
<input type="checkbox" id="assist" checked><label for="assist">Mark assist</label>
|
<input type="checkbox" id="assist" checked><label for="assist">Mark assist</label>
|
||||||
<span class="help">?<span>Mark assists are performed by allocation to prevent the mutator from outpacing GC.</span></span><br/>
|
<span class="help">?<span>Mark assists are performed by allocation to prevent the mutator from outpacing GC.</span></span><br>
|
||||||
<input type="checkbox" id="sweep"><label for="sweep">Sweep</label>
|
<input type="checkbox" id="sweep"><label for="sweep">Sweep</label>
|
||||||
<span class="help">?<span>Sweep reclaims unused memory between GCs. (Enabling this may be very slow.).</span></span><br/>
|
<span class="help">?<span>Sweep reclaims unused memory between GCs. (Enabling this may be very slow.).</span></span><br>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Display</b><br/>
|
<b>Display</b><br>
|
||||||
<input type="checkbox" id="mut"><label for="mut">Show percentiles</label>
|
<input type="checkbox" id="mut"><label for="mut">Show percentiles</label>
|
||||||
<span class="help">?<span>Display percentile mutator utilization in addition to minimum. E.g., p99 MU drops the worst 1% of windows.</span></span><br/>
|
<span class="help">?<span>Display percentile mutator utilization in addition to minimum. E.g., p99 MU drops the worst 1% of windows.</span></span><br>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -261,7 +261,7 @@ func NewTokenDecoder(t TokenReader) *Decoder {
|
|||||||
// call to Token. To acquire a copy of the bytes, call CopyToken
|
// call to Token. To acquire a copy of the bytes, call CopyToken
|
||||||
// or the token's Copy method.
|
// or the token's Copy method.
|
||||||
//
|
//
|
||||||
// Token expands self-closing elements such as <br/>
|
// Token expands self-closing elements such as <br>
|
||||||
// into separate start and end elements returned by successive calls.
|
// into separate start and end elements returned by successive calls.
|
||||||
//
|
//
|
||||||
// Token guarantees that the StartElement and EndElement
|
// Token guarantees that the StartElement and EndElement
|
||||||
|
@ -940,7 +940,7 @@ func (m mapper) Token() (Token, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestNewTokenDecoderIdempotent(t *testing.T) {
|
func TestNewTokenDecoderIdempotent(t *testing.T) {
|
||||||
d := NewDecoder(strings.NewReader(`<br/>`))
|
d := NewDecoder(strings.NewReader(`<br>`))
|
||||||
d2 := NewTokenDecoder(d)
|
d2 := NewTokenDecoder(d)
|
||||||
if d != d2 {
|
if d != d2 {
|
||||||
t.Error("NewTokenDecoder did not detect underlying Decoder")
|
t.Error("NewTokenDecoder did not detect underlying Decoder")
|
||||||
|
@ -431,7 +431,7 @@ Types of profiles available:
|
|||||||
|
|
||||||
b.WriteString(`</table>
|
b.WriteString(`</table>
|
||||||
<a href="goroutine?debug=2">full goroutine stack dump</a>
|
<a href="goroutine?debug=2">full goroutine stack dump</a>
|
||||||
<br/>
|
<br>
|
||||||
<p>
|
<p>
|
||||||
Profile Descriptions:
|
Profile Descriptions:
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user