Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find good open source code flow visualization software?

I am working on an academic research regarding some very long functions in the Linux kernel (link, link).

For that research, I would like to use some code flow visualization tool, that would be able to plot a graph in which each vertex is a decision point and each edge is a piece of code which runs in a consequent way.

Do you know of any good, open source project that can visualize C code?

like image 375
Adam Matan Avatar asked Jul 16 '09 10:07

Adam Matan


2 Answers

Perhaps a tool like KCacheGrind would be of help. It generates call graphs based on actual calls and cannot pre-generate a call graph without actually running the program, which may not suit your needs, but then it again it may.

KCacheGrind Call Graph

like image 52
Duncan Beevers Avatar answered Sep 19 '22 08:09

Duncan Beevers


History flow's are very neat for changes/diff across multiple versions.

Codeplex has a project, Dependency Visualizer which does support C also.

Gprof2Dot can render oprofile, this would get you dynamic info also.

CodeViz also (static tool) would work.

If your using gcc, gcc-xml has an introspector plugin also todo this.

like image 27
RandomNickName42 Avatar answered Sep 21 '22 08:09

RandomNickName42