Files
Recomp_Tools/bench-status.cmd
Thomas MartinandClaude Opus 5 2346235d6d The bench-lock tools for this box's PS2Recomp ports: bench_status.py reads the two slots, the waiting queue, the priority requests and the ports' own processes, and prints who holds the bench, until when and why (--short, --json, --watch, --procs-all); bench_gui.pyw shows the same state as a small always-on-top window, the slots with their why, the file of waiters with the open requests to pass, and the runners, a double-click opening a project's folder; the launchers (bench-gui.vbs without a console flash, bench-gui.cmd, bench-status.cmd, bench-watch.cmd, bench-status for bash) and a README of what each field means
Read-only throughout: nothing here takes, releases or cleans a slot, a queue entry or a
request, so it cannot disturb a measurement. The staleness of a slot is decided the way
PS2Recomp/tools/bench_lock.sh decides it (HHMM compare, the midnight window), so the
verdict matches the tool the ports actually run, and the port names are mapped to the
checkouts by the PROJECTS table at the top of bench_status.py. The process scan goes
through one PowerShell call with CREATE_NO_WINDOW: pythonw has no console, so without it
the window popped one every 15 s.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-11-01 23:38:27 +01:00

8 lines
219 B
Batchfile

@echo off
rem Status of the shared PS2Recomp bench lock: bench-status [--short|--json|--watch [s]|--procs-all|--no-procs]
setlocal
set PY=python
where /q python || set PY=py
"%PY%" -I "%~dp0bench_status.py" %*
endlocal