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

Python 3.12 support for profiler #7787

Open
3 tasks
Tracked by #7769
AdamYoblick opened this issue Dec 11, 2023 · 0 comments
Open
3 tasks
Tracked by #7769

Python 3.12 support for profiler #7787

AdamYoblick opened this issue Dec 11, 2023 · 0 comments
Assignees

Comments

@AdamYoblick
Copy link
Member

AdamYoblick commented Dec 11, 2023

This is the largest task in the 3.12 support epic.

It's much trickier because the cpython team changed lots of the python internals between 3.9 and 3.12, which will cause mismatches between our headers and the cpython ones. I've reached out to the VS team to see what the status is around VS interpreting ETW events, which would be much less work that modifying our custom profiling code and manually matching cpython headers.

Steve Dower has released a python package that publishes the ETW events at https://dev.azure.com/mseng/Python/_artifacts/feed/Python/PyPI/etwtrace/overview/0.1b2.

So here are the tasks on our end:

  • Add this package as a dependency of PTVS and package it up into the vsix that gets injected into the VS installer. Make sure it's installed/enabled.
  • Verify that the ETW events are being generated when running python code through VS.
  • Work with the VS team to have VS listen to these events and hook them up to the VS profiling tool.

Note that this approach will not work for line-level profiling (code coverage). This will require a different solution. We need to see what the line-level profiling experience looks like for other languages so we know what we need to support.

@AdamYoblick AdamYoblick changed the title PTVS profiler, mixed-mode debugger (Concord), pydebugattach Python 3.12 support for profiler, mixed-mode-debugger (Concord), pydebugattach Dec 11, 2023
@AdamYoblick AdamYoblick changed the title Python 3.12 support for profiler, mixed-mode-debugger (Concord), pydebugattach Python 3.12 support for profiler Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant