py-spy supports profiling native python extensions written in languages like C/C++ or Cython, on x86_64 Linux and Windows. You can enable this mode by passing --native on the command line.
How should it be called? Try a simple program:
py-spy record --native -o profile.svg -- python3 test.py
The docs state:
How should it be called? Try a simple program:
And I got the error "unrecognized flag".