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
ROCm-Research-Archive/Scripts and Tests/pyspy.sh
T
2026-08-20 00:45:43 +02:00

8 lines
258 B
Bash

#!/bin/bash
# Get Python stack trace with py-spy
PID=$(pgrep -f 'python main.py' | head -1)
if [ -z "$PID" ]; then echo "NO PROCESS"; exit 1; fi
echo "=== py-spy dump (thread stacks) ==="
/home/fabian/ComfyUI/venv/bin/py-spy dump --pid $PID 2>&1 | head -80