diff options
author | Yury Smolsky <yury@smolsky.by> | 2018-06-08 00:25:12 +0300 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2018-06-13 21:02:54 +0000 |
commit | 5eb98b3c3016c7dd10d71ee15bb6fc5d3128bec9 (patch) | |
tree | 4b9fac9cdd59e7c0c04c856a6036dd4110c5977a /src/cmd/compile/internal/ssa/compile.go | |
parent | fb4fb0430b8d77b5487f51fd780bba25476e816c (diff) | |
download | go-5eb98b3c3016c7dd10d71ee15bb6fc5d3128bec9.tar.gz go-5eb98b3c3016c7dd10d71ee15bb6fc5d3128bec9.zip |
cmd/compile: use expandable columns in ssa.html
Display just a few columns in ssa.html, other
columns can be expanded by clicking on collapsed column.
Use sans serif font for the text, slightly smaller font size
for non program text.
Fixes #25286
Change-Id: I1094695135401602d90b97b69e42f6dda05871a2
Reviewed-on: https://go-review.googlesource.com/117275
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/compile.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/compile.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/compile.go b/src/cmd/compile/internal/ssa/compile.go index 4bd9ade479..c7797d79e9 100644 --- a/src/cmd/compile/internal/ssa/compile.go +++ b/src/cmd/compile/internal/ssa/compile.go @@ -43,7 +43,7 @@ func Compile(f *Func) { // Run all the passes printFunc(f) - f.HTMLWriter.WriteFunc("start", f) + f.HTMLWriter.WriteFunc("start", "start", f) if BuildDump != "" && BuildDump == f.Name { f.dumpFile("build") } @@ -86,7 +86,7 @@ func Compile(f *Func) { f.Logf(" pass %s end %s\n", p.name, stats) printFunc(f) - f.HTMLWriter.WriteFunc(fmt.Sprintf("after %s <span class=\"stats\">%s</span>", phaseName, stats), f) + f.HTMLWriter.WriteFunc(phaseName, fmt.Sprintf("%s <span class=\"stats\">%s</span>", phaseName, stats), f) } if p.time || p.mem { // Surround timing information w/ enough context to allow comparisons. |