benfred / py-spy

Sampling profiler for Python programs
MIT License
12.53k stars 414 forks source link

Add flag to avoid filtering out native functions #497

Open smola opened 2 years ago

smola commented 2 years ago

Add --native-unfiltered flag that disables most filtering of native functions in stack traces. Useful to track all calls to libpython functions from extensions, or to debug performance issues in Python itself.

This is a potential solution for #437. The result is a bit noisy, and I'm not sure this is a good implementation. It does the job for me though.