Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Execution statistics confusion
Execution statistics confusion [message #85056] Tue, 10 October 2006 08:22 Go to next message
Eclipse UserFriend
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 19:35 Go to previous message
Eclipse UserFriend
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>
&gt;QUESTION: Which invocation? If the method has had 4 calls, of 10ms,
20ms,<br>
&gt;25ms and 15ms respectively, is this the sum of their duration (i.e.
[10 +<br>
&gt;20 + 25 + 15]). &nbsp;I would expect so, because of the definition
of &quot;Average<br>
&gt;Base Time&quot;<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.
&nbsp;Consider the following method:</font>
<br>
<br><font size=2 face="sans-serif">method A()</font>
<br><font size=2 face="sans-serif">{<br>
&nbsp; &nbsp; x = 14;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;x++;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;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++; &nbsp;The
call to methodB is not considered. &nbsp;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">&gt; </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">&gt;</font>
<br><tt><font size=2>&gt;QUESTION: Generally, the &quot;Calls&quot; column
multiplied by this column does not<br>
&gt;match &quot;Base Time&quot;. Is this </font></tt>
<br>
<br><font size=2 face="sans-serif">It should! &nbsp;This could be a defect.
&nbsp;Try using the latest driver. &nbsp;If you still experience the problem,
open a defect here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TPTP
&nbsp;Make sure you attach your trace file to the defect.</font>
<br>
<br><tt><font size=2>&gt;Cumulative Time: For any invocation, the cumulative
time is the time taken<br>
&gt;to execute all methods called from an invocation. If an invocation
has no<br>
&gt;additional method calls, then the cumulative time will be equal to
the base<br>
&gt;time.<br>
<br>
&gt;QUESTION: Same as for &quot;Base time:&quot;. Is this the sum for all
calls or the<br>
&gt;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. &nbsp;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. &nbsp;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_=--
Previous Topic:Unable to complete auto recording
Next Topic:Customize display name of lifelines in Log Interactions View?
Goto Forum:
  


Current Time: Thu Apr 25 17:31:05 GMT 2024

Powered by FUDForum. Page generated in 0.02746 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top