benfred / py-spy

Sampling profiler for Python programs
MIT License
12.13k stars 401 forks source link

Cant get to run with uvicorn #671

Closed ZeN220 closed 1 week ago

ZeN220 commented 1 week ago

Im running a web-server by means of uvicorn like command:

uvicorn --host 127.0.0.1 --port 3000 --factory my_factory

After im copying PID from uvicorn logs and trying run the py-spy:

> py-spy top --pid 22952
Error: Failed to find a python interpreter in the .data section

what im doing wrong?

My setp

Windows 11 Python 3.10 uvicorn 0.30.1 py-spy 0.3.14