Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--native #646

Open
w14 opened this issue Dec 18, 2023 · 2 comments
Open

--native #646

w14 opened this issue Dec 18, 2023 · 2 comments

Comments

@w14
Copy link

w14 commented Dec 18, 2023

The docs state:

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

And I got the error "unrecognized flag".

@benfred
Copy link
Owner

benfred commented Dec 19, 2023

Hmm, this should work (at least on x86_64 Linux and windows)

What operating system are you using? Also what kind of cpu is this on?

@peekxc
Copy link

peekxc commented Mar 8, 2024

Can confirm this doesn't work on OS X (x86_64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants