code: func New(prof *profile.Profile, options Options, value func(s *profile.Sample) int64, unit string) *Report {
  	o := &options
  	if o.SampleUnit == "" {
  		o.SampleUnit = unit
  	}
  	format := func(v int64) string {
  		if r := o.Ratio; r > 0 && r != 1 {
  			fv := float64(v) * r
  			v = int64(fv)
  		}
  		return scaledValueLabel(v, o.SampleUnit, o.OutputUnit)
  	}
  	return &Report{prof, computeTotal(prof, value), o, value, format}
  }
docs: // New builds a new report indexing the sample values interpreting the
  // samples with the provided function.