chore: commit untracked UE/scaffold files (repo cleanup triage 20260707)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
85
scripts/monitoring/ue5_build_monitor.sh
Executable file
85
scripts/monitoring/ue5_build_monitor.sh
Executable file
@@ -0,0 +1,85 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# UE5 Build Monitor Script
|
||||
# Monitors the progress of Unreal Engine build
|
||||
#
|
||||
|
||||
BUILD_DIR="$HOME/UnrealEngine"
|
||||
BUILD_LOG="$BUILD_DIR/build.log"
|
||||
BINARY_PATH="$BUILD_DIR/Engine/Binaries/Linux/UnrealEditor"
|
||||
|
||||
echo "=== UE5.4.1 Build Monitor ==="
|
||||
echo ""
|
||||
|
||||
# Check if build is running
|
||||
if pgrep -f "make -j4 UnrealEditor" > /dev/null; then
|
||||
echo "✓ Build is RUNNING"
|
||||
echo " PID: $(pgrep -f 'make -j4 UnrealEditor' | head -1)"
|
||||
else
|
||||
echo "⚠ Build is NOT running"
|
||||
echo " (May have completed or not started)"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
# Check build log
|
||||
if [ -f "$BUILD_LOG" ]; then
|
||||
LOG_SIZE=$(du -h "$BUILD_LOG" | cut -f1)
|
||||
echo "Build Log: $BUILD_LOG"
|
||||
echo "Log Size: $LOG_SIZE"
|
||||
echo ""
|
||||
echo "Last 10 lines of build log:"
|
||||
echo "----------------------------------------"
|
||||
tail -10 "$BUILD_LOG"
|
||||
echo "----------------------------------------"
|
||||
else
|
||||
echo "Build log not found: $BUILD_LOG"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
# Check if binary exists
|
||||
if [ -f "$BINARY_PATH" ]; then
|
||||
BINARY_SIZE=$(du -h "$BINARY_PATH" | cut -f1)
|
||||
BINARY_DATE=$(stat -c %y "$BINARY_PATH" | cut -d'.' -f1)
|
||||
echo "✓ UnrealEditor binary EXISTS"
|
||||
echo " Size: $BINARY_SIZE"
|
||||
echo " Last modified: $BINARY_DATE"
|
||||
echo ""
|
||||
echo "Build appears to be COMPLETE!"
|
||||
echo "Verify with: $BINARY_PATH -version"
|
||||
else
|
||||
echo "⏳ UnrealEditor binary not found yet"
|
||||
echo " Expected location: $BINARY_PATH"
|
||||
echo " Build still in progress..."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
# Check disk usage
|
||||
if [ -d "$BUILD_DIR" ]; then
|
||||
DISK_USAGE=$(du -sh "$BUILD_DIR" 2>/dev/null | cut -f1)
|
||||
echo "Installation size: $DISK_USAGE"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
|
||||
# Check CPU/Memory usage
|
||||
if pgrep -f "make -j4 UnrealEditor" > /dev/null; then
|
||||
echo "Build process resource usage:"
|
||||
ps aux | grep "make -j4" | grep -v grep | awk '{printf " CPU: %s%%, Memory: %s%%\n", $3, $4}'
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Monitoring Commands ==="
|
||||
echo ""
|
||||
echo "Watch build log:"
|
||||
echo " tail -f $BUILD_LOG"
|
||||
echo ""
|
||||
echo "Check if running:"
|
||||
echo " ps aux | grep 'make -j4'"
|
||||
echo ""
|
||||
echo "Check binary:"
|
||||
echo " ls -lh $BINARY_PATH"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user