Hacker News new | ask | show | jobs
by csdvrx 1718 days ago
Would you know a GUI tool that would use the social network of the functions (who's calling who) to build a visual representation based on metrics of your choice? (ex: eigencentrality)

Ideally it would integrate with an editor to open it on the function you click, and allow other things that make sense to explore a codebase (ex: filter by filename to exclude some files and all the functions they contain)

I've been asked to look at some java code (not my favorite thing). There are about 8000 files, 150 of which seem more important. Having a premade graph to model their relations would let me read the 150 file in order of importance, starting with the most connected one, and maybe even stopping early once I've understood enough of the codebase.

5 comments

You can likely find more through references here: https://www.nist.gov/itl/ssd/software-quality-group/static-a...
Source Insight has call graphs: https://www.sourceinsight.com/#call-graphs
NDepend seems to be rather sophisticated in this regard: https://blog.ndepend.com/visualize-code-with-software-archit...
There's also static analysis suites like Understand: https://www.scitools.com/features
I know those tools exist, but I haven't used them.

IBM's Rational Rose used to do something like that, but it was big buck$, and I don't think it exists, anymore.