Documentation
¶
Overview ¶
Command pickedreadprobe checks, on a device, that a document opened through the mobile driver's reader is read through its file rather than into memory (#1020): a file larger than the device's memory is read end to end, seeked and read at offsets, and the process's peak resident size stays flat.
Launched, it runs by itself: it writes a fixture of fixtureSize bytes into its own storage, opens it with storage.Reader (the same reader a picked file gets, minus the security scope), checks every block, then deletes the fixture. Lines starting "PROBE" go to the console. With PROBE_AUTO set it then quits, for a scripted run:
xcrun devicectl device process launch --console --environment-variables '{"PROBE_AUTO":"1"}' --device <udid> com.trendvidia.pickedreadprobe
The "Pick a file" button runs the same read on a file picked from Files, with its security scope, for a check by hand. Without PROBE_AUTO the probe stays open for that, as it does when opened from the home screen.