code analysis - Simple dynamic call graphs in Java -
i looking simple dynamic call graph logger java can add in few lines of code. know there aspect j solution. also, helped zola develop glow c/c++ rewrite similar tool don't want dig jvm internals.
any open source solution out there right stable , better aspectj solution?
the purpose use companion unit testing portions of code want more information behavior.
i think want collect call graph (as opposed set of calls) means possible.
one can with static analyzer (if can strong enough one), collect potential call graph. dynamic method collects 1 @ runtime instrumenting code. folks may want dynamic one, because want see actual call graph specific set of input data.
there several java profilers collect information dynamically, including ours. none of ones open source, know of, wrong.
such profilers work instrumenting code (either source or vm code if language [e.g., java,c#] has such). how depends on supplier. in our case, use our program transformation tools transform source code original form, form collects profiling data.
you can use aspectj insert instrumentation this, too. [it worth noting aspects special case of program transformation]. of course, there's more work instrumenting code; have collect runtime data efficiently , after execution process produce call graph. rather bit of work presumably know glow experience.
Comments
Post a Comment