Skip to content

gh-150327: Add Perfetto trace output to profiling.sampling - #154541

Open
LalitMaganti wants to merge 4 commits into
python:mainfrom
LalitMaganti:main
Open

LalitMaganti wants to merge 4 commits into
python:mainfrom
LalitMaganti:main

Conversation

@LalitMaganti

@LalitMaganti LalitMaganti commented Jul 23, 2026 •

Copy link
Copy Markdown

@LalitMaganti
LalitMaganti requested a review from pablogsal as a code owner July 23, 2026 14:13
@bedevere-app

bedevere-app Bot commented Jul 23, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot

python-cla-bot Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@LalitMaganti

Copy link
Copy Markdown
Author

Friendly ping @pablogsal! Is there something else you'd like me to do here? Not sure on expectations on timeline for reviews!

@pablogsal

Copy link
Copy Markdown
Member

Friendly ping @pablogsal! Is there something else you'd like me to do here? Not sure on expectations on timeline for reviews!

It's in my queue but as te 3.15 release closes unfortunately we are a bit more busy than normal so this may need to wait a bit more. Thanks for your patience!

@LalitMaganti

Copy link
Copy Markdown
Author

No worries at all, just wanted to make sure there wasn't anything waiting on me! Totally understand, hope everything goes well for the release!

@LalitMaganti

Copy link
Copy Markdown
Author

Hi @pablogsal just wanted to check if now was a good time now that 3.15 has been released? Thanks!

# Conflicts:
#	Lib/profiling/sampling/cli.py
The opcode track only transitioned when the leaf frame carried an
opcode. A thread losing its frames, or a leaf without an opcode, left
the previous opcode slice open until the next opcode or export, so the
UI attributed that time to the wrong opcode. Close it as every other
per-thread category does.
…cket

Track event packets are flagged SEQ_NEEDS_INCREMENTAL_STATE, but the
packet clearing the state was only written with the first stack
sample. A thread whose frames all filtered away emits its state slices
before any sample, so trace processor dropped them and could later see
an unmatched slice end. Emit the clear packet and the packet defaults
first, using sequence_flags rather than the deprecated
incremental_state_cleared field.
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 31, 2026
@LalitMaganti

Copy link
Copy Markdown
Author

@pablogsal friendly ping!

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

Labels

awaiting review type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants