Ship Lua UI diagnostics window opened with /uidebug
Provide a simple read-only UI profiler/debugger in normal published clients, independent of developer tools. Show every live Lua UI package instance including dynamic containers and failed instances, execution timings/calls, Lua allocator memory, retained widget counts, and actionable error details. Reuse existing windows/tables and runtime ownership; no Lua evaluation or debugger privileges. Clearly distinguish measured inclusive Lua/host elapsed time and Lua memory from renderer/GPU/whole-process costs. Validate normal builds/publish asset inclusion and essential behavior with real Lua execution. Implemented read-only /uidebug with per-instance lifetime call/max/total elapsed timing, sampled ms/s, Lua allocator memory, widgets, text-budget accounting, last entry and failure tracebacks. Instances register through UI-thread-owned window services, including dynamic containers, and unregister on disposal. No developer-mode gate or evaluation console. Validation: regression test shown failing with execution counting removed, then passing; targeted Debug Lua/UI suite 130 passed, 9 asset-dependent skips; non-developer Release diagnostics regression passes; native/sanitized bridge, generator and Native AOT runtime/UI suites pass. Production GetCopyToPublishDirectoryItems includes UiDebug.xml with PreserveNewest and excludes DeveloperEnvironment.xml/Profiler.xml. Full Release suite: 4067 passed, 183 skipped, one audio allocation failure (32 bytes versus zero) reproduced against unchanged HEAD in an isolated source tree. Local publishing encountered an existing native-audio package/license guard because general license files were missing. The user subsequently confirmed full Native AOT validation on all platforms and that PR #2818 is merged. No remaining feature blockers. Pull request: #2818 — https://git.project-rk.com/prk/engines/pulls/2818 Final compact-header changes pass the non-developer Release diagnostics regression.
Checklist
0 of 0 completeNo checklist items.
- Area
- Project Rubi-Ka
- Project
- engines
- Kind
- Feature
- Task ID
tsk_6uht4vw6py- Updated