Still can't understand -profile numbers

Bill Baxter dnewsgroup at billbaxter.com
Sun Aug 12 16:42:16 PDT 2007


Lutger wrote:
> Ary Manzana wrote:
> ...
>>
>> I can't understand why main has a tree time of 64 and someMethod, 
>> which is invoked by main, has 70. An invoked method can't spend more 
>> time in total than the function that invoked it. Or yes?
>>
>> Well, maybe looking at the tree ticks... main has 230, but then again, 
>> someMethod has 254.
> 
> My guess is that is because the timings are very short. In general I 
> have noticed some irregular behavior, it is a good idea to profile 
> multiple times.
> 
> There are some limitations and reasons for irregular timings written 
> under the 'notes' section on digitalmars: 
> http://www.digitalmars.com/ctg/trace.html
> 
> Finally, on some machines, the windows high performance api can have 
> bugs (I have such a machine, motherboard issue).

I was thinking it was just some sort of rounding.
I see things like Per Call = 0, with Func Time = <not zero> very often. 
   So I was just assuming the numbers were rounded to the nearest unit, 
whatever the unit is.

--bb


More information about the Digitalmars-d-learn mailing list