code: func printHeader(w io.Writer, rpt *Report) {
  	fmt.Fprintln(w, `
  <!DOCTYPE html>
  <html>
  <head>
  <meta charset="UTF-8">
  <title>Pprof listing</title>`)
  	fmt.Fprintln(w, weblistPageCSS)
  	fmt.Fprintln(w, weblistPageScript)
  	fmt.Fprint(w, "</head>\n<body>\n\n")
  
  	var labels []string
  	for _, l := range ProfileLabels(rpt) {
  		labels = append(labels, template.HTMLEscapeString(l))
  	}
  
  	fmt.Fprintf(w, `<div class="legend">%s<br>Total: %s</div>`,
  		strings.Join(labels, "<br>\n"),
  		rpt.formatValue(rpt.total),
  	)
  }
docs: // printHeader prints the page header for a weblist report.