On Tue, Oct 27, 2009 at 02:00:52PM -0400, Jim Mauro wrote: > I've run into this from time to time. > > Simple example; > > #dtrace -n 'hotspot27563::: { @[probename]=count(); } tick-1sec { > printa(@); clear(@); }' > > The sample output (below) shows a couple functions (probename) > with a value of zero. By virtue of the fact that it appears in the > aggregation at all implies that minimal value should be 1 (I would think).
Clear clears all values in the aggregation to 0; to remove all elements from the aggregation, you want trunc(@a). (clear() can be useful if you want a running list of everything seen, but count only for the most recent hits) Cheers, - jonathan > (FYI - this is on OSOL 2009.06, x86 system). > > Thanks, > /jim > > > gc-begin 0 > gc-end 0 > mem-pool-gc-begin 0 > mem-pool-gc-end 0 > thread-start 3 > thread-stop 3 > > gc-begin 0 > gc-end 0 > mem-pool-gc-begin 0 > mem-pool-gc-end 0 > thread-start 4 > thread-stop 4 > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss@opensolaris.org _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org