By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,563 Members | 1,307 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,563 IT Pros & Developers. It's quick & easy.

Trace flow of method call

P: n/a
All,
a couple months ago i found a java property that would allow me to trace
the method in/method out of my packages

it looked like

java -D<property>=org.mypackage.* <main class>

Which would trace all in/out of each method in my package...

I cannot find the doc :( anyone knows what I am talking about ?
--
Christophe Elek
SWG - IBM Rational Serviceability
ce***@ca.ibm.com
May 23 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Christophe Elek [IBM] <ce***@ca.ibm.com> wrote:
:: All,
:: a couple months ago i found a java property that would allow me to trace
:: the method in/method out of my packages
::
:: it looked like
::
:: java -D<property>=org.mypackage.* <main class>
::
:: Which would trace all in/out of each method in my package...
::
:: I cannot find the doc :( anyone knows what I am talking about ?
::
::
:: --
:: Christophe Elek
:: SWG - IBM Rational Serviceability
:: ce***@ca.ibm.com

http://java.sun.com/j2se/1.5.0/docs
to
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
to
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
to
http://java.sun.com/j2se/1.5.0/docs/...dows/java.html

Gave you more links to look at in the future.

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________ ________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
May 23 '06 #2

P: n/a
"IchBin" <we***********@pdt.net> wrote in news:FOKcnYqdY-zEz-
7Z******@ptd.net:
http://java.sun.com/j2se/1.5.0/docs
to
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
to
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
to
http://java.sun.com/j2se/1.5.0/docs/...dows/java.html


Thanks IchBin,
The link did not provide me with the answer... directly :)
They reminded me it could be a IBM JDK thingy and not a SUN one

I found IBM JDK has such a feature, named method trace (which I do not see
in SUN JDK)
It is -Xtrace in JDK 5 and -Dibm.dg.trc.methods in JDK 1.4.2

http://www-128.ibm.com/developerwork...jdk/diagnosis/
Interestingly, IBM JDK also has a java API to dump a stack trace... :)

com.ibm.jvm.Dump#JavaDump()/ #HeapDump() / #SystemDump()

Thanks for the hint though :)
May 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.