Skip to content

dmccreary/callgraph

Repository files navigation

callgraph

Creates XQuery call graphs for complexity analysis. This is a very early pre-release.

The progam works by using the eXist inspect module and then transforms the result to a graph XML markup format. It then converts this graph format to GraphViz "dot" format and then to SVG for rendering within a web browser.

The XQuery pipeline is the following:

let $inspect := inspect:inspect-module($file-name-as-uri) let $graphml := callgraph:main($inspect) let $dot := gv:dotml-to-dot($graphml) let $svg := gv:dot-to-svg($dot)

The current version only works on a single module.

For more information, see the wikibook here:

http://en.wikibooks.org/wiki/XQuery/Call_Graphs

Special thanks to Chris Wallace for his work on the GraphViz XQuery module.

Note that getting the transformation chain to work requires Graphviz to be installed as a shell command.

About

Creates XQuery call graphs for complexity analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published