code: def gen_format_all(self, usage):
          
          format_string = " "
          core_strings = []
          for core, usage in usage.items():
              if core == 'usage_cpu' and self.exclude_average:
                  continue
              elif core == 'usage':
                  continue
  
              core = core.replace('usage_', '')
              string = self.formatter.format(self.format_all,
                                             core=core,
                                             usage=usage)
              core_strings.append(string)
  
          core_strings = sorted(core_strings)
  
          return format_string.join(core_strings)
docs: generates string for format all