C# Call Graph Generation Tool
NDepend is pretty good at this. Additionally Visual Studio 2008 Team System has a bunch of features that allow you to keep track of cyclomatic complexity but its much more basic than NDepend. (Run code analysis)
NDepend is pretty good at this. Additionally Visual Studio 2008 Team System has a bunch of features that allow you to keep track of cyclomatic complexity but its much more basic than NDepend. (Run code analysis)
You can use the java-callgraph tool suite to create accurate enough static and dynamic callgraphs for Java.
Take a look here: http://dave.cheney.net/2014/10/22/simple-profiling-package-moved-updated https://github.com/pkg/profile func main() { defer profile.Start(profile.CPUProfile, profile.ProfilePath(“.”)).Stop() // Rest of program } Build and run your program as per normal. You’ll see the profiling hook mentioned: 2015/07/12 09:02:02 profile: cpu profiling enabled, cpu.pprof Run your program (bench it, run through it, etc) to generate the profile during runtime. Once you’ve … Read more
static void D() { } static void Y() { D(); } static void X() { Y(); } static void C() { D(); X(); } static void B() { C(); } static void S() { D(); } static void P() { S(); } static void O() { P(); } static void N() { O(); } static … Read more
code2flow does exactly this. Full disclosure, I started this project To run $ code2flow source1.js source2.js -o out.gv Then, open out.gv with graphviz Edit: For now, this project is unmaintained. I would suggest trying out a different solution before using code2flow.
The best tool I’ve found is called pyan, and was originally written by Edmund Horner, improved by him, and then given colorization and other features by Juha Jeronen. That version has useful commandline options: Usage: pyan.py FILENAME… [–dot|–tgf] Analyse one or more Python source files and generate an approximate call graph of the modules, classes … Read more
static void D() { } static void Y() { D(); } static void X() { Y(); } static void C() { D(); X(); } static void B() { C(); } static void S() { D(); } static void P() { S(); } static void O() { P(); } static void N() { O(); } static … Read more
Egypt (free software) ncc KcacheGrind (GPL) Graphviz (CPL) CodeViz (GPL)