GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Document new profiling package and restructure the profiler docs according to PEP 799 · Issue #140727 · python/cpython

Document new profiling package and restructure the profiler docs according to PEP 799 #140727

New issue
Copy link
New issue
Copy link
Closed
Closed
Document new profiling package and restructure the profiler docs according to PEP 799#140727
Copy link
Assignees
pablogsal
Labels
3.15bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-profiling

Description

@dimaqq
dimaqq
opened on Oct 28, 2025
Issue body actions

Documentation

The doc states at https://docs.python.org/3.15/whatsnew/3.15.html#pep-799-high-frequency-statistical-sampling-profiler:

Profile process 1234 for 10 seconds with default settings:

python -m profiling.sampling 1234

At least on macOS, the argument "1234" is interpreted as a Python script to run, not a PID:

(jgol-peer) 🦐/c/j/peer (main)> sudo -E env PYTHONPATH=src python -m profiling.sampling 1234
Profiler coordinator error: Script not found: /code/jgol/peer/1234
...
...
TypeError: Cannot create or construct a <class 'pstats.SampledStats'> object from <profiling.sampling.pstats_collector.PstatsCollector object at 0x1036441a0>

Meanwhile a Python script is accepted:

(jgol-peer) 🦐/c/j/peer (main)> echo "import ops" > foo.py
(jgol-peer) 🦐/c/j/peer (main)> sudo -E env PYTHONPATH=src python -m profiling.sampling foo.py
Captured 586 samples in 0.06 seconds
Sample rate: 10000.02 samples/sec
Error rate: 7.17%
Profile Stats:
...
...

Linked PRs

  • gh-140727: Restructure profiling documentation for PEP 799 #142373
  • gh-140727: Update tachyon logo #148965

Activity

  1. dimaqq
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Oct 28, 2025
  2. github-project-automation
    moved this to Todo in docs issueson Oct 28, 2025
  3. github-project-automation
    added this to docs issueson Oct 28, 2025
  4. StanFromIreland commented on Oct 28, 2025

    @StanFromIreland
    StanFromIreland
    on Oct 28, 2025
    Member
    More actions

    CC @pablogsal

  5. pablogsal commented on Oct 29, 2025

    @pablogsal
    pablogsal
    on Oct 29, 2025
    Member
    More actions

    Ah this is out of date! Thanks for bringing it up. We are changing this quite a bit, and once the this stabilizes we will update back the what's new hopefully before the next alpha. You can always run `python3.15 -m profiling.sampling -h to know exactly what it takes"

    Reacted by yihong
  6. StanFromIreland
    added
    topic-profiling
    on Oct 30, 2025
  7. terryjreedy commented on Dec 6, 2025

    @terryjreedy
    terryjreedy
    on Dec 6, 2025
    Member
    More actions

    I suggest that this issue be broadened into "Document new profiling package" as there is nothing now in module list and index. Importing profiling, profiling.sampling (new subpackage), and profiling.tracing (package that replaces profile (and CProfile?) modules) and calling help result in an output that directs one to non-existent https://docs.python.org/3.15/library/profiling.html, etc. The long What's new entry should be moved to a new sampling.rst and replaced in What's New with a link to the new .html.

    Reacted by Pablo Galindo Salgado and Gregory P. Smith
  8. pablogsal commented on Dec 6, 2025

    @pablogsal
    pablogsal
    on Dec 6, 2025
    Member
    More actions

    I suggest that this issue be broadened into "Document new profiling package" as there is nothing now in module list and index.

    Indeed. We have planned a whole Docs overhaul once development stars to stabilize and we have a fixed list of things. We are planing some docs on understanding sampling profiling + a profiling HOWTO.

    Importing profiling, profiling.sampling (new subpackage), and profiling.tracing (package that replaces profile (and CProfile?) modules) and calling help result in an output that directs one to non-existent https://docs.python.org/3.15/library/profiling.html, etc.

    I am not sure where is the 'redirect'. Can you point to where you are seeing that redirect to the docs?

    The long What's new entry should be moved to a new sampling.rst and replaced in What's New with a link to the new .html.

    Agreed. This will be done once we have the docs in place

  9. pablogsal commented on Dec 6, 2025

    @pablogsal
    pablogsal
    on Dec 6, 2025
    Member
    More actions

    See also https://github.com/python/cpython/pull/140156/files

  10. pablogsal
    changed the title [-]3.15 what's new profiling example arguments seem incorrect[/-] [+]Document new profiling package[/+] on Dec 6, 2025
  11. pablogsal
    self-assigned this
    on Dec 6, 2025
  12. gpshead commented on Dec 7, 2025

    @gpshead
    gpshead
    on Dec 7, 2025
    Member
    More actions

    what terry said... but also I assume this is work in progress. 😁 it was a bit confusing to look at the https://docs.python.org/3.15/library/profile.html and see a link to a non-existantLib/profile/sample.py file and an unlinked presumed not-yet-existant profiling.sampling reference.

  13. gpshead
    added
    3.15bugs and security fixesbugs and security fixes
    on Dec 7, 2025
  14. pablogsal
    changed the title [-]Document new profiling package[/-] [+]Document new profiling package and restructure the profiler docs according to PEP 799[/+] on Dec 7, 2025
  15. pablogsal commented on Dec 7, 2025

    @pablogsal
    pablogsal
    on Dec 7, 2025
    Member
    More actions

    Here we go #142373

    Reacted by Stan Ulbrych
  16. pablogsal
    added 3 commits that reference this issue on Dec 7, 2025

    Merge pull request #107 from StanFromIreland/pythongh-140727

    ecfda31

    Merge branch 'main' into pythongh-140727

    fda1b16

    gh-140727: Restructure profiling documentation for PEP 799 (#142373)

    4279785
  17. pablogsal
    closed this as completedon Dec 9, 2025
  18. pablogsal
    added a sub-issue on Dec 25, 2025
    • Improve Tachyon UX #142927
  19. pablogsal
    removed a sub-issue on Dec 25, 2025
    • Improve Tachyon UX #142927
  20. maigimenez
    added 2 commits that reference this issue on Apr 24, 2026

    pythongh-140727: Update tachyon logo

    9b6bc0c

    pythongh-140727: Update tachyon logo

    c0cce8a
  21. pablogsal
    added a commit that references this issue on Apr 25, 2026

    gh-140727: Update tachyon logo (#148965)

    a2fa63b
  22. maigimenez
    added a commit that references this issue on Apr 26, 2026

    pythongh-140727: Move tachyon logo to static assets

    6269f92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @pablogsal
    pablogsal

Labels

3.15bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-profiling

Projects

  • docs issues
    Status
    Todo
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.