On Nov 7, 2007 3:35 PM, Neelam <[EMAIL PROTECTED]> wrote: > You can see two release probes here, because I was trying to find out the > duration of outermost lock, when there is nesting. > > And for the timing measurement in the c code, I think it must be the user > level gethrtime()..I include #include <sys/time.h> for using it.
Right, so what I said yesterday was correct. gethrtime() is a fast trap system call, so calling it has very little overhead. But using DTrace to instrument your code is expensive. In fact, going so deep from the userland all the way to the DTrace logic is way more expensive than a getpid(2), which is already slower than a fast trap system call. Rayson > > > Thanks, > Neelam > > > -- > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > [email protected] > _______________________________________________ dtrace-discuss mailing list [email protected]
