Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Hyades generates incorrect statistics?
Hyades generates incorrect statistics? [message #15171] 
Tue, 12 April 2005 09:31 
Eclipse User 



Originally posted by: andreas.rummler.tuilmenau.de
Hello NG,
I'm using Hyades (Release Version 3.2.0) to profile some combinatorial
optimization algorithm. When examining the profiling results, some
oddities catched my eye.
1) In several classes there is a discrepancy between the time spent in
a class and the time spent in methods. Example: A class has only one
method which does some calculations. The packagecentric statistics
view states 7,484 for the method (base time) and 0,003 for the
constructor. The base time for the class itself is 7,086. Shouldn't the
time for the class be the sum of the time for the single method and the
time for the constructor? The same discrepancy appears for the
cumulative time.
2) The second oddity is related to the same view. The view states the
time spent in some particular packages. The problem I see is, that the
cumulative time is calculated by summing the cumulative time for all
classes in a package. In my eyes this is simply wrong and produces
fantasy values. An example:
package/class/method cumulative time
 
Package A 250
Class A 150
calc(), calls B.calc() 150
Class B 100
calc() 100
Package B
Class C
main(), calls A.calc() 150
C ist the main method of the application and calls A.calc(). Inside
A.calc() the calc()method of B is called which does all the work.
Overall the whole application spents 150 on its execution, but the
statistics view says 250 is spent in package A (longer than the whole
application!), because it sums the values of A and B.
I hope, someone is able to clarify these things for me.
Best regards,
Andreas Rummler



Re: Hyades generates incorrect statistics? [message #15237 is a reply to message #15171] 
Tue, 12 April 2005 13:35 
Marius Slavescu Messages: 67 Registered: July 2009 
Member 


Hi Andreas,
Thanks for reporting this problem, I opened Bugzilla report:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=91124 and I will follow up
there, I added yourself to the CC list.
Thanks,
Marius
"Andreas Rummler" <andreas.rummler@tuilmenau.de> wrote in message
news:dbcc2df8436c5c18994e6c14cab8e440$1@www.eclipse.org...
> Hello NG,
>
> I'm using Hyades (Release Version 3.2.0) to profile some combinatorial
> optimization algorithm. When examining the profiling results, some
> oddities catched my eye.
>
> 1) In several classes there is a discrepancy between the time spent in
> a class and the time spent in methods. Example: A class has only one
> method which does some calculations. The packagecentric statistics
> view states 7,484 for the method (base time) and 0,003 for the
> constructor. The base time for the class itself is 7,086. Shouldn't the
> time for the class be the sum of the time for the single method and the
> time for the constructor? The same discrepancy appears for the
> cumulative time.
>
> 2) The second oddity is related to the same view. The view states the
> time spent in some particular packages. The problem I see is, that the
> cumulative time is calculated by summing the cumulative time for all
> classes in a package. In my eyes this is simply wrong and produces
> fantasy values. An example:
>
> package/class/method cumulative time
>  
>
> Package A 250
> Class A 150
> calc(), calls B.calc() 150
> Class B 100
> calc() 100
>
> Package B
> Class C
> main(), calls A.calc() 150
>
>
> C ist the main method of the application and calls A.calc(). Inside
> A.calc() the calc()method of B is called which does all the work.
> Overall the whole application spents 150 on its execution, but the
> statistics view says 250 is spent in package A (longer than the whole
> application!), because it sums the values of A and B.
>
> I hope, someone is able to clarify these things for me.
>
> Best regards,
>
> Andreas Rummler
>



Goto Forum:
Current Time: Fri Apr 29 08:21:13 GMT 2016
Powered by FUDForum. Page generated in 0.02622 seconds
