5 lines
151 B
Bash
5 lines
151 B
Bash
#!/bin/bash
|
|
PID=$(pgrep -f main.py | head -n 1)
|
|
echo "PID=$PID"
|
|
timeout 10 sudo /home/fabian/ComfyUI/venv/bin/py-spy dump --pid $PID 2>&1 | head -n 80
|