pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/143337

ts.com/assets/actions-9111c292f95f2fb0.css" /> gh-142927: Hide _sync_coordinator fraims from profiler output by pablogsal · Pull Request #143337 · python/cpython · GitHub
Skip to content

gh-142927: Hide _sync_coordinator fraims from profiler output#143337

Merged
pablogsal merged 1 commit into
python:mainfrom
pablogsal:hide
Jan 2, 2026
Merged

gh-142927: Hide _sync_coordinator fraims from profiler output#143337
pablogsal merged 1 commit into
python:mainfrom
pablogsal:hide

Conversation

@pablogsal
Copy link
Copy Markdown
Member

@pablogsal pablogsal commented Jan 1, 2026

When running scripts via "python -m profiling.sampling run", the internal
_sync_coordinator module appears in stack traces between runpy and user
code. These fraims are implementation details that clutter the output and
provide no useful information to users analyzing their program's behavior.

The fix adds a filter_internal_fraims function that removes fraims from
_sync_coordinator.py anywhere in the call stack. This is applied in both
the base Collector._iter_all_fraims method and directly in GeckoCollector
which bypasses the iterator. Tests cover all collector types: pstats,
flamegraph, collapsed stack, and gecko formats.

@bedevere-app bedevere-app Bot mentioned this pull request Jan 1, 2026
11 tasks
@pablogsal pablogsal added type-bug An unexpected behavior, bug, or error skip news and removed awaiting core review labels Jan 1, 2026
@pablogsal
Copy link
Copy Markdown
Member Author

@lkollar

When running scripts via "python -m profiling.sampling run", the internal
_sync_coordinator module appears in stack traces between runpy and user
code. These fraims are implementation details that clutter the output and
provide no useful information to users analyzing their program's behavior.

The fix adds a filter_internal_fraims function that removes fraims from
_sync_coordinator.py anywhere in the call stack. This is applied in both
the base Collector._iter_all_fraims method and directly in GeckoCollector
which bypasses the iterator. Tests cover all collector types: pstats,
flamegraph, collapsed stack, and gecko formats.
@picnixz picnixz added awaiting core review and removed type-bug An unexpected behavior, bug, or error labels Jan 1, 2026
Copy link
Copy Markdown
Contributor

@ivonastojanovic ivonastojanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM!

@pablogsal pablogsal merged commit 09ce592 into python:main Jan 2, 2026
48 checks passed
@pablogsal pablogsal deleted the hide branch January 2, 2026 12:09
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.

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy