parameters: ()
docstring: Return a list of namedtuple representing the CPU times
      for every CPU available on the system.
docstring_summary: Return a list of namedtuple representing the CPU times
      for every CPU available on the system.
docstring_tokens: Return a list of namedtuple representing the CPU times for every CPU available on the system .
function: def per_cpu_times():
      """Return a list of namedtuple representing the CPU times
      for every CPU available on the system.
      """
      procfs_path = get_procfs_path()
      set_scputimes_ntuple(procfs_path)
      cpus = []
      with open_binary('%s/stat' % procfs_path) as f:
          # get rid of the first line which refers to system wide CPU stats
          f.readline()
          for line in f:
              if line.startswith(b'cpu'):
                  values = line.split()
                  fields = values[1:len(scputimes._fields) + 1]
                  fields = [float(x) / CLOCK_TICKS for x in fields]
                  entry = scputimes(*fields)
                  cpus.append(entry)
          return cpus
function_tokens: def per_cpu_times ( ) : procfs_path = get_procfs_path ( ) set_scputimes_ntuple ( procfs_path ) cpus = [ ] with open_binary ( '%s/stat' % procfs_path ) as f : # get rid of the first line which refers to system wide CPU stats f . readline ( ) for line in f : if line . startswith ( b'cpu' ) : values = line . split ( ) fields = values [ 1 : len ( scputimes . _fields ) + 1 ] fields = [ float ( x ) / CLOCK_TICKS for x in fields ] entry = scputimes ( * fields ) cpus . append ( entry ) return cpus