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

Implement a safe API wrapping PyEval_SetProfile #4039

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Commits on Jun 23, 2024

  1. Add unlimited-api feature

    Fixes PyO3#2865.
    LilyFoote committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    98f3a5b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1e49383 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d557f9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e3f924a View commit details
    Browse the repository at this point in the history
  5. Add instrumentation feature

    LilyFoote committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    9632bb9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eedbb34 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c48d218 View commit details
    Browse the repository at this point in the history
  8. Fix c_int import for MSRV

    LilyFoote committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    c621bbb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d55c7f3 View commit details
    Browse the repository at this point in the history
  10. Avoid checking overhead in profile_callback

    We can trust the types CPython provides to be correct.
    LilyFoote committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    9f10f87 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    82afd8e View commit details
    Browse the repository at this point in the history
  12. Rename register_profiler to setprofile

    This matches the Python naming better.
    LilyFoote committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    e82b04b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0a6d94a View commit details
    Browse the repository at this point in the history
  14. Use PyRef in profile_callback

    `PyRefMut` can lead to problems when profiling a multithreaded Python
    program. Using `PyRef` and interior mutability is more robust.
    LilyFoote committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    2e184e3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3ae8ef4 View commit details
    Browse the repository at this point in the history