I'm experimenting with py-spy in a container, it doesn't run as root, so i'm using the py-spy record -- whatever type option. It works great, but i have to kill the container to generate the dump.
This is a bit fiddly on kubernetes, because i need to write it somewhere that will persist the container restart.
I'm wondering if there's any way to get it to write its data either periodically to disk, or with a process signal, rather than on process exit?
I'm experimenting with py-spy in a container, it doesn't run as root, so i'm using the
py-spy record -- whatever
type option. It works great, but i have to kill the container to generate the dump.This is a bit fiddly on kubernetes, because i need to write it somewhere that will persist the container restart.
I'm wondering if there's any way to get it to write its data either periodically to disk, or with a process signal, rather than on process exit?
Thanks!