Note not "functional dependency". Are there tools available that allow me to build a static function dependency graph from source code? Something which indicates to me which functions depend on which other ones in a graphical manner.
+15
A:
Yes, there certainly are. If you look in the Development category on Hackage, you'll find tools for:
- graphing package dependencies -- n.b requres older cabal
- graphing module dependencies
- graphing function calls
- graphing running data structures
In particular, SourceGraph contains many analysis passes, including:
- visualizing function calls
- computing cyclomatic complexity
- visualizing module imports
Other tools that you might be interested in are:
- HPC, for visualizing test coverage
- ThreadScope, for visualizing runtime behavior
- lscabal, extract modules from a package
Here is the functional call graph produced by SourceGraph run over cabal2arch:
Don Stewart
2010-08-07 17:21:13
+1: Argh, I was about to post the same thing. I suspect SourceGraph is closest what qrest is after.
camccann
2010-08-07 17:23:28
Fabulous! Thank you!
qrest
2010-08-08 01:35:40