INNER CODE UNIT · Python

avg_gpu_power_list

tlkh/asitop · asitop/asitop.py:168

    avg_gpu_power_list = deque([], maxlen=int(args.avg / args.interval))

    clear_console()

    count=0
    try:
        while True:
            if args.max_count > 0:
                if count >= args.max_count:
                    count = 0
                    powermetrics_process.terminate()
                    timecode = str(int(time.time()))
                    powermetrics_process = run_powermetrics_process(
                        timecode, interval=args.interval * 1000)
                count += 1
            ready = parse_powermetrics(timecode=timecode)
            if ready:
                cpu_metrics_dict, gpu_metrics_dict, thermal_pressure, bandwidth_metrics, timestamp = ready

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…