Questions tagged [call-graph]

A Call-Graph is a visual representation of calls between functions/procedures/methods etc. Typically created from the entry point of the code through each of the calls.

A Call-Graph is a useful tool in researching problems in your code. By seeing a visual reference of the order calls are performed, it allows the individual to trace back to a piece of code quicker. This allows them to test data output in various points faster by reducing the number of files that will have to be opened and searched to track this data manually.

Questions with this tag would include:

  1. How to build a call-graph in a particular language.
  2. Understanding a particular call-graph. This should generally include a visual reference.

Additional information about call graphs can be found on Wikipedia under the entry Call_Graph

217 questions
8
votes
2 answers

Intel Vtune on amd processors

I've installed Intel Vtune Analyzer 9 to get call-graph and counter-monitor data from a win32 application on a Windows 7 PC with AMD Turion X2 TL-58 processor but it gives an error saying :"The CPU architecture can't be identified properly, data…
iceman
  • 4,211
  • 13
  • 65
  • 92
8
votes
3 answers

Source code browsing, comprehension and reading tools

I am primarily a C and C++ programmer and i often need to quickly comprehend the structure of very large code bases (gcc, linux kernel). I wonder if there are any tools to help in this regard. I am particularly interested in call graphs, data…
Inso Reiges
  • 1,889
  • 3
  • 17
  • 30
8
votes
2 answers

Generating call graph for C code

I'm writing a tool and I need to generate the callgraph for some C projects. I was able to generate the callgraph of one file using clang, but I was not able to find out how to generate the call graph across the whole project which contains tens of…
cipher
  • 129
  • 1
  • 8
7
votes
1 answer

Build a file diagram for an R code

I need to work on a relatively large R code written by someone else. The code has no documentation, and it's split into countless files, each one of which can contain one or more functions. The original author didn't use a Makefile, so there's no…
DeltaIV
  • 4,773
  • 12
  • 39
  • 86
7
votes
2 answers

Symbolicating stripped binary using symbols from older debug version (inexact graph matching)

I have binary A, which is a debug build with accompanying symbols -- built many years ago. I also have binary B, a release build without accompanying symbols and is much more recent. I am looking for the most efficient method of matching the symbols…
Aidan Steele
  • 10,999
  • 6
  • 38
  • 59
7
votes
2 answers

Doxygen is not generating call graphs for most methods/functions

this seems to be a bug. link to bugreport: https://bugzilla.gnome.org/show_bug.cgi?id=731363 I'm using Doxygen 1.8.7 and Graphviz 2.38. I configured Doxygen to scan a bigger project and generate the documentation as HTML page. Now, I want/need the…
Steffen Winkler
  • 2,805
  • 2
  • 35
  • 58
7
votes
2 answers

Generating a comprehensive callgraph using GCC & Egypt

I am trying to generate a comprehensive callgraph (complete with low level calls to Linux, runtime, the lot). I have statically compiled my source files with "-fdump-rtl-expand" and created RTL files, which I passed to a PERL script called Egypt…
boffin
  • 639
  • 2
  • 13
  • 26
6
votes
2 answers

A 'profiler with visualization' for PHP with `full backtrace visualization`?

Currently, I am using xdebug profiler & KCacheGrind. But GallGrind format does not store full call trace, just the parent child call traces (look at Kcachegrind/callgrind is inaccurate for dispatcher functions? for what I am talking about.) Is…
ThinkingMonkey
  • 12,539
  • 13
  • 57
  • 81
6
votes
3 answers

Tools to visualize multithreaded C++ application call graph, multithreaded code coverage?

I would like to know if there are tools that can Help visualize call graph of a large multi-threaded application. Specifically I want to see how multiple threads interleaves on one core / executes simultaneously on multiple cores. The tool would…
6
votes
2 answers

gprof - File is missing call-graph data

I'm just starting out with gprof and am trying to generate a call graph. I'm using cmake for setting up my makefiles and I'm setting CMAKE_EXE_LINKER_FLAGS = -gp to enable profiling. The only cxx flags I have enabled is -g. Then I simply call gprof…
Vaidy
  • 61
  • 1
  • 2
6
votes
3 answers

How can I print all executed subroutines?

E.g. I have following Perl script { package A; { package B; sub _y { print "Just Another Perl Hacker\n"; } } sub _x { print "Hello world!\n"; B::_y(); } } use…
Paul Serikov
  • 2,550
  • 2
  • 21
  • 36
6
votes
4 answers

How can I see a visualization of a dynamic call graph for a .NET program?

Is there a tool out there for visualizing dynamic call graphs? I saw a reference to one for Visual Basic 6 but I'd like one for .NET. If I had to build a visualizer myself should I bother with the .NET profiling API or should I do something with…
Mark Cidade
  • 98,437
  • 31
  • 224
  • 236
6
votes
2 answers

how to give more than one c file as input to GNU Cflow?

I was able to generate the callgraph of one file using gnu - cflow, but I was not able to find out how to generate the call graph for multiple files using cflow. I tried following cflow test.c,hello.c It generates the callgraph for test.c and not…
gramcha
  • 692
  • 9
  • 16
6
votes
1 answer

Generating Function Call-Graph Doxygen+Graphviz

How can I generate a function call graph using Doxywizard with Graphviz installed? (I'm aware of how to get doxygen to produce call & caller graphs for c functions, but it didn't help) Currently, I've tried the following config:…
gcandal
  • 937
  • 8
  • 23
5
votes
2 answers

Call graph for a turbo pascal program

I am doing some maintenance to a 18 year old pascal program. To help me understand how everything fits together I want to draw a call graph. However I cant find any software that can draw a call graph for pascal source. I am currently using Turbo…
Gerhard
  • 6,850
  • 8
  • 51
  • 81
1 2
3
14 15