Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » How to trace with TPTP ?
How to trace with TPTP ? [message #141363] Thu, 26 March 2009 11:19 Go to next message
Pierre8r is currently offline Pierre8r
Messages: 10
Registered: July 2009
Junior Member
Hello,

From this kind of Java code :

package testtptp;

public class Start {

public static void main(String[] args) {
Aaa aaa = new Aaa();
aaa.doSomething();
}

}

Code :

package testtptp;

public class Aaa {
private int i = 0;

public Aaa() {
setI(getI() + 1);
}

public void doSomething() {
Bbb bbb = new Bbb();
bbb.doOtherThing();
}

private void setI(int i) {
this.i = i;
}

private int getI() {
return i;
}

}



Code :

package testtptp;

public class Bbb {

private int d=15;

public void doOtherThing() {
setD(getD() + 1);
}

private void setD(int d) {
this.d = d;
}

private int getD() {
return d;
}

}


I would like to get this kind of trace file:

Trace File:
Start.java main
Aaa.java Aaa()
Aaa.java GetI()
Aaa.java SetI()
Aaa.java doSomething()
BBB.java doOtherThing()
BBB.java GetD()
BBB.java SetD()

Does TPTP can do this kind of job ?
If yes, somebody can tell me how to do the job step by step ?

Thanks,

Pierre8r
Re: How to trace with TPTP ? [message #141402 is a reply to message #141363] Fri, 27 March 2009 13:46 Go to previous messageGo to next message
David Skeen is currently offline David Skeen
Messages: 5
Registered: July 2009
Junior Member
You could get something like this by profiling to add Common Base
Events; see
http://www.eclipse.org/tptp/monitoring/documents/tutorials/t ptp_btm_setup_4.5.html#2.5
for a description of how this is done.
--
Dave Skeen
Re: How to trace with TPTP ? [message #141412 is a reply to message #141402] Sat, 28 March 2009 21:00 Go to previous messageGo to next message
Pierre8r is currently offline Pierre8r
Messages: 10
Registered: July 2009
Junior Member
Hello,

In the tutorial they speak about :
From the Profile Configuration screen select the Monitor tab -> Common
Base Event Analysis under the Instrument Collector.

I find nothing about Common Base Event.

http://picasaweb.google.com/lh/photo/RnuCzReEQChai0PdaSInfg? feat=directlink

I work with Release Build: TPTP-4.5.2.
Re: How to trace with TPTP ? [message #141456 is a reply to message #141363] Mon, 30 March 2009 15:23 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene Chan
Messages: 287
Registered: July 2009
Senior Member
Hi Pierre8r,

You may want to consider using TPTP ProbeKit to trace the stack of your
application run into a trace file of your format.

See here for detail on how to create on and configure.
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.hyades.probekit.doc.user/topics/c_toc_probekit.htm

Eugene

"Pierre8r " <pierre8r-eclipse@yahoo.fr> wrote in message
news:861e188290e72d5d9e04e862212c4684$1@www.eclipse.org...
> Hello,
>
> From this kind of Java code :
>
> package testtptp;
>
> public class Start {
>
> public static void main(String[] args) {
> Aaa aaa = new Aaa();
> aaa.doSomething();
> }
>
> }
>
> Code :
>
> package testtptp;
>
> public class Aaa {
> private int i = 0;
>
> public Aaa() {
> setI(getI() + 1);
> }
>
> public void doSomething() {
> Bbb bbb = new Bbb();
> bbb.doOtherThing();
> }
>
> private void setI(int i) {
> this.i = i;
> }
>
> private int getI() {
> return i;
> }
>
> }
>
>
>
> Code :
>
> package testtptp;
>
> public class Bbb {
>
> private int d=15;
>
> public void doOtherThing() {
> setD(getD() + 1);
> }
>
> private void setD(int d) {
> this.d = d;
> }
>
> private int getD() {
> return d;
> }
>
> }
>
>
> I would like to get this kind of trace file:
> Trace File:
> Start.java main
> Aaa.java Aaa()
> Aaa.java GetI()
> Aaa.java SetI()
> Aaa.java doSomething()
> BBB.java doOtherThing()
> BBB.java GetD()
> BBB.java SetD()
>
> Does TPTP can do this kind of job ?
> If yes, somebody can tell me how to do the job step by step ?
>
> Thanks,
>
> Pierre8r
>
>
>
>
Re: How to trace with TPTP ? [message #141585 is a reply to message #141412] Tue, 31 March 2009 17:08 Go to previous message
David Skeen is currently offline David Skeen
Messages: 5
Registered: July 2009
Junior Member
From
http://www.eclipse.org/tptp/monitoring/documents/tutorials/t ptp_btm_setup_4.5.html#1.2

The CBE part of BtM has dependency on LTA (Log and Trace Analyzer) which
is moved out from TPTP main release. If you want to use CBE part, please
have LTA installed firstly. We'll disable CBE part when LTA is not
installed. https://bugs.eclipse.org/bugs/show_bug.cgi?id=237589

Pierre8r wrote:
> From the Profile Configuration screen select the Monitor tab -> Common
> Base Event Analysis under the Instrument Collector.
>
> I find nothing about Common Base Event.
Previous Topic:tptp multiple client connect
Next Topic:"Run As > JUnit Test" on inherited test method
Goto Forum:
  


Current Time: Mon Oct 20 04:39:54 GMT 2014

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

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