|
|
|
@ -1,9 +1,8 @@ |
|
|
|
|
#!/usr/bin/env python3 |
|
|
|
|
import argparse |
|
|
|
|
|
|
|
|
|
import numpy as np |
|
|
|
|
|
|
|
|
|
from cereal.messaging import SubMaster |
|
|
|
|
from common.numpy_fast import mean |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def cputime_total(ct): |
|
|
|
@ -49,7 +48,7 @@ if __name__ == "__main__": |
|
|
|
|
|
|
|
|
|
if sm.updated['thermal']: |
|
|
|
|
t = sm['thermal'] |
|
|
|
|
last_temp = np.mean(t.cpu) |
|
|
|
|
last_temp = mean(t.cpu) |
|
|
|
|
last_mem = t.memUsedPercent |
|
|
|
|
|
|
|
|
|
if sm.updated['procLog']: |
|
|
|
@ -72,7 +71,7 @@ if __name__ == "__main__": |
|
|
|
|
total_times = total_times_new[:] |
|
|
|
|
busy_times = busy_times_new[:] |
|
|
|
|
|
|
|
|
|
print("CPU %.2f%% - RAM: %.2f - Temp %.2f" % (100. * np.mean(cores), last_mem, last_temp)) |
|
|
|
|
print("CPU %.2f%% - RAM: %.2f - Temp %.2f" % (100. * mean(cores), last_mem, last_temp)) |
|
|
|
|
|
|
|
|
|
if args.cpu and prev_proclog is not None: |
|
|
|
|
procs = {} |
|
|
|
|