Per Process disk read/write statistics in Mac OS X

后端 未结 5 1586
我在风中等你
我在风中等你 2021-02-01 05:08

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 statist

5条回答
  •  借酒劲吻你
    2021-02-01 05:36

    Since OP specifically asked for disk I/O statistics I'd recommend

    sudo fs_usage -f diskio
    

    which focuses only on read/write events, contrary to -f filesys as mentioned in the accepted answer. (Don't know if the diskio option wasn't available back then.)

提交回复
热议问题