This tool allows interactive analysis of the statistics file created by documents_statistics::DumpSandboxFileStatistics.
To generate a report, enable the switch within the system Settings app. Settings > Chrome Canary > Experimental Settings > Dump Sandbox File Statistics to Documents then re-launch Chrome. Wait at least 30 seconds with Chrome in the foreground while the report is created. Once complete, it will be placed within the Application's Documents directory inside the sandboxFileStats directory.
NOTE: This option is intentionally NOT generally available on Stable. It requires a build with the ios_enable_sandbox_dump arg enabled, which is usually enabled for Canary/Dev builds.
In order to analyze the report, you need to copy it from your device to your computer (where this directory resides locally) using either of the following methods:
Files > Browse > On My iPhone > Chrome Canary > sandboxFileStats. Then use any of the share sheet options to send the file via a means accessible on your computer.sandboxFileStats directory onto your computer in a discoverable location.To inspect a report, open ./viewer.html in your desktop browser.
The generated report contains the real file and directory names from the application sandbox. If you'd like to share this file with someone else, you can use the cleanSandboxFileStats.py script to replace the real names of downloads with a placeholder value.
For example, running this command:
cleanSandboxFileStats.py sandboxFileStats/file.json
will generate a file at sandboxFileStats/file_clean.json with the names of all files and directories under the path which stores user downloads replaced with ##DOWNLOADED_ITEM##.
The viewer only uses the files viewer.html, viewer.css, and tsc/viewer.js. Do not edit the JavaScript file directly, but rather edit viewer.ts and then generate the JavaScript file by running ./compile_typescript.py from this directory. Commit the generated file along with the modified JavaScript source to allow for immediate use of this viewer without the need for the user to compile the TypeScript.