#!/bin/bash
echo "=== CPU TIME CHECK ==="
cat /proc/15070/stat 2>/dev/null | awk '{print "utime="$14, "stime="$15, "threads="$20, "vsize_mb="int($23/1024/1024)}'
sleep 3
cat /proc/15070/stat 2>/dev/null | awk '{print "utime="$14, "stime="$15, "threads="$20, "vsize_mb="int($23/1024/1024)}'

echo "=== LOG SIZE CHECK ==="
wc -c < /home/fabian/comfyui5.log
sleep 3
wc -c < /home/fabian/comfyui5.log

echo "=== COMGR CACHE ==="
du -sh /home/fabian/.cache/comgr/ 2>/dev/null
ls /home/fabian/.cache/comgr/ 2>/dev/null | wc -l
