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 — Add the ability to turn on/off stats, dump them and clear them, when built with `--enable-pystats` · Issue #93841 · python/cpython

Add the ability to turn on/off stats, dump them and clear them, when built with --enable-pystats #93841

New issue
Copy link
New issue
Copy link
Closed
Closed
Add the ability to turn on/off stats, dump them and clear them, when built with --enable-pystats#93841
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@markshannon
markshannon
opened on Jun 15, 2022
Issue body actions

This would only apply with --enable-pystats and thus #define Py_STATS. For normal builds nothing would change.

Add sys._stats_on(), sys._stats_off(), sys._stats_clear() and sys._stats_dump() functions.
This would allow us to record and dump stats for parts of a program.

This would be useful for experimentation and having stats match timings for pyperf, as we could turn on stats when starting the timer, and turn them off when stopping the timer.

Activity

  1. markshannon
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jun 15, 2022
  2. markshannon commented on Jun 15, 2022

    @markshannon
    markshannon
    on Jun 15, 2022
    MemberAuthor
    More actions

    #93843

  3. markshannon
    added a commit that references this issue on Jun 21, 2022

    GH-93841: Allow stats to be turned on and off, cleared and dumped at …

    6f8875e
  4. serhiy-storchaka
    added a commit that references this issue on Jun 26, 2022

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
  5. hauntsaninja commented on Oct 11, 2022

    @hauntsaninja
    hauntsaninja
    on Oct 11, 2022
    Contributor
    More actions

    Thanks, looks like this has been completed

  6. hauntsaninja
    closed this as completedon Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      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.