code: func printText(w io.Writer, rpt *Report) error {
  	items, labels := TextItems(rpt)
  	fmt.Fprintln(w, strings.Join(labels, "\n"))
  	fmt.Fprintf(w, "%10s %5s%% %5s%% %10s %5s%%\n",
  		"flat", "flat", "sum", "cum", "cum")
  	var flatSum int64
  	for _, item := range items {
  		inl := item.InlineLabel
  		if inl != "" {
  			inl = " " + inl
  		}
  		flatSum += item.Flat
  		fmt.Fprintf(w, "%10s %s %s %10s %s  %s%s\n",
  			item.FlatFormat, measurement.Percentage(item.Flat, rpt.total),
  			measurement.Percentage(flatSum, rpt.total),
  			item.CumFormat, measurement.Percentage(item.Cum, rpt.total),
  			item.Name, inl)
  	}
  	return nil
  }
docs: // printText prints a flat text report for a profile.