Hi dtrace-discuss, Having recently upgraded to OS X 10.5 I'm relatively new to DTrace, so apologies if this has been covered before; I did search the archives and didn't find anything though.
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): """ /* fetch 1 min load average */ this->load1a = `hp_avenrun[0] / 65536; this->load1b = ((`hp_avenrun[0] % 65536) * 100) / 65536; """ I can't figure out where hp_avenrun is defined. I searched http://wikis.sun.com/display/DTrace as well as looking at all the probes on my system ($ sudo dtrace -l | grep hp_avenrun) and came up empty. So my question is, when reading d scripts, how should I go about finding out what these mysterious variables are? Thanks, Travis _______________________________________________ dtrace-discuss mailing list [email protected]
