[dtrace-discuss] accumulating and discarding traces

Angelo Rajadurai Angelo.Rajadurai at Sun.COM
Fri Oct 2 06:36:30 PDT 2009


You may want to look at speculative tracing. This designed just for  
this purpose

http://wikis.sun.com/display/DTrace/Speculative+Tracing

-Angelo

On Oct 2, 2009, at 9:29 AM, Joel Reymont wrote:

> I have a point in my program where a timer is set up to fire as soon  
> as possible and another where it actually fires. This sequence  
> happens several times.
>
> I would like to collect the functions triggered between the timer  
> being set up and the timer firing since this would tell me what's  
> delaying the firing of the timer.
>
> I suppose I can just print the probe functions but I would also like  
> the ability to discard them whenever a timer gets cancelled. I would  
> like to keep only the trace leading to the timer actually firing.
>
> What is the best way to accumulate the probefuncs keyed on the  
> sequence id (0, 1, 2,...) and discard them if the timer is cancelled?
>
> 	Thanks, Joel
>
> ---
> fastest mac firefox!
> http://wagerlabs.com
>
>
>
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org



More information about the dtrace-discuss mailing list