How do I get programatically per process disk i/o statistics in Mac OS X. In 'Activity Monitor' application or in 'top' command we can only get whole system disk i/o statistics.
For reference Similar question asked for PC.
Use iotop
(as root), for example:
iotop -C 3 10
But the best way (for me) is:
sudo fs_usage -f filesys