python / python/cpython

Expose internal stack introspection APIs as a statistical runtime analysis tool

Open
#135,953 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

interpreter-core type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

Feature or enhancement

Implement a new high-frequency runtime observer that leverages the existing _remote_debugging module to collect detailed execution statistics from running Python processes. This tool enables non-intrusive observation of production applications by attaching to already-running processes without requiring any code modifications, restarts, or special startup flags. The observer can perform extremely high-frequency sampling of stack traces and interpreter state, providing detailed runtime execution analysis of live applications.

Linked PRs
  • gh-135998
  • gh-136777
  • gh-138304
  • gh-138715
  • gh-138721
  • gh-138875
  • gh-138880
  • gh-139364
  • gh-139485
  • gh-141666
  • gh-141689
  • gh-141719
  • gh-146045

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing _remote_debugging module and the linked PRs listed in the issue, since they appear to contain the active implementation work. Determine which stack-introspection APIs and observer behavior are intended before estimating scope; the issue is complete only when the agreed runtime analysis tool can attach to running Python processes and collect the specified statistics without code changes or restarts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.