feat(razor): implement the libSceRazorCpu CPU profiler stubs #564
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/564"
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 Phi1ow on 2026-10-04T21:12:55Z.
What
libSceRazorCpuis the CPU-side instrumentation for the Razor capture tool. AnyPS5 does not hostthat tool, so the four exports do nothing and succeed, which is also what shadPS4 does:
sceRazorCpuIsCapturing->0(no capture is in progress, so titles skip their profiling paths).sceRazorCpuJobManagerDispatch/sceRazorCpuJobManagerJob/sceRazorCpuJobManagerSequence->0.These exports only feed the profiler; they do not affect execution. Adds a
CMakeLists.txtso thelibrary can carry its guest test.
Tested
New test
core/libs/tests/GuestRazorCpu.cpp(registered asguest_razor_cpu) checks the fourreturn values.
Built with MinGW-w64 GCC 15.2.0 (the CI toolchain) on Windows 11;
ctest -R guest_razor_cpupasses. On
mainthe four functions thrownot implemented, so the test aborts without the change.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T22:38:18Z.
Thanks. The four NIDs recompute to the names in the PR (EboejOQvLL4 sceRazorCpuIsCapturing, dnEdyY4+klQ sceRazorCpuJobManagerDispatch, KP+TBWGHlgs sceRazorCpuJobManagerJob, 9FowWFMEIM8 sceRazorCpuJobManagerSequence). With no Razor capture tool attached, "not capturing" is the exact answer for
sceRazorCpuIsCapturing, and the three job manager calls only feed a capture, so returning 0 has nothing for the title to observe. The newCMakeLists.txtfollows the libSceRtc pattern, so the parent loop still links libkernel and libc.guest_razor_cpupasses here on current main (main has no such functions, so it can't link there).Ready to merge from my side once CI has run.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T22:39:16Z.
Progress report (
76c3427→ce6b26f)📈 System libraries: 77.52% (+0.13%, +4 implemented functions)
✅ 4 implemented
sceRazorCpuIsCapturingsceRazorCpuJobManagerDispatchsceRazorCpuJobManagerJobsceRazorCpuJobManagerSequence