Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » configuring for tracing through methods
configuring for tracing through methods [message #525259] Mon, 05 April 2010 21:06 Go to next message
kerchunk  is currently offline kerchunk Friend
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 13:47 Go to previous message
Eugene Chan is currently offline Eugene ChanFriend
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: Tue Apr 23 10:16:44 GMT 2024

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

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

Back to the top