Profile: overlapping VICTORY_PROFILE windows are said so, and one that is over makes no file (#284) #321
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/Belobug--VIctory-Belobug-AMD!321
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-321"
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?
@Spetrius on GitHub · 2026-11-26 20:06 UTC · original
Spetrius:fix/profile-window-overlap→a-publier· +51 −0 · 1 files · 1 commits · draftFixes #284.
What was wrong
The profiles of
VICTORY_PROFILE=<from>,<to>,<ms>,<file>;…run one after another on one thread, all against the one start time. So with0,60,5,a.txt;30,90,5,b.txt,b.txtcovers 60 to 90 s only, and a window that ends while the one before it still runs wrote a file withrounds 0and still printed "the profile is in b.txt". Neither case was said anywhere.What this changes
The schedule is worked out by a small pure function,
begins(&[(from, to)]).Tested
cargo test -p victory-loader --features diagnostics profile(2 pass), with a new test ofbegins: the issue's example, a window wholly inside the one before it, windows that touch, windows out of order, none.cargo clippy -p victory-loader --lib --features diagnostics --target x86_64-pc-windows-msvc -- -D warningsis clean.x86_64-pc-windows-gnullvmon Linux and run under Wine 11.22.AI use
Written with Claude Code; built and tested as above.
🤖 Generated with Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.