Re: [dtrace-discuss] dtrace overhead and proper measuring technique

2009-09-10 Thread Joel Reymont


On Sep 9, 2009, at 9:58 PM, James McIlree wrote:

Given that you have only 40 hits, my guess is you should use the .9s  
context.


May I ask why?

Can this be generalized into saying that function run time as measured  
by timestamp should _always_ be evaluated against total eval time  
measured by excluding the function probe?


I still don't understand whether nsMenuX::MenuConstruct really takes  
12ms of elapsed time as DTrace is claiming. I will try to measure this  
using mach_absolute_time, without involving dtrace, to see if it makes  
a difference.


Thanks, Joel

---
fastest mac firefox!
http://wagerlabs.com




___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org


[dtrace-discuss] sharing of variables between scripts

2009-09-10 Thread Joel Reymont
I'm running dtrace with multiple scripts, e.g. -s foo.d -s bar.d -s  
baz.d.


It looks like variables in one script overwrite variables in another.  
I was expecting, perhaps wrongfully, that variables would be per- 
script and not per dtrace run.


Am I correct that dtrace merges all the scripts into a single one  
before running, e.g. that I could have pasted all the scripts into a  
single one for exactly the same result?


Thanks, Joel

---
fastest mac firefox!
http://wagerlabs.com




___
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org