Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » creation of a dynamic callgraph ~ tracepoint
creation of a dynamic callgraph ~ tracepoint [message #93962] Thu, 22 March 2007 13:42 Go to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-Engelen
Messages: 50
Registered: July 2009
Member

Hi there,

i asked this question in jdt newsgroup yesterday. Someone gave me the hint
that tptp is already capable of creating dynamic callgraphs ... correct?

Kind regards,

Thomas E.-E.

#####################################################

I would like to create a dynamic callgraph of a junit testrun while running
it in eclipse.

So far i used a static callgraph (created by using AST) which was quite
sufficient to feed a plugin with data. Now i would like to go one step
further and e.g. compare the static with the dynmaic callgraph to state some
things about the testrun (especially when it fails).

How could i accomplish this requirement?

At first i used the little "Trace" program which is delivered with Sun's jdi
examples. It creates traceFiles which contains the information i need.
Great! Now i would like to benefit from all the work you have done with
making JDI more handleable (Object and ValueWrappers, etc.). Therefore i
tried to listen to JDIEvents within eclipse directly (without having to
parse the traceFile etc.).

Unfortunately this was not as successful as i wished (for now). First I
tried a slightly modified JavaMethodBreakpoint. The modification was to
switch off the ClassFilter to get notified about all MethodEntryEvents after
testRunStarted (TestRunListener) was fired. This slowed down the execution
dramatically (as expected). After that i played around with
ClassPrepareEvents to reduce the amount of methods somehow (was not a really
good idea).

Could you give me a slight hint how to create such a dynamic callgraph
within eclipse?

Any help would be greatly appreciated,

Thomas E.-E.
Re: creation of a dynamic callgraph ~ tracepoint [message #94025 is a reply to message #93962] Fri, 23 March 2007 10:20 Go to previous message
No real name is currently offline No real name
Messages: 404
Registered: July 2009
Senior Member
TPTP currently includes a UML2SD, and a execution flow diagram. There have
been talks to include a call graph as well. See the following enhancement:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=147932 (thread analysis views
were included for the JVMTI agent and I'm assuming that call graphs are
next)

Thanks,
Ali Mehregani

"Thomas Eichst
Previous Topic:UML2SD: Location of plug-ins?
Next Topic:Profile without AgentController
Goto Forum:
  


Current Time: Thu Jul 31 01:21:37 EDT 2014

Powered by FUDForum. Page generated in 0.25145 seconds