Tracing in Java

S

steve

I have a java app which I'm supposed to maintain. Is there any way I can
find out what methods,class the
application uses from start to end. I don't like the idea of looking at the
code as it will take too much of
my time.

-steve
 
R

Roedy Green

I have a java app which I'm supposed to maintain. Is there any way I can
find out what methods,class the
application uses from start to end. I don't like the idea of looking at the
code as it will take too much of
my time.
Jet has a feature called JetPerfect that will collect a list of
classes actually used during execution. However, that is only
available in the professional edition. See
http://mindprod.com/jgloss/jet.html

You could write your own classloader that dumped the name of each
class to a file at is loads. See
http://mindprod.com/jgloss/classforname.html
 
B

Bryce (Work)

I have a java app which I'm supposed to maintain. Is there any way I can
find out what methods,class the
application uses from start to end. I don't like the idea of looking at the
code as it will take too much of
my time.

Most profiling tools will do tracing
 
B

Bryce (Work)

Jet has a feature called JetPerfect that will collect a list of
classes actually used during execution. However, that is only
available in the professional edition. See
http://mindprod.com/jgloss/jet.html

You could write your own classloader that dumped the name of each
class to a file at is loads. See
http://mindprod.com/jgloss/classforname.html

If you are willing to learn Aspect Oriented Programing, you can create
an aspect that writes to a log file before it enters a message...
 
C

chris

Bryce said:
If you are willing to learn Aspect Oriented Programing, you can create
an aspect that writes to a log file before it enters a message...

Indeed this seems to be the only known use for AOP. <GD&R>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top