code: def add_profile(self, profile, selected):
          
          report = Report(profile)
          report.selected = selected
          if selected:
              self.report['settings']['selected_profiles'].append(report.name)
              self.report['settings']['selected_profile_count'] += 1
          self.report['settings']['total_profile_count'] += 1
          self.profiles.setdefault(report.name, report)
          return report
docs: Add profile to report.