Skip to content

RwLock and Semaphore support? #1032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Sobeston opened this issue Apr 18, 2025 · 0 comments
Open

RwLock and Semaphore support? #1032

Sobeston opened this issue Apr 18, 2025 · 0 comments

Comments

@Sobeston
Copy link

Hi, I recently integrated some of tracy's Mutex instrumentation. It's very close to being perfect for my use case, however without support for RwLocks or Semaphores, it falls a bit short.

For an RwLock a half-measure is to only mark write locks, but this means tracy isn't aware of contention on acquiring read locks, which leads to unmarked contention. On the flip side, marking on both writes and reads will incorrectly give you the impression that your reads are contending with each other.

Points where my threads sleep on (unmarked) attempted RwLock read lock acquisitions:
Image

Plotting a Semaphore's permits may help a little, but didn't provide me useful insight on my RwLocks.

I'd like to request these features if they have not already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant