From 8e725f8452ac0ece548837a95d125bc67b9d8828 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Fri, 5 Mar 2021 01:53:00 +0000 Subject: [PATCH] all: use HTML5 br tags In HTML5 br tags don't need a closing slash Change-Id: Ic53c43faee08c5b1267daa9a02cc186b1c255ca1 GitHub-Last-Rev: 652208116944d01b23b8af8f1af485da5e916d32 GitHub-Pull-Request: golang/go#44283 Reviewed-on: https://go-review.googlesource.com/c/go/+/292370 Reviewed-by: Russ Cox Run-TryBot: Russ Cox TryBot-Result: Go Bot Trust: Emmanuel Odeke --- 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 ef2e0ea573..ae6e35fca2 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 c06b5808e1..4d191199fb 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 b92fac652c..1d1fd2ea94 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 6f9594d7ba..384d6ad4b8 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 5672ebb375..5a10f5309d 100644 --- a/src/encoding/xml/xml_test.go +++ b/src/encoding/xml/xml_test.go @@ -940,7 +940,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 5389a388c1..a854fef5d3 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: