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

Manually merged
github merged 1 commit from github-bot/gh-5 into gh-pr/5/base 2026-11-26 16:28:42 +00:00 AGit
Owner

@⁠LucaruluDev on GitHub · 2026-11-26 16:07 UTC · original
LucaruluDev:diagnostics/view-table-by-kind → main · +263 −12 · 2 files · 1 commits · merged 2026-11-26 16:23 UTC

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.

**@⁠LucaruluDev** on GitHub · 2026-11-26 16:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5) `LucaruluDev:diagnostics/view-table-by-kind` → `main` · +263 −12 · 2 files · 1 commits · merged 2026-11-26 16:23 UTC ## 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.
Add a per-kind breakdown to the periodic descriptor memory log. Report
occupied and free table slots and their flat memory footprint for all
six view kinds (constant buffer, shader resource, unordered access,
sampler, console sampler, placed memory). Free slots retain their last
occupant's kind until reuse. Both the existing summary and the new
breakdown come from one read of the table, in one pass over `list`
plus one over `free`, with no extra lock acquisition and no temporary
allocation sized by the table.

Two isolated tests (their own local table, no shared state, no raw
pointers, no unsafe code) verify the counts, byte attribution, and
cross-kind reuse: that a freed slot reused for a different kind moves
its count from the old kind's total to the new kind's without
affecting the table's overall size.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:12:23 +00:00
github-bot changed target branch from main to gh-pr/5/base 2026-11-26 16:28:40 +00:00
github manually merged commit b8fcd99b98 into gh-pr/5/base 2026-11-26 16:28:42 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.