Re: [dtrace-discuss] value of zero from count()

2009-10-27 Thread Jonathan Adams
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

Re: [dtrace-discuss] value of zero from count()

2009-10-27 Thread Joel Reymont
On Oct 27, 2009, at 6:03 PM, Jonathan Adams wrote: Clear clears all values in the aggregation to 0; to remove all elements from the aggregation, you want trunc(@a). That's what I wanted to say but doesn't printa(@a) come before the clear? --- firefox for android! http://wagerlabs.com

Re: [dtrace-discuss] value of zero from count()

2009-10-27 Thread Jim Mauro
D'oh! Thanks Jonathan Adams wrote: 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

Re: [dtrace-discuss] value of zero from count()

2009-10-27 Thread Jonathan Adams
On Tue, Oct 27, 2009 at 06:06:44PM +, Joel Reymont wrote: On Oct 27, 2009, at 6:03 PM, Jonathan Adams wrote: Clear clears all values in the aggregation to 0; to remove all elements from the aggregation, you want trunc(@a). That's what I wanted to say but doesn't printa(@a) come