Skip to content

Add detailed backpressure tracking and stats/events#37

Merged
Kiryuumaru merged 1 commit intomasterfrom
feat/backpressure-visibility
Feb 28, 2026
Merged

Add detailed backpressure tracking and stats/events#37
Kiryuumaru merged 1 commit intomasterfrom
feat/backpressure-visibility

Conversation

@Kiryuumaru
Copy link
Owner

PR Classification

New feature and documentation update to provide real-time backpressure tracking and visibility.

PR Summary

This pull request adds comprehensive backpressure statistics and event notifications to channels and multiplexers, along with documentation and tests to verify correct behavior under memory pressure.

  • ChannelStats.cs and MultiplexerStats.cs: Add properties to track credit starvation events, wait times, and current backpressure status.
  • WriteChannel.cs: Raise OnCreditStarvation and OnCreditRestored events, and update stats during credit starvation periods.
  • README.md: Document new backpressure features, usage examples, and stat descriptions.
  • MemoryPressureTests.cs: Add tests for memory growth, backpressure tracking, and resource release during high channel churn.

Introduce real-time backpressure visibility with new channel and multiplexer statistics, including credit starvation counts, wait times, and event notifications. Update README with usage documentation and stat tables. Add comprehensive tests for memory pressure, buffer limits, and backpressure scenarios to ensure correct instrumentation and bounded resource usage.
@Kiryuumaru Kiryuumaru enabled auto-merge (squash) February 28, 2026 07:05
@Kiryuumaru Kiryuumaru merged commit d3d353a into master Feb 28, 2026
22 checks passed
@Kiryuumaru Kiryuumaru deleted the feat/backpressure-visibility branch February 28, 2026 07:09
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

Successfully merging this pull request may close these issues.

1 participant