feat(diagnostics): report descriptor view table usage by kind #5

Merged
LucaruluDev merged 1 commit from upstream-pr/5 into main 2026-11-26 16:23:29 +00:00
LucaruluDev commented 2026-11-26 16:07:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by LucaruluDev on 2026-11-26T16:07:43Z.


Summary

Add a per-kind breakdown of descriptor view table usage to the periodic memory diagnostics.

  • Report occupied and free slots for all six descriptor view kinds.
  • Report the memory footprint attributable to materialized slots.
  • Preserve the existing aggregate counters.
  • Collect both summaries under a single read lock without a temporary bitmap.

Free slots retain their last occupant's kind until reuse.

Motivation

The existing aggregate counters do not identify which descriptor view kinds account for table growth. This breakdown provides additional visibility into memory retention without changing resource-management behavior.

Validation

  • cargo test --workspace --locked: passed.
  • Both isolated diagnostic accounting tests passed.
  • Cross-kind slot reuse verified.
  • Clippy results identical to the unmodified upstream base, with no new warnings or errors.

This change does not introduce eviction, compaction, or modifications to rendering behavior.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5513372522 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5). Originally posted by [LucaruluDev](https://github.com/LucaruluDev) on 2026-11-26T16:07:43Z. --- ## Summary Add a per-kind breakdown of descriptor view table usage to the periodic memory diagnostics. - Report occupied and free slots for all six descriptor view kinds. - Report the memory footprint attributable to materialized slots. - Preserve the existing aggregate counters. - Collect both summaries under a single read lock without a temporary bitmap. Free slots retain their last occupant's kind until reuse. ## Motivation The existing aggregate counters do not identify which descriptor view kinds account for table growth. This breakdown provides additional visibility into memory retention without changing resource-management behavior. ## Validation - `cargo test --workspace --locked`: passed. - Both isolated diagnostic accounting tests passed. - Cross-kind slot reuse verified. - Clippy results identical to the unmodified upstream base, with no new warnings or errors. This change does not introduce eviction, compaction, or modifications to rendering behavior.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!5
No description provided.