Hi All, Just want to know is there any way I can print variables used inside a function using dtrace ? Thanks Akhil -- This message posted from opensolaris.org
Akhil Jain wrote:> Hi All, > > Just want to know is there any way I can print variables used inside a function using dtrace ? > > > Thanks > Akhilnot unless they''re arguments, or you add an SDT probe.
> not unless they''re arguments, or you add an SDT > probe.This is true, but in typical code it is surprising how many times (within the body of a function) the local vars are passed into another function (i.e. when you come across a local you want to look at, see if it is passed into a sub-function somewhere within the body of that function). In my experience, nearly 50% of the time a "local" can be observed this way. -- This message posted from opensolaris.org