Skip to content

gh-153293: Clear opcode statistics in the live profiler's reset_stats()#153295

Open
lkk7 wants to merge 1 commit into
python:mainfrom
lkk7:fix-live-profiler-reset-opcode-stats
Open

gh-153293: Clear opcode statistics in the live profiler's reset_stats()#153295
lkk7 wants to merge 1 commit into
python:mainfrom
lkk7:fix-live-profiler-reset-opcode-stats

Conversation

@lkk7

@lkk7 lkk7 commented Jul 7, 2026

Copy link
Copy Markdown

LiveStatsCollector.reset_stats() cleared everything except the aggregated opcode_stats.
So after pressing r in --opcodes live mode the opcode panel kept counting instead of resetting.

Clear the opcodes counter correctly and extend the tests.

If this is merged, then 3.15 backport is needed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant