docs(dev): list tracing environment switches #5854
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5854"
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?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T13:51:46Z.
What
Add a developer reference for the runtime
APS5_TRACE_*switches, grouped by subsystem with a short description of their output. Link to the existing detailed guides for performance captures and imported-library call traces. This is the trace-switch documentation topic requested in #3815 and separated by a maintainer from the timestamp and thread-name topics.Tested
python3 tools/check_conventions.py --base upstream/mainpassed.git diff --cached --checkpassed.Checklist
main; no other open PR implements this documentationImported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-14T20:49:11Z.
One row names a switch that doesn't exist:
APS5_TRACE_BINDLESSappears nowhere in the source onmain. The closest existing switch isAPS5_TRACE_IMAGE_TABLE, read inResourceMaterializer.cpp, which the table does not list yet.APS5_TRACE_EVENTS(PerformanceTrace.cpp) is also missing;BUILD.mdalready documents it under the performance trace, so a line pointing there would keep the list complete.I compared the table with every
"APS5_TRACE_*"string undercore/; the other names all exist.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T13:44:12Z.
Review: CHANGES_REQUESTED
Compared every
APS5_TRACE_*name in the table with the strings read in the source on currentmain:docs/dev/TRACING.md:31:APS5_TRACE_BINDLESSis not read anywhere. Remove the row; the existing switch for that area isAPS5_TRACE_IMAGE_TABLE(ResourceMaterializer.cpp:311).APS5_TRACE_IMAGE_TABLE,APS5_TRACE_DRAW_CACHE(DrawCacheStatistics.cpp:8),APS5_TRACE_DRAW_PROGRAMS(Draw.cpp:158, documented in BUILD.md "Performance trace") andAPS5_TRACE_EVENTS(BUILD.md "Performance trace"). The last two can be a row pointing at BUILD.md, like the other performance switches.The other names and the two links resolve. Happy to look again once the list matches the source.
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-15T14:01:34Z.
@MarcZX100 I checked the review against current
main(0dab493f5) and all five points hold. In case it saves you time, commit c860e7499 onfma-rc:docs/trace-switches(on top of your branch) removesAPS5_TRACE_BINDLESS, addsAPS5_TRACE_IMAGE_TABLEandAPS5_TRACE_DRAW_CACHEto the GPU table, and addsAPS5_TRACE_DRAW_PROGRAMSandAPS5_TRACE_EVENTSto the performance table pointing at BUILD.md. With it, the names in the file and the names the source reads are the same set (APS5_TRACE_COMMITandAPS5_TRACE_DIRTYare build-time macros, not switches).Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T14:30:18Z.
Updated and rebased onto current
main. I removed the obsoleteAPS5_TRACE_BINDLESSrow and addedAPS5_TRACE_IMAGE_TABLE,APS5_TRACE_DRAW_CACHE,APS5_TRACE_DRAW_PROGRAMS, andAPS5_TRACE_EVENTS. I compared the documented switches against the runtimegetenv("APS5_TRACE_…")uses in current core;APS5_TRACE_COMMITandAPS5_TRACE_DIRTYare generated build metadata, not user switches. Local validation:python3 tools/check_conventions.py --base upstream/mainandpython3 -m unittest tools.tests.test_check_conventions_doc_linkspass.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T16:15:52Z.
@adriadam10 The current head removes
APS5_TRACE_BINDLESSand includes the missingAPS5_TRACE_IMAGE_TABLE,APS5_TRACE_DRAW_CACHE,APS5_TRACE_DRAW_PROGRAMS, andAPS5_TRACE_EVENTSrows. Eligibility and conventions pass on this head. Could you recheck the updated list when convenient?Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T18:29:03Z.
Review: APPROVED
Compared the
APS5_TRACE_*names indocs/dev/TRACING.mdwith the strings read undercore/on currentmain: 51 names on each side, same set.APS5_TRACE_BINDLESSis gone, the four missing switches are listed, and both links resolve. Merging.