creation of a dynamic callgraph ~ tracepoint [message #93962] |
Thu, 22 March 2007 17:42 |
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01665 seconds