Beispiel #1
0
 def per_cpu_times():
     """Return system CPU times as a namedtuple"""
     ret = []
     for cpu_t in cext.per_cpu_times():
         user, nice, system, idle, irq = cpu_t
         item = scputimes(user, nice, system, idle, irq)
         ret.append(item)
     return ret
Beispiel #2
0
 def per_cpu_times():
     """Return system CPU times as a namedtuple"""
     ret = []
     for cpu_t in cext.per_cpu_times():
         user, nice, system, idle, irq = cpu_t
         item = scputimes(user, nice, system, idle, irq)
         ret.append(item)
     return ret