#!/bin/bash # Check Kimi profiling progress echo "=== IX-PROFILER PROFILING STATUS ===" echo "Time: $(date)" echo "" # Is it running? PID=$(pgrep -f infer_unified) if [ -n "$PID" ]; then echo "STATUS: RUNNING (PID $PID)" ELAPSED=$(ps -o etime= -p $PID 2>/dev/null) echo "ELAPSED: $ELAPSED" RSS=$(ps -o rss= -p $PID 2>/dev/null) echo "RAM: $((RSS/1024)) MB" else echo "STATUS: FINISHED" fi echo "" # Current layer LAST_PHASE=$(grep "PHASE" ${LOG:-profile_run.log} 2>/dev/null | tail -1) TOTAL_PHASES=$(grep -c "PHASE" ${LOG:-profile_run.log} 2>/dev/null) echo "LAST LAYER: $LAST_PHASE" echo "TOTAL PHASES: $TOTAL_PHASES" echo "" # Profile CSV if [ -f ${OUT:-expert_profile.csv} ]; then LINES=$(wc -l < ${OUT:-expert_profile.csv}) echo "PROFILE CSV: $LINES lines" head -5 ${OUT:-expert_profile.csv} else echo "PROFILE CSV: not yet created (will appear when run completes)" fi