code: func reportLabels(rpt *Report, g *graph.Graph, origCount, droppedNodes, droppedEdges int, fullHeaders bool) []string {
  	nodeFraction := rpt.options.NodeFraction
  	edgeFraction := rpt.options.EdgeFraction
  	nodeCount := len(g.Nodes)
  
  	var label []string
  	if len(rpt.options.ProfileLabels) > 0 {
  		label = append(label, rpt.options.ProfileLabels...)
  	} else if fullHeaders || !rpt.options.CompactLabels {
  		label = ProfileLabels(rpt)
  	}
  
  	var flatSum int64
  	for _, n := range g.Nodes {
  		flatSum = flatSum + n.FlatValue()
  	}
  
  	if len(rpt.options.ActiveFilters) > 0 {
  		activeFilters := legendActiveFilters(rpt.options.ActiveFilters)
  		label = append(label, activeFilters...)
  	}
  
  	label = append(label, fmt.Sprintf("Showing nodes accounting for %s, %s of %s total", rpt.formatValue(flatSum), strings.TrimSpace(measurement.Percentage(flatSum, rpt.total)), rpt.formatValue(rpt.total)))
  
  	if rpt.total != 0 {
  		if droppedNodes > 0 {
  			label = append(label, genLabel(droppedNodes, "node", "cum",
  				rpt.formatValue(abs64(int64(float64(rpt.total)*nodeFraction)))))
  		}
  		if droppedEdges > 0 {
  			label = append(label, genLabel(droppedEdges, "edge", "freq",
  				rpt.formatValue(abs64(int64(float64(rpt.total)*edgeFraction)))))
  		}
  		if nodeCount > 0 && nodeCount < origCount {
  			label = append(label, fmt.Sprintf("Showing top %d nodes out of %d",
  				nodeCount, origCount))
  		}
  	}
  	return label
  }
docs: // reportLabels returns printable labels for a report. Includes
  // profileLabels.