Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » configuring for tracing through methods
configuring for tracing through methods [message #525259] Mon, 05 April 2010 17:06 Go to next message
kerchunk  is currently offline kerchunk
Messages: 1
Registered: April 2010
Junior Member
Greetings all,

I'm just getting started with TPTP (4.6.2) and could use some advice on how to set up a TPTP configuration for tracing/logging program execution.

For starters I built a simple Java project with one public class, which in turn contains two methods:

public class Fixen {

public int countem() {
int outVal = 0;
.....
return outVal;
}

public static void main(String[] args) {
int tott;
Fixen theApp;

theApp = new Fixen();

System.out.println("starting");
tott = theApp.cntr_func();
System.out.println( Integer.toString( tott) );
System.out.println("done");
}

}

I'd like to set up a configuration to capture program flow ie. something like:
time 0000000 - entered main() of Fixen
time 0000001 - entered cntr_func of Fixen
time 0000003 - exited cntr_func of Fixen
time 0000005 -exited main() of Fixen

Assuming this can be achieved, I'll need to expand the configuration to handle a full-blown RichFaces/JSF/JSP/servlets dynamic web application.

TPTP sounds like it's the right tool for the job - otw it's carpetbombing my code with println's and logger stmts - ugh.

Any advice/comments/suggestions/constructive criticisms welcome!

TIA,

Chris the TPTP newbie


Re: configuring for tracing through methods [message #525702 is a reply to message #525259] Wed, 07 April 2010 09:47 Go to previous message
Eugene Chan is currently offline Eugene Chan
Messages: 287
Registered: July 2009
Senior Member
Hi,

You can create a TPTP Java Application or External Java Application launch
configuration with Execution Analysis (Graphical Detail enabled as default)
to profile your application. Once the appplication is launched and profiled,
you can open the Execution Statistics view with Call Graph tab that shows
the execution path of your application.

Eugene


"kerchunk" <kerchunk@excite.com> wrote in message
news:hpdjc0$eki$1@build.eclipse.org...
> Greetings all,
>
> I'm just getting started with TPTP (4.6.2) and could use some advice on
> how to set up a TPTP configuration for tracing/logging program execution.
>
> For starters I built a simple Java project with one public class, which in
> turn contains two methods:
>
> public class Fixen {
>
> public int countem() {
> int outVal = 0;
> .....
> return outVal;
> }
> public static void main(String[] args) {
> int tott;
> Fixen theApp;
>
> theApp = new Fixen();
>
> System.out.println("starting");
> tott = theApp.cntr_func();
> System.out.println( Integer.toString( tott) );
> System.out.println("done");
> }
>
> }
>
> I'd like to set up a configuration to capture program flow ie. something
> like:
> time 0000000 - entered main() of Fixen
> time 0000001 - entered cntr_func of Fixen
> time 0000003 - exited cntr_func of Fixen
> time 0000005 -exited main() of Fixen
>
> Assuming this can be achieved, I'll need to expand the configuration to
> handle a full-blown RichFaces/JSF/JSP/servlets dynamic web application.
>
> TPTP sounds like it's the right tool for the job - otw it's carpetbombing
> my code with println's and logger stmts - ugh.
>
> Any advice/comments/suggestions/constructive criticisms welcome!
>
> TIA,
>
> Chris the TPTP newbie
>
>
>
Previous Topic:RPT - Error connecting to citrix servers
Next Topic:Unit Testing for C Applications
Goto Forum:
  


Current Time: Fri Aug 22 19:41:13 EDT 2014

Powered by FUDForum. Page generated in 0.01721 seconds