[dtrace-discuss] How do I unroll an aggregation?
Ian Matchett
Ian.Matchett at Sun.COM
Wed Jan 31 09:28:33 PST 2007
How do I unroll an aggregation?
I want to printout @Io[R,], at Io[W,] , @Size[R,], at Size[W,] and
@Time[R,], at Time[W,] all on the same line.
1 line per file that I am monitoring?
How do I unroll the values out of the aggregation?
{
self->rw="R"
or
self->rw="W";
self->vpath="/full/path/name/to/file/*";
@Size[self->rw, self->vpath]=sum( self->size );
@Io[self->rw, self->vpath]=count();
@Time[self->rw, self->vpath]=avg( timestamp-self->start );
}
profile:::tick-TIMEsec
{
normalize( @Size, (1024 * TIME ));
normalize( @Io, TIME );
normalize( @Time, 1000);
printf(" r/s w/s kr/s kw/s wait actv wsvc_t asvc_t w b device\n");
printa( @Size );
printa( @Io );
printa( @Time );
clear( @Size );
clear( @Io );
clear( @Time );
}
--
Ian Matchett Sun Microsystems
Burlington MA 01803 USA
Phone x22043 781-442-2043
Email <mailto:Ian.Matchett at Sun.COM>
Mobile 413 237 6599
Vtext Webservice
<http://www.vtext.com/customer_site/jsp/messaging_lo.jsp?min=ian.matchett@vtext.com>
SMS Email <mailto:Ian.Matchett at vtext.com>
Map and Hotels
<http://www.mapquest.com/maps/map.adp?formtype=address&cat=Hotels&zipcode=01803-2756>
Sun.COM <http://www.sun.com/> Solaris Download
<http://www.sun.com/software/solaris/get.jsp>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20070131/0209f75b/attachment.html
More information about the dtrace-discuss
mailing list