feat(queue): stats: send tells where the submitting thread's time in a submission goes, part by part (with VICTORY_QUEUE_STATS) #641
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!641
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-641"
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?
@Raptorbk45 on GitHub · 2026-12-05 22:37 UTC · original
Raptorbk45:feat/send-stats→main· +984 −9 · 12 files · 2 commits · openNeeds merged first
This branch is stacked on #640 (it prints next to
stats: lane_stoodand checks its parts againstworked_send_ms); its own change is the last commit.With
VICTORY_QUEUE_STATS=1, astats: sendline splits the lane's time in its submissions (Job::Run/Job::Joined) into parts:lock,flights,sweep,ask,front, the lists' steps (step_copy,step_placed,step_run),fill,tex,flush,finish,prelude,last,card,heaps,waiting,execute,noting, waits for lists to land (land_most,land_other),reset, andother. Nested parts are taken out so they add up toworked_send_ms;gap_mssays by how much they do not, andvalidwhether that is within tolerance. Also counts of steps, copies, refreshes, uploads and first uploads, lock waits, front texture/buffer CPU time, MiB of textures read a frame, and how long staged textures wait from creation to their first submission.Off by default; with the switch off each instrumented point costs one thread-local check, and no line is printed.
How it was checked
Run after the final edit, on Linux (CachyOS), against
mainat8c4e6633:./build.sh check(release, MSVC target): passes; the one warning (room_latelynever used,resource.rs) is already onmaincargo xtask policy: passesPROFILE=diag ./build.sh check: passesPKG=victory-gpu ./build.sh test --lib -- send_statsunder Wine: 3 passedNot run: the game, on this branch. On
maintexture refreshes go throughStaging::refresh, where the texture byte counts were moved (on our fork they sat in a refresh pathmaindoes not have).Branch head:
c9e9ee21.Tests in
send_stats.rs:parts_against_the_lane_s_measure,nested_parts_count_once_and_go_back,stage_spans(the accounting; they fail if nesting double-counts).Checks
docs/DIAGNOSTICS.mdcargo xtask policyView 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.