Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » creation of a dynamic callgraph ~ tracepoint
creation of a dynamic callgraph ~ tracepoint [message #241848] Wed, 21 March 2007 17:08 Go to next message
Eclipse UserFriend
Hello,

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 #241853 is a reply to message #241848] Wed, 21 March 2007 18:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Thomas Eichst
Re: creation of a dynamic callgraph ~ tracepoint [message #241867 is a reply to message #241853] Thu, 22 March 2007 13:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Walter,

thanks for your response.

Yes i did. But the status of tptp is not quite clear to me as they are
currently moving from jvmpi to jvmti and the documentation is not as good as
in the jdt project. So i tried it here.

Probably it is a good idea to ask the question in tptp newsgroup, isn't it.


> I think TPTP already supports that, or something close > to it. Have you
> looked?
Re: creation of a dynamic callgraph ~ tracepoint [message #241886 is a reply to message #241867] Thu, 22 March 2007 21:20 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Thomas Eichst
Previous Topic:Removing a field from a class using an ASTVisitor
Next Topic:How to stop clean build on any change?
Goto Forum:
  


Current Time: Sun Nov 09 20:55:33 EST 2025

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

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

Back to the top