On Mar 30, 2008, at 3:17 PM, Sean McGrath - Sun Microsystems Ireland  
wrote:
>  Why not browse the Apple port of The DTraceToolkit itself ?
>
> It uses averunnable.ldavg instead of the Solaris specific hp_avenrun.
>  Found from having a look at the OS-X port of DTrace at:
>    http://www.opensource.apple.com/darwinsource
>
> < >  > As a DTrace starter project I'd like to understand how to  
> extract
> < >  > common performance metrics before diving too far in. One of  
> these
> < >  > common metrics is load average, which I thought would be  
> pretty easy.
> < >  > However, I'm confused by this code snippet (from
> < >  > http://www.brendangregg.com/DTrace/iotop):

It's even easier than that, because Apple included much (all?) of  
Brendan's
DTrace Toolkit in Mac OS X. The amazing thing? It's already in your  
path:

$ cd /usr/bin
$ grep 'Brendan Gregg' * | wc -l
       94

This includes /usr/bin/iotop. Brendan, if you don't write that damned  
blog
post about this, I will!

Adam

--
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl

_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to