Gleb Lanbin
Registered
Hello,
I wrote a shell script to collect performance statistics for MacOS, it provides in the next format:
name=Hardware Resources|CPU|%Idle,value=1
....
....
name=Hardware Resources|Disks|Reads/sec,value=19
name=Hardware Resources|Disks|Writes/sec,value=23
name=Hardware Resources|Disks|KB read/sec,value=80
name=Hardware Resources|Disks|KB written/sec,value=90
all works perfectly on my Mac OS Tiger(Darwin 8.1.0), but I have information that disks statistics doesn't work with Mac OS Leopard(Darwin 9.6.0)
I use output from top to collect disks statistics, probably they have different format of output for 2 versions of OS, but I can't test it and figure out where an issue, because don't have opportunity to test it on Leopard somewhere.
I'll be very appreciated if someone can help me and will try to execute script on own Leopard and try to figure out the issue with collection of disks performance.
Also, it's possible to provide here a result from command:
$top -l2 -cd -o pid -s 10 | grep Disks:
Script link: https://download.yousendit.com/TTZtcXlqaytlaFR2Wmc9PQ
Thanks,
Gleb
I wrote a shell script to collect performance statistics for MacOS, it provides in the next format:
name=Hardware Resources|CPU|%Idle,value=1
....
....
name=Hardware Resources|Disks|Reads/sec,value=19
name=Hardware Resources|Disks|Writes/sec,value=23
name=Hardware Resources|Disks|KB read/sec,value=80
name=Hardware Resources|Disks|KB written/sec,value=90
all works perfectly on my Mac OS Tiger(Darwin 8.1.0), but I have information that disks statistics doesn't work with Mac OS Leopard(Darwin 9.6.0)
I use output from top to collect disks statistics, probably they have different format of output for 2 versions of OS, but I can't test it and figure out where an issue, because don't have opportunity to test it on Leopard somewhere.
I'll be very appreciated if someone can help me and will try to execute script on own Leopard and try to figure out the issue with collection of disks performance.
Also, it's possible to provide here a result from command:
$top -l2 -cd -o pid -s 10 | grep Disks:
Script link: https://download.yousendit.com/TTZtcXlqaytlaFR2Wmc9PQ
Thanks,
Gleb