473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Trace flow of method call

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
2 9314
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: svenn.are | last post by:
Hi, has anybody thought of / already used graphviz to convert the output of trace.py into a graph? I looked at PyUMLGraph, but 1. PyUMLGraph does not successfully create a dot file, and 2. I...
0
by: Mike Schilling | last post by:
I have some code that calls methods reflectively (the method called and its parameters are determined by text received in a SOAP message, and I construct a map from strings to MethodInfos). The...
0
by: Bennett Haselton | last post by:
I've noticed that if you enter the following code in the codebehind page for an .aspx page, it won't compile because the call to Trace.Write() is not valid except in methods of a class derived from...
5
by: TPS | last post by:
When I set trace enable to true in my web.config file, the debug info does not display at the "bottom" of the page, it displays "under" all of my buttons, labels, grids etc. This behavior...
3
by: Mo | last post by:
Hi, I have a webform which has vb.net code behind it and I would like it to submit the entries in the fields into a sql server db using a stored procedure. I have a central .vb file in my...
4
by: kplkumar | last post by:
This is what my supervisor is looking for. We want runtime debugging/trace logging. In other words, we want to log every method that was executed, perhaps the variables in it as well - everytime...
1
by: D-Someone | last post by:
I am re-posting this message as originially it did not get a single response.. Any ideas? -------------- I am trying to come up with a good design for a web service that has some user logic...
2
by: Stef Mientki | last post by:
hello, I want to investigate on a regular base the flow of my Python (most of them using wxPython) programs. So I want to have some log facilty, that logs things like - every time a function /...
2
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a thread ABC that starts another thread XYX. Thread XYZ monitors various things and if there is no work to do it calls Thread.Sleep to sleep for a minute or so. Occasionally...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.