| 
| Execution statistics confusion [message #85056] | Tue, 10 October 2006 04:22  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: akarypid.yahoo.gr 
 Hi all,
 
 I'm a little confused with the meaning of the measurements reported in the
 Execution statistics view. In the documentation (see [1]) the following
 definitions are given:
 
 1) Base Time: For any invocation, the base time is the time taken to execute
 the invocation, excluding the time spent in other methods that were called
 during the invocation.
 
 QUESTION: Which invocation? If the method has had 4 calls, of 10ms, 20ms,
 25ms and 15ms respectively, is this the sum of their duration (i.e. [10 +
 20 + 25 + 15]).  I would expect so, because of the definition of "Average
 Base Time"
 
 Average Base Time: The base time divided by the number of calls.
 
 QUESTION: Generally, the "Calls" column multiplied by this column does not
 match "Base Time". Is this
 
 Cumulative Time: For any invocation, the cumulative time is the time taken
 to execute all methods called from an invocation. If an invocation has no
 additional method calls, then the cumulative time will be equal to the base
 time.
 
 QUESTION: Same as for "Base time:". Is this the sum for all calls or the
 average?
 
 [1]
 http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. tptp.platform.doc.user/tasks/tecretrc.htm
 
 --
 Alexandros Karypidis
 |  |  |  | 
| 
| Re: Execution statistics confusion [message #85088 is a reply to message #85056] | Tue, 10 October 2006 15:35  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: nmehrega.ca.ibm.com 
 This is a multipart message in MIME format.
 --=_alternative 006BA6B785257203_=
 Content-Type: text/plain; charset="US-ASCII"
 
 Hi Alex,
 
 Please see my inline responses below:
 
 >QUESTION: Which invocation? If the method has had 4 calls, of 10ms, 20ms,
 >25ms and 15ms respectively, is this the sum of their duration (i.e. [10 +
 >20 + 25 + 15]).  I would expect so, because of the definition of "Average
 >Base Time"
 
 The base time of a method is the amount of time a method takes minus the
 time spent in the methods that it invokes.  Consider the following method:
 
 method A()
 {
 x = 14;
 x++;
 call methodB();
 }
 
 The base time of methodA is the amount of time that the following two
 statements take: x=14; and x++;  The call to methodB is not considered.
 Now, if methodA is invoked twice, its base time in the execution
 statistics would equal the base time of the first invocation plus the base
 time of the second invocation.
 
 > Average Base Time: The base time divided by the number of calls.
 >
 >QUESTION: Generally, the "Calls" column multiplied by this column does
 not
 >match "Base Time". Is this
 
 It should!  This could be a defect.  Try using the latest driver.  If you
 still experience the problem, open a defect here:
 https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP  Make sure you
 attach your trace file to the defect.
 
 >Cumulative Time: For any invocation, the cumulative time is the time
 taken
 >to execute all methods called from an invocation. If an invocation has no
 >additional method calls, then the cumulative time will be equal to the
 base
 >time.
 
 >QUESTION: Same as for "Base time:". Is this the sum for all calls or the
 >average?
 
 The cumulative time of a method is just like its base time but it also
 takes into account the amount of time spent in the other methods it
 invokes.  The cumulative time of methodA is the amount of time it took for
 the following two statements to be invoked (x=14; and x++) plus the
 cumulative time of methodB.  If methodA is invoked multiple times, its
 cumulative time displayed in the execution statistics view would be the
 addition of the cumulative time for all of its invocations.
 --=_alternative 006BA6B785257203_=
 Content-Type: text/html; charset="US-ASCII"
 
 
 <br><font size=2 face="sans-serif">Hi Alex,</font>
 <br>
 <br><font size=2 face="sans-serif">Please see my inline responses below:</font>
 <br><tt><font size=2><br>
 >QUESTION: Which invocation? If the method has had 4 calls, of 10ms,
 20ms,<br>
 >25ms and 15ms respectively, is this the sum of their duration (i.e.
 [10 +<br>
 >20 + 25 + 15]).  I would expect so, because of the definition
 of "Average<br>
 >Base Time"<br>
 </font></tt>
 <br><font size=2 face="sans-serif">The base time of a method is the amount
 of time a method takes minus the time spent in the methods that it invokes.
  Consider the following method:</font>
 <br>
 <br><font size=2 face="sans-serif">method A()</font>
 <br><font size=2 face="sans-serif">{<br>
     x = 14;</font>
 <br><font size=2 face="sans-serif">     x++;</font>
 <br><font size=2 face="sans-serif">     call methodB();</font>
 <br><font size=2 face="sans-serif">}</font>
 <br>
 <br><font size=2 face="sans-serif">The base time of methodA is the amount
 of time that the following two statements take: x=14; and x++;  The
 call to methodB is not considered.  Now, if methodA is invoked twice,
 its base time in the execution statistics would equal the base time of
 the first invocation plus the base time of the second invocation.</font>
 <br>
 <br><font size=2 face="sans-serif">> </font><tt><font size=2>Average
 Base Time: The base time divided by the number of calls.</font></tt>
 <br><font size=2 face="sans-serif">></font>
 <br><tt><font size=2>>QUESTION: Generally, the "Calls" column
 multiplied by this column does not<br>
 >match "Base Time". Is this </font></tt>
 <br>
 <br><font size=2 face="sans-serif">It should!  This could be a defect.
  Try using the latest driver.  If you still experience the problem,
 open a defect here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP
  Make sure you attach your trace file to the defect.</font>
 <br>
 <br><tt><font size=2>>Cumulative Time: For any invocation, the cumulative
 time is the time taken<br>
 >to execute all methods called from an invocation. If an invocation
 has no<br>
 >additional method calls, then the cumulative time will be equal to
 the base<br>
 >time.<br>
 <br>
 >QUESTION: Same as for "Base time:". Is this the sum for all
 calls or the<br>
 >average?</font></tt>
 <br>
 <br><font size=2 face="sans-serif">The cumulative time of a method is just
 like its base time but it also takes into account the amount of time spent
 in the other methods it invokes.  The cumulative time of methodA is
 the amount of time it took for the following two statements to be invoked
 (x=14; and x++) plus the cumulative time of methodB.  If methodA is
 invoked multiple times, its cumulative time displayed in the execution
 statistics view would be the addition of the cumulative time for all of
 its invocations.</font>
 --=_alternative 006BA6B785257203_=--
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.02583 seconds