parca-dev / parca-agent

eBPF based always-on profiler auto-discovering targets in Kubernetes and systemd, zero code changes or restarts needed!
https://parca.dev/
Apache License 2.0
558 stars 68 forks source link

Python Memory Profiling #2643

Open yaroslavkasatikov opened 8 months ago

yaroslavkasatikov commented 8 months ago

Hi team, I have tried to lookup many docs, but haven't found the way how to profile python memory with Parca. Is it possible (ideally I want to have smth like https://github.com/bloomberg/memray but with continuous profiling). Could you please help me with this case?

Thanks!

metalmatze commented 6 months ago

We don't officially support memory profiling with Python at the moment.

Something that might work is using https://github.com/timpalpant/pypprof, which then needs to be scraped by Parca. We might investigate these things in the future.