This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-08-20 00:45:43 +02:00

8 lines
248 B
Bash

#!/bin/bash
PID=$(pgrep -f 'python main.py' | head -1)
if [ -z "$PID" ]; then echo "NO PROCESS"; exit 1; fi
echo "PID: $PID"
echo ""
# py-spy needs to be run from the venv or with full path
/home/fabian/ComfyUI/venv/bin/py-spy dump --pid $PID 2>&1