[pr-performance] Collect census import details only with --missing #330
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!330
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:perf-census-skip-unused-missing-details"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tested offline with a local Xbox executable. Gameplay and timing were not measured.
Contributor role (optional)
What it changes
darner censuscurrently builds the per-symbol list of missing imports and the sets of images that use them, even when the command only prints summary counts. Collect that detail only when--missingis present. A regression test checks that the summary still counts a repeated missing symbol once without the detail collector.How it was tested
f3840d73d3504c30218debfbc8795b9225447317plus this patch, Rust 1.98.1 on Windows.cargo test --locked -p darner --bin darner census::tests: 4 passed.cargo test --locked -p darner --test census: 2 passed.cargo clippy --locked -p darner --all-targets -- -D warnings: passed.cargo xtask policy: 555 files passed.darner census --strict <title-exe>and with--missingadded. Both reports matched the prior build's original census implementation. The detailed report had 489 rows. The executable's SHA-256 matched before and after.Checklist
main.docs/asset-policy.md.Checked for overlap
Independent Windows build, gate, and code-read review of
137ab6c4c(full head137ab6c4cf5ae77044e550faf29c820a276f60e4, based onmainf3840d73d3504c30218debfbc8795b9225447317). Not run in-game.Environment
x86_64-pc-windows-msvc), MSVC 19.44.35230.Measured results
cargo clippy --workspace --all-targets --locked -- -D warnings): PASS.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings): PASS.cargo xtask policy: PASS (asset policy: 555 files ok).cargo test --locked -p darner --bin darner census::tests: PASS (4 passed; 0 failed; 0 ignored).cargo test --locked -p darner --test census: PASS (2 passed; 0 failed; 0 ignored).Code-read audit
runcreates the detail map only whenlist_missingis true, while still passing every parsed image throughtally_image; summary output and aggregate counts remain independent of that map (apps/darner/src/census.rs:50-92,96-119).tally_imagecontinues classifying all normal and delay imports and incrementsstats.missingonce per uniqueFunctionKey; only the per-symbol/per-image detail insertion is conditional (census.rs:143-170). The sorted detail report remains gated onSome(missing)(census.rs:121-128).census.rs:354-373,233-298).No blocking issue found; the requested detail collection is skipped for summary-only runs without changing the summary-count path.
Verdict: PASS.
AI-assisted: yes (GitHub Copilot, Auto mode).