src/DataViews/SamplingReportDataView.cpp
std::string SamplingReportDataView::GetValueForCopy(int row, int column) {
  const SampledFunction& func = GetSampledFunction(row);
  switch (column) {
    case kColumnInclusive:
      return absl::StrFormat("%.2f%%", func.inclusive_percent);
    case kColumnExclusive:
      return absl::StrFormat("%.2f%%", func.exclusive_percent);
    case kColumnUnwindErrors:
      return (func.unwind_errors > 0) ? absl::StrFormat("%.2f%%", func.unwind_errors_percent) : "";
    default:
      return GetValue(row, column);
  }
}
// For columns with two values, a percentage and a raw number, only copy the percentage, so that it
// can be interpreted as a number by a spreadsheet.
For columns with two values, a percentage and a raw number, only copy the percentage, so that it
can be interpreted as a number by a spreadsheet.
For columns with two values a percentage and a raw number only copy the percentage so that it can be interpreted as a number by a spreadsheet .
std::string SamplingReportDataView::GetValueForCopy(int row, int column) {
  const SampledFunction& func = GetSampledFunction(row);
  switch (column) {
    case kColumnInclusive:
      return absl::StrFormat("%.2f%%", func.inclusive_percent);
    case kColumnExclusive:
      return absl::StrFormat("%.2f%%", func.exclusive_percent);
    case kColumnUnwindErrors:
      return (func.unwind_errors > 0) ? absl::StrFormat("%.2f%%", func.unwind_errors_percent) : "";
    default:
      return GetValue(row, column);
  }
}
std :: string SamplingReportDataView :: GetValueForCopy ( int row , int column ) { const SampledFunction & func = GetSampledFunction ( row ) ; switch ( column ) { case kColumnInclusive : return absl :: StrFormat ( " " , func . inclusive_percent ) ; case kColumnExclusive : return absl :: StrFormat ( " " , func . exclusive_percent ) ; case kColumnUnwindErrors : return ( func . unwind_errors > 0 ) ? absl :: StrFormat ( " " , func . unwind_errors_percent ) : " " ; default : return GetValue ( row , column ) ; } }
For columns with two values, a percentage and a raw number, only copy the percentage, so that it
can be interpreted as a number by a spreadsheet.
For columns with two values a percentage and a raw number only copy the percentage so that it can be interpreted as a number by a spreadsheet .