RISC OS Pyromaniac file system statistics

by gerph
macOS ◆ xterm-256color ◆ fish 266 views

When debugging operations it’s useful to be able to see what file accesses take place. With the debug options it is possible to enable reporting of the specific operations being performed: --debug osfile,osfilestream would show most of the FS operations as they happened.

However, sometimes that’s too fine grained and really you just want to understand what’s being done by the system you are exercising. This happened recently, when I noticed that a tool seemed to be accessing the same file a few times. So a new configuration option was added to track file system accesses and report their statistics when the system exits.

This recording shows file that we can edit a file (this launches an editor in the host system), the compilation of file, its linking, and then running it. Once the system is exited, the statistics are displayed, showing how many of each operation was performed in a compact table.