feat(libSceNKWebKit): implement WKContext memory sampler controls #24516
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24516"
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 jagrat04 on 2026-11-20T18:35:52Z.
What
Implement WebKit C API
WKContextmemory sampler controls inlibSceNKWebKit:WKContextStartMemorySampler(NIDxXWslPRXf9Y): starts memory sampling at the specified interval, storing the interval value and running state on the hostProcessPoolinstance following WebKit'sWKContext.cpp.WKContextStopMemorySampler(NID4k3e7qWpRcU): stops memory sampling on the hostProcessPoolinstance.Tested
tools/check_conventions.py --base origin/mainpassed;tools/debt_fold.py --checkpassed;tests/ContextMemorySampler.cpptests starting and stopping memory sampling, updating intervals, verifying state retention, rejecting null arguments, and enforcing type safety (DoubleandProcessPool). Not tested on a PS5.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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T18:59:13Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
2184cdb6db:tools/check_conventions.pypassed.nkwebkit_contextmemorysampler_testsbuilt cleanly.nkwebkit_contextmemorysampler):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp,core/libs/prx/libSceNKWebKit/src/Configuration.hpp,core/libs/prx/libSceNKWebKit/src/ContextMemorySampler.cppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T19:27:52Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected changes add typed WKContext sampler state controls; I did not run a build or tests, so approval is not justified.
What I ran
Reviewed head
2184cdb6db524aa39907c46a16068031ee0131ca. Read the prepared description, commit list, manifest, and diff, plus the changed source/test files and targeted ranges inExport.cppandInventoryExports.hpp. Usedrepo_read.pyto inspect source; no build or test commands were run.Results
Negative control
Not run; no test execution was available.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The full text of
Export.cppandInventoryExports.hppwas excluded from the review bundle; only their changed regions were read.files.jsonwas not available through the reader; exclusions are taken frommanifest.json. Build and test results, including the author-reported checks, were not independently verified. PS5 runtime behavior was not tested.To get this to a good state
Nothing is required. Optional: run the project checks and test on a PS5 when available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T19:53:09Z.
Review: DISMISSED
Reviewed — changes requested
Changes are required before merge: register both implementations in the PRX export inventory so the requested NIDs resolve to these functions.
What I ran
Reviewed head
0a12c0db6f9ebed465a5053af62d99d9531a8925using the prepared diff andrepo_read.py-backed reads. No tests or build commands were run; the description reports convention and debt checks passed, but I did not run them.Results
Findings
Blocking
InventoryExports.hppand adds declarations only toWebKitValueExports.hpp. The repository search found no inventory declarations or other export registration for either name. As a result, these implementations are not shown to be exported under the requested NIDs and may not be reachable by callers. Add the required inventory/export mapping for both functions. Evidence:core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp:30andcore/libs/prx/libSceNKWebKit/include/InventoryExports.hpp:31(removed lines); implementations are atcore/libs/prx/libSceNKWebKit/src/ContextMemorySampler.cpp:6andcore/libs/prx/libSceNKWebKit/src/ContextMemorySampler.cpp:13.Non-blocking
None.
Not verified
No build, tests, convention check, or PS5 run was performed. The two files excluded from the prepared bundle because of size,
Export.cppandInventoryExports.hpp, were inspected only through targeted reader searches; other changed files listed in the manifest were read through the prepared bundle. No separatefiles.jsonlisting was available through the reader.To get this to a good state
Register both functions in the PRX export inventory, then run the relevant build and tests on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T00:19:59Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation records the sampler interval and running state on the host
ProcessPool; the review was limited to source inspection and no tests were run.What I ran
Reviewed head
b8053015bba873f421b4b2e95b90cf328d74bafd. Read the prepared description, commit list, manifest, diff, and changed source/test files throughrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Export.cppandInventoryExports.hppwere excluded from the review folder as too large; their changed hunks are visible in the prepared diff but their full head text was not read. The remaining changed files were included and read. No build, test, or PS5 behavior was verified. Thefiles.jsonlisting mentioned in the instructions was not available through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T12:18:56Z.
Review: COMMENTED
Reviewed — comments
Material review is incomplete because
Export.cppwas excluded from the review bundle and the change’s export wiring could not be verified.What I ran
Reviewed head
464d127e8f8507a7779eddd0baaad0ba024acb8fusing the prepared diff andrepo_read.py. No tests or other commands were run.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
Export.cppwas excluded from the bundle because it was too large; only the surrounding lines at the removed stubs were read.files.jsonwas not available through the reader, so other exclusions could not be confirmed. The test source was read, but its reported results were not independently verified. No PS5 behavior was tested.Files read:
description.md,commits.md,manifest.json,diff.patch,Export.cpp(targeted range),InventoryExports.hpp(targeted range),WebKitValueExports.hpp,Configuration.hpp,ContextMemorySampler.cpp, andtests/ContextMemorySampler.cpp. The debt note and fullExport.cppwere not read.To get this to a good state
Nothing is required. Please share the complete
Export.cppexport wiring context and test execution results if you want a complete review.Pull request closed