3 ms·
Note that py-spy seems problematic in containers—it requires ptrace, which means you need a special capability, and that's a security risk so many environments
by itamarst 6y ago
Note that py-spy seems problematic in containers—it requires ptrace, which means you need a special capability, and that's a security risk so many environments won't even give people the option to enable it.
In addition to vmprof, pyinstrument is another alternative.