internal/driver/html/source.html
{{"" -}} {{end -}} {{range .Listing.Files -}} {{range .Funcs -}}
{{"" -}}
{{.File}}
{{"\n" -}}
{{"\n" -}}
{{printf " Total: %10s %10s (flat, cum) %s" .Flat .Cumulative .Percent -}}
{{range .Lines -}}{{"\n" -}}
{{/* source line */ -}}{{printf " %6d" .Line}}{{" " -}} {{- printf " %10s %10s %8s %s " .Flat .Cumulative "" .SrcLine -}} {{"" -}}
{{if .Instructions -}}
{{/* instructions for this source line */ -}}{{"" -}} {{range .Instructions -}} {{/\* separate when we hit a new basic block \*/ -}} {{if .NewBlock -}}{{printf " %8s %28s\n" "" "⋮"}}{{end -}} {{/\* inlined calls leading to this instruction \*/ -}} {{range .InlinedCalls -}} {{printf " %8s %10s %10s %8s " "" "" "" "" -}} {{.SrcLine}}{{" " -}} {{.FileBase}}:{{.Line}}{{"\n" -}} {{end -}} {{if not .Synthetic -}} {{/\* disassembled instruction \*/ -}} {{printf " %8s %10s %10s %8x: %s " "" .Flat .Cumulative .Address .Disasm -}} {{.FileLine}}{{"\n" -}} {{end -}} {{end -}} {{"" -}}
{{end -}}
{{/* end of line */ -}}
{{end}}{{"\n" -}}
{{"\n" -}} {{/* end of function */ -}} {{end -}} {{/* end of file */ -}} {{end -}} {{if not .Standalone}}{{"\n " -}}