Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Execution Statistics View - what is inherited base and inherited cumulative time
Execution Statistics View - what is inherited base and inherited cumulative time [message #77431] Thu, 13 July 2006 13:48 Go to next message
Eclipse UserFriend
Originally posted by: prince.pajero.gmail.com

TPTP - 4.1.0.1
Please explain with a simple example, as to what does the Inherited Base
Time and Inherited Cumulative time mean.
They are explained in the Help Contents, under the topic
Monitoring and analyzing application performance > Profiling an
application > Profiling Views > Using the Execution Statistics view

BUT
i could not understand properly as to what they meant.

ALSO,
How do i get these statistics. I'm able to get the Base time, avg base
time and the cumulative time but not the inherited times.
Re: Execution Statistics View - what is inherited base and inherited cumulative time [message #77444 is a reply to message #77431] Thu, 13 July 2006 14:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prince.pajero.gmail.com

Prince Singh wrote:
Prince Singh wrote:
> TPTP - 4.1.0.1
> Please explain with a simple example, as to what does the Inherited Base
> Time and Inherited Cumulative time mean.
> They are explained in the Help Contents, under the topic
> Monitoring and analyzing application performance > Profiling an
> application > Profiling Views > Using the Execution Statistics view
>
> BUT
> i could not understand properly as to what they meant.
>
> ALSO,
> How do i get these statistics. I'm able to get the Base time, avg base
> time and the cumulative time but not the inherited times.

> TPTP - 4.1.0.1
> Please explain with a simple example, as to what does the Inherited Base
> Time and Inherited Cumulative time mean.
> They are explained in the Help Contents, under the topic
> Monitoring and analyzing application performance > Profiling an
> application > Profiling Views > Using the Execution Statistics view
>
> BUT
> i could not understand properly as to what they meant.
>

OK, I found how to do this part. But the earlier question remains
> ALSO,
> How do i get these statistics. I'm able to get the Base time, avg base
> time and the cumulative time but not the inherited times.
Re: Execution Statistics View - what is inherited base and inherited cumulative time [message #78735 is a reply to message #77444] Tue, 25 July 2006 14:45 Go to previous message
Ruth Lee is currently offline Ruth LeeFriend
Messages: 6
Registered: July 2009
Junior Member
This is a multipart message in MIME format.
--=_alternative 0051279C852571B6_=
Content-Type: text/plain; charset="US-ASCII"

> TPTP - 4.1.0.1
> Please explain with a simple example, as to what does the Inherited Base

> Time and Inherited Cumulative time mean.
> They are explained in the Help Contents, under the topic
> Monitoring and analyzing application performance > Profiling an
> application > Profiling Views > Using the Execution Statistics view
>
> BUT
> i could not understand properly as to what they meant.
>
> ALSO,
> How do i get these statistics. I'm able to get the Base time, avg base
> time and the cumulative time but not the inherited times.

Hi Prince Singh,

Inherited base time is the amount of base time spent in an instance of a
class' methods plus the
amount of base time spent in any called methods that are part of the
hierarchy.

Inherited cumulative base time is the amount of base time spent in an
instance of a class' methods
plus the amount of base time spent in any called methods.


Here's an example to flesh out the concepts. Say that you have a package
named "mytestpackage",
and in that package there are four types: Grandparent, Parent, Child, and
Util.
Util is a sample utility class that any class might call.

// Code for Grandparent
package mytestpackage;

public class Grandparent {
protected Grandparent() { //1
}
}


// Code for Parent
package mytestpackage;

public class Parent extends Grandparent {
protected int counter;

protected Parent(int i) {
super(); //2
counter = i; //3
init(); //4
}

private void init() {
Util.readTime(counter); //5
}

public void run() {
Util.readTime(counter); //6
}
}



// Code for Child
package mytestpackage;

public class Child extends Parent {
public Child(int i) {
super(i); //7
Util.readTime2(i); //8
for(; i>=counter; i--) {
System.out.println("Hello from the child!"); //9
}
}

public static void main(String[] args) {
new Child(10); //10
}
}


In this example, the inherited base time of Child would be the time for
the call to super(i),
including any time for anything that super(i) calls in the
Grandparent/Parent/Child hierarchy:
Grandparent.Grandparent base time (//1)
+ Parent.init base time (//4 but not //5)
+ Parent.Parent base time (//3)


In this example, the inherited cumulative time of Child would be the time
for the call to super(i),
including any time for anything that super(i) calls, regardless of whether
that call is to a class
that's in the hierarchy or not:
Grandparent.Grandparent time (//1)
+ Parent.init time (//4 and //5)
+ Parent.Parent time (//3)


--Ruth.

--=_alternative 0051279C852571B6_=
Content-Type: text/html; charset="US-ASCII"


<br><tt><font size=2>&gt; TPTP - 4.1.0.1<br>
&gt; Please explain with a simple example, as to what does the Inherited
Base <br>
&gt; Time and Inherited Cumulative time mean.<br>
&gt; They are explained in the Help Contents, under the topic<br>
&gt; Monitoring and analyzing application performance &gt; Profiling an
<br>
&gt; application &gt; Profiling Views &gt; Using the Execution Statistics
view<br>
&gt; <br>
&gt; BUT<br>
&gt; i could not understand properly as to what they meant.<br>
&gt; <br>
&gt; ALSO,<br>
&gt; How do i get these statistics. I'm able to get the Base time, avg
base <br>
&gt; time and the cumulative time but not the inherited times.</font></tt>
<br>
<br><font size=2 face="sans-serif">Hi Prince Singh,</font>
<br>
<br><font size=2 face="sans-serif">Inherited base time is the amount of
base time spent in an instance of a class' methods plus the </font>
<br><font size=2 face="sans-serif">amount of base time spent in any called
methods that are part of the hierarchy.</font>
<br>
<br><font size=2 face="sans-serif">Inherited cumulative base time is the
amount of base time spent in an instance of a class' methods </font>
<br><font size=2 face="sans-serif">plus the amount of base time spent in
any called methods.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Here's an example to flesh out the concepts.
Say that you have a package named &quot;mytestpackage&quot;, </font>
<br><font size=2 face="sans-serif">and in that package there are four types:
Grandparent, Parent, Child, and Util. </font>
<br><font size=2 face="sans-serif">Util is a sample utility class that
any class might call.</font>
<br>
<br><font size=2 face="sans-serif">// Code for Grandparent</font>
<br><font size=2 face="sans-serif">package mytestpackage;</font>
<br>
<br><font size=2 face="sans-serif">public class Grandparent {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; protected
Grandparent() { //1</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<br><font size=2 face="sans-serif">// Code for Parent</font>
<br><font size=2 face="sans-serif">package mytestpackage;</font>
<br>
<br><font size=2 face="sans-serif">public class Parent extends Grandparent
{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; protected
int counter;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; protected
Parent(int i) {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; super(); //2</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; counter = i; //3</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; init(); //4</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; private
void init() {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; Util.readTime(counter); //5</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; public
void run() {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; Util.readTime(counter); //6</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">// Code for Child</font>
<br><font size=2 face="sans-serif">package mytestpackage;</font>
<br>
<br><font size=2 face="sans-serif">public class Child extends Parent {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; public
Child(int i) {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; super(i); //7</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; Util.readTime2(i); //8</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; for(; i&gt;=counter; i--) {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Hello
from the child!&quot;); //9</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; public
static void main(String[] args) {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; new Child(10); //10</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<br><font size=2 face="sans-serif">In this example, the inherited base
time of Child would be the time for the call to super(i), </font>
<br><font size=2 face="sans-serif">including any time for anything that
super(i) calls in the Grandparent/Parent/Child hierarchy:</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;Grandparent.Grandparent
base time (//1)</font>
<br><font size=2 face="sans-serif">+ &nbsp;Parent.init base time (//4 but
not //5)</font>
<br><font size=2 face="sans-serif">+ &nbsp;Parent.Parent base time (//3)</font>
<br>
<br>
<br><font size=2 face="sans-serif">In this example, the inherited cumulative
time of Child would be the time for the call to super(i), </font>
<br><font size=2 face="sans-serif">including any time for anything that
super(i) calls, regardless of whether that call is to a class </font>
<br><font size=2 face="sans-serif">that's in the hierarchy or not:</font>
<br><font size=2 face="sans-serif">&nbsp; Grandparent.Grandparent time
(//1)</font>
<br><font size=2 face="sans-serif">+ Parent.init time (//4 and //5)</font>
<br><font size=2 face="sans-serif">+ Parent.Parent time (//3)</font>
<br>
<br>
<br><font size=2 face="sans-serif">--Ruth.</font>
<br>
--=_alternative 0051279C852571B6_=--
Previous Topic:Profile Launch Xrun library error
Next Topic:Successful TPTP profiling on Ubuntu?
Goto Forum:
  


Current Time: Fri Apr 19 18:41:07 GMT 2024

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

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

Back to the top