diagnostics: add performance log analyzer #2599
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2599
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2599"
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?
@Kennychu1119 on GitHub · 2026-11-29 14:50 UTC · original
Kennychu1119:diagnostics/perf-analyzer→main· +415 −0 · 3 files · 2 commits · openWhat it changes
Adds a standalone offline performance log analyzer using the Python standard library.
No runtime, rendering, or shader code is modified.
How it was tested
crates/victory-shader/src/emit/lower.rs, which is unchanged by this PR.Test command:
python -I -B -m unittest discover -s scripts -p test_perf_analyzer.py -vChecked for overlap
Related: #1960, #1846, #1331.
This contribution analyzes existing logs offline rather than introducing additional runtime instrumentation.
Disclosure
Developed with AI assistance using OpenAI Codex. All reported validation results are based on synthetic tests, not gameplay benchmarks.
Feedback is welcome.
@ANDREANIADS on GitHub · 2026-11-29 14:54 UTC · original
At
41cda14, a truncated submitting-thread row can produce a regression flag on otherwise identical captures. Synthetic CLI repro with--comparable: both inputs contain four30 fps, 33.3 ms/framerows and submitting-thread times[1, 9, 9, 9]ms. In the candidate only, truncate the first timing row immediately afterpreparing per frame, the submitting thread:. The report correctly saysSkipped 1: malformed submitting thread timing, then reports7.00 to 9.00 (+28.6%) (potential regression). All three surviving values match their counterparts.Could
compare()suppress the submitting-thread flag when either input contains a known malformed submitting-thread record, while keeping the observed means and counts in the summaries? This avoids assuming that this separate counter always has the frame meter’s cadence. A useful control is the same pair with the missing1 msrestored: both means should be7.00. Offline analyzer only, synthetic text.@Kennychu1119 on GitHub · 2026-11-29 16:28 UTC · original
Thanksfor the detailed repro!
I've reproduced and fixed the false +28.6% regression flag. The analyzer now skips the submitting-thread regression assessment when either capture contains a malformed submitting-thread timing record, while preserving the observed means, sample counts, and parse warnings.
Added regression tests covering truncation on either side, restored 7.00 ms means, and genuine regressions with valid records. Unaffected metrics continue to be compared normally.
All 6 tests passed, and the staged asset-policy check passed.
Thanks again for catching this!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.