Repository navigation
feat(libc): add frame-time percentiles, compile time and a run recipe to the run report - #17432
Conversation
…me-stats-and-recipe
The recipe passed the commit through the value redactor, which hides any long hexadecimal string, so a valid 40-character build commit was written as [redacted]. The commit is a build identity checked against the same 40-character pattern as the report, so it is written as it is when it matches and omitted otherwise.
The run block of the report has carried a frameMs field, null when a run has too few frames, since the frame percentiles were added. The serialization test still listed the block without it.
Finishing a run writes the recipe next to the report, so one file in the folder was the wrong expectation. The check now fails on any leftover temporary file and expects exactly the report and the recipe.
…me-stats-and-recipe
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
…cipe The recipe filter only looked for TOKEN, KEY, PASSWORD and SECRET, so ANYPS5_PSN_PASSCODE and ANYPS5_NP_AUTH were written as they are, and the recipe is meant to be attached to bug reports.
|
Windows NVIDIA check of head Setup: Windows 11 Home 10.0.26300, i9-13900K, WinLibs GCC 15.2.0, Release, RTX 4080 (
Neither PR-side failure is caused by this PR. Each test repeated 20 times alone, pinned:
Both pass 20/20 with the PR when not pinned.
The run-report tests ( Not checked: a run report from a real title, the rest of the suite. AI-assisted: yes |
What
Adds three things to the run report written at the end of a run (
anyps5-report.json, schema version 2, additive fields only, so version 1 readers keep working):frameMs: p50, p90 and p99 of the intervals between presented frames, over the most recent 2,048 intervals. Null with fewer than two presented frames.shaders.compileMsandshaders.slowCompiles: total wall time spent compiling shaders, failed compiles included, and the number of compiles slower than 100 ms. Left out when shader coverage is off.anyps5-recipe.jsonnext to the report: how the run was started (argv, ANYPS5 variables as received, config names, build commit). Values pass through the same text filter as the report, and a variable whose name containsTOKEN,KEY,PASSWORDorSECRETis never written.Commits: fixed-size ring for run report values; nearest-rank percentile function; frame interval ring at the present path; compile timing through the diagnostic sink; recipe serializer, redaction and capture; schema version 2 and version 1 kept for additive fields; docs per commit.
Tested
Linux, Debian kernel 6.1.0-54-amd64, Intel Xeon E5-1620 v2. No GPU hardware: Vulkan through the lavapipe software ICD under Xvfb.
Command:
Output:
Driver note: with the default driver (
SDL_VIDEODRIVER=offscreen),video_out_frame_dump_queueskips because the offscreen driver has no Vulkan window, andANYPS5_REQUIRE_DISPLAY=1turns that skip into a failure. The run therefore wroteANYPS5_VIDEO_OUT_TEST_DRIVER:STRING=x11intobuild/CMakeCache.txtright after the configure step, the same step as the keep-awake PR. The code does not depend on this option.Not verified:
GetEnvironmentStringsW,_NSGetEnviron) is not verified. It is listed in the debt file.Overlap: no other open PR implements frame percentiles, shader compile time or the run recipe. Two open PRs change the same run report writer and its tests and will likely conflict in
RunReport.hpp,RunReport.cppandcore/libs/tests/RunReport.cpp: #15973 (recovers the report of a run that ended without writing one) and #16757 (writes the report when a run ends instd::terminate). The functions are different. The other matches only share the libc debt file (append-only sections), or AGC and shader files where the changed functions are unrelated; #13809 and #12828 touchPerformanceTrace.hppfor other counters.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)