Repository navigation
feat(plugins): run the Python profiler with rc profile python - #20
Merged
colinjlacy merged 1 commit intoNov 18, 2026
Merged
Conversation
Add the Python profiler as an optional language add-on, found the way the others are: runtimeconditions-python-profiler on PATH, or the absolute path in RC_PYTHON_PROFILER. It is run only if its --version --json lists core profile schema 0.4.0, and everything after "python" is passed to it unchanged. The profiler finds binding packages through the metadata of the Python environment it is installed in, so the install hint says to install it into the workload's virtual environment, not an isolated one such as pipx makes. Its console script starts that environment's interpreter, so rc lists no runtime for it. Tested with a fake runner and, by hand, with the real profiler: rc plugins list shows python ready, and rc profile python generate prints the same profile as running the profiler directly.
colinjlacy
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the Python profiler as an optional language add-on, found the way the others are: runtimeconditions-python-profiler on PATH, or the absolute path in RC_PYTHON_PROFILER. It is run only if its --version --json lists core profile schema 0.4.0, and everything after "python" is passed to it unchanged.