Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Oct 1, 2025

This commit enhances the Gecko format reporter in the sampling profiler
to include markers for GIL acquisition events. The implementation adds:

  • GIL contention tracking in pystate and ceval_gil
  • New marker types in the Gecko collector for GIL wait events
  • External inspection support for reading GIL state
  • Sample collection of GIL acquisition times and thread states

The markers provide visibility into GIL contention patterns, showing
when threads are waiting to acquire the GIL and how long they wait.

…o format

This commit enhances the Gecko format reporter in the sampling profiler
to include markers for GIL acquisition events. The implementation adds:

- GIL contention tracking in pystate and ceval_gil
- New marker types in the Gecko collector for GIL wait events
- External inspection support for reading GIL state
- Sample collection of GIL acquisition times and thread states
- Comprehensive tests for marker export functionality

The markers provide visibility into GIL contention patterns, showing
when threads are waiting to acquire the GIL and how long they wait.
@pablogsal
Copy link
Member Author

screenshot-2025-10-01_21-30-11

@pablogsal pablogsal merged commit 89a914c into python:main Nov 17, 2025
44 checks passed
@pablogsal pablogsal deleted the markers branch November 17, 2025 12:46
@bedevere-bot

This comment was marked as off-topic.

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.

2 participants