mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
fb4fb0430b
commit
5eb98b3c30
3 changed files with 93 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue