From 652208116944d01b23b8af8f1af485da5e916d32 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 16 Feb 2021 19:10:31 +1000 Subject: [PATCH] all: use HTML5 br tags In HTML5 br tags don't need a closing slash --- misc/trace/trace_viewer_full.html | 16 ++++++++-------- src/cmd/compile/internal/ssa/html.go | 2 +- src/cmd/trace/mmu.go | 22 +++++++++++----------- src/encoding/xml/xml.go | 2 +- src/encoding/xml/xml_test.go | 2 +- src/net/http/pprof/pprof.go | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/misc/trace/trace_viewer_full.html b/misc/trace/trace_viewer_full.html index ef2e0ea5733..ae6e35fca22 100644 --- a/misc/trace/trace_viewer_full.html +++ b/misc/trace/trace_viewer_full.html @@ -993,13 +993,13 @@
- X no feedback
- 0 uninitialized
- . premonomorphic
- 1 monomorphic
- ^ recompute handler
- P polymorphic
- N megamorphic
+ X no feedback
+ 0 uninitialized
+ . premonomorphic
+ 1 monomorphic
+ ^ recompute handler
+ P polymorphic
+ N megamorphic
G generic
@@ -3596,7 +3596,7 @@
Graphics Pipeline and Raster Tasks
- When raster tasks are completed in comparison to the rest of the graphics pipeline.
+ When raster tasks are completed in comparison to the rest of the graphics pipeline.
Only pages where raster tasks are completed after beginFrame is issued are included.
diff --git a/src/cmd/compile/internal/ssa/html.go b/src/cmd/compile/internal/ssa/html.go index c06b5808e1c..4d191199fba 100644 --- a/src/cmd/compile/internal/ssa/html.go +++ b/src/cmd/compile/internal/ssa/html.go @@ -1064,7 +1064,7 @@ func (f *Func) HTML(phase string, dot *dotWriter) string { p := htmlFuncPrinter{w: buf} fprintFunc(p, f) - // fprintFunc(&buf, f) // TODO: HTML, not text,
for line breaks, etc. + // fprintFunc(&buf, f) // TODO: HTML, not text,
for line breaks, etc. fmt.Fprint(buf, "") return buf.String() } diff --git a/src/cmd/trace/mmu.go b/src/cmd/trace/mmu.go index b92fac652cc..1d1fd2ea947 100644 --- a/src/cmd/trace/mmu.go +++ b/src/cmd/trace/mmu.go @@ -283,7 +283,7 @@ var templMMU = ` .done(function(worst) { details.text('Lowest mutator utilization in ' + niceDuration(windowNS) + ' windows:'); for (var i = 0; i < worst.length; i++) { - details.append($('
')); + details.append($('
')); var text = worst[i].MutatorUtil.toFixed(3) + ' at time ' + niceDuration(worst[i].Time); details.append($('').text(text).attr('href', worst[i].URL)); } @@ -328,27 +328,27 @@ var templMMU = `
Loading plot...

- View
+ View
- ?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.
+ ?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.
- ?Consider per-goroutine utilization. When even one goroutine is interrupted by GC, mutator utilization is 0.
+ ?Consider per-goroutine utilization. When even one goroutine is interrupted by GC, mutator utilization is 0.

- Include
+ Include
- ?Stop-the-world stops all goroutines simultaneously.
+ ?Stop-the-world stops all goroutines simultaneously.
- ?Background workers are GC-specific goroutines. 25% of the CPU is dedicated to background workers during GC.
+ ?Background workers are GC-specific goroutines. 25% of the CPU is dedicated to background workers during GC.
- ?Mark assists are performed by allocation to prevent the mutator from outpacing GC.
+ ?Mark assists are performed by allocation to prevent the mutator from outpacing GC.
- ?Sweep reclaims unused memory between GCs. (Enabling this may be very slow.).
+ ?Sweep reclaims unused memory between GCs. (Enabling this may be very slow.).

- Display
+ Display
- ?Display percentile mutator utilization in addition to minimum. E.g., p99 MU drops the worst 1% of windows.
+ ?Display percentile mutator utilization in addition to minimum. E.g., p99 MU drops the worst 1% of windows.

diff --git a/src/encoding/xml/xml.go b/src/encoding/xml/xml.go index adaf4daf198..2fd2067dfcf 100644 --- a/src/encoding/xml/xml.go +++ b/src/encoding/xml/xml.go @@ -261,7 +261,7 @@ func NewTokenDecoder(t TokenReader) *Decoder { // call to Token. To acquire a copy of the bytes, call CopyToken // or the token's Copy method. // -// Token expands self-closing elements such as
+// Token expands self-closing elements such as
// into separate start and end elements returned by successive calls. // // Token guarantees that the StartElement and EndElement diff --git a/src/encoding/xml/xml_test.go b/src/encoding/xml/xml_test.go index efddca43e91..ff7b3ecb946 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -880,7 +880,7 @@ func (m mapper) Token() (Token, error) { } func TestNewTokenDecoderIdempotent(t *testing.T) { - d := NewDecoder(strings.NewReader(`
`)) + d := NewDecoder(strings.NewReader(`
`)) d2 := NewTokenDecoder(d) if d != d2 { t.Error("NewTokenDecoder did not detect underlying Decoder") diff --git a/src/net/http/pprof/pprof.go b/src/net/http/pprof/pprof.go index 5389a388c17..a854fef5d38 100644 --- a/src/net/http/pprof/pprof.go +++ b/src/net/http/pprof/pprof.go @@ -431,7 +431,7 @@ Types of profiles available: b.WriteString(`
full goroutine stack dump -
+

Profile Descriptions: