grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
9.66k stars 577 forks source link

Doesn't work with Python3.12 #3287

Open fnmut opened 2 months ago

fnmut commented 2 months ago

Describe the bug

I don't believe this is working with Python3.12, is that right?

To Reproduce

The example referenced here uses Python 3.11, and it works with 3.11

When I use Python 3.12 I get stuck on Pyroscope::Session > Creating Session

Expected behavior

Profiles get sent to a local server using python 3.12

Environment

Additional Context

Any plans to support Python 3.12? Is there something I can do to get it working?

korniltsev commented 2 months ago

There is pyspy issue https://github.com/benfred/py-spy/issues/633

In the meantime, you can try using grafana-agent / alloy . They can profile python apps with pyroscope.ebpf component