Diag tool pr1#8
Closed
leducp wants to merge 2 commits into
Closed
Conversation
Expose per-ring `dropped_count` / `lost_count` atomics in SubRingHeader (placed inside existing write_pos cache-line padding — no sizeof change, no new coherency traffic). Publisher bumps dropped_count on the self- repair / drop path; Subscriber bumps lost_count at each loss site. New SharedRegion::stats() returns a RegionStats snapshot: per-ring state, in_flight, write_pos, dropped_count, lost_count plus aggregates (total_writes, total_drops, total_losses, live_rings, approximate pool_free). Safe under live traffic. Python bindings expose RingStats, RegionStats, and SharedRegion.stats() so external monitoring can read counters without a CLI.
99f112c to
2365fcb
Compare
Collaborator
|
Can we add examples? |
Owner
Author
|
This just the first PR ;) |
Owner
Author
|
superseed by #9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.