OK, a bit ambitious here, but I want to write a "simple" app that hooks into the O/S filesystem operations. What I would like to see in my app is what files are currently being written to/read from, how much data, and what process is performing the activity. I know there are existing utilities that will give me a snapshot (e.g. Process Monitor), but I want my app to update in real-time, and only show me the most active processes. My motivation is to understand "what the heck is keeping my HD so active all the time". I hope this makes sense.
Note: what I am hoping to avoid is a polling-based solution. In other words, I don't want to ask the O/S "ok, what files are open and by whom", in a ridiculous busy loop. Instead, I'm hoping there is some way to hook into the filesystem so that it can tell me "process x just read 50 bytes from file y", "process q just wrote 200 bytes to file m", .......
I hope I'm not dreaming......
Thanks,
Mike
Note: what I am hoping to avoid is a polling-based solution. In other words, I don't want to ask the O/S "ok, what files are open and by whom", in a ridiculous busy loop. Instead, I'm hoping there is some way to hook into the filesystem so that it can tell me "process x just read 50 bytes from file y", "process q just wrote 200 bytes to file m", .......
I hope I'm not dreaming......
Thanks,
Mike