{{if not .Standalone}}{{template "css" .}}{{end}} {{template "weblistcss" .}} {{template "weblistjs" .}} {{"\n" -}} {{/* emit different header in standalone mode */ -}} {{if .Standalone}}{{"\n" -}}
{{"" -}} {{range $i, $e := .Legend -}} {{if $i}}
{{"\n"}}{{end}}{{. -}} {{end}}
Total: {{.Listing.Total -}}
{{"" -}} {{else -}} {{template "header" .}}
{{"" -}} {{end -}} {{range .Listing.Files -}} {{range .Funcs -}}

{{.Name}}

{{"" -}}

{{.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 " -}}
{{"\n" -}} {{template "script" .}}{{"\n" -}} {{"" -}} {{end}}