Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating a call graph for a php file using Doxygen

I am trying to use doxygen to generate a call graph for a simple php file. My set up is:

OS X 10.8.5
Doxygen 1.8.5
graphviz 2.34.0 

dot is in my path and my doxygen config file looks like this

When i run doxygen with my config file it generates the html and latex folders but I don't get any graph images whatsoever. Any indications as to what I might be doing wrong here?

like image 269
BIOS Avatar asked Feb 07 '26 12:02

BIOS


1 Answers

I have checked the file Provided by you as there are two variable to provide the information needed to run DOT Successfully. The First Change is required is

# The tag DOT_PATH can be used to specify the path where the dot tool can be 
# found. If left blank, it is assumed the dot tool can be found in the path.

DOT_PATH               = 

Change it to the dot path location as I did for windows as:

DOT_PATH               = "C:/Program Files/Graphviz2.30/bin"

This would help Doxygen to run DOT for graphs and 2nd option is to consideration is

# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is 
# allowed to run in parallel. When set to 0 (the default) doxygen will 
# base this on the number of processors available in the system. You can set it 
# explicitly to a value larger than 0 to get control over the balance 
# between CPU load and processing speed.

DOT_NUM_THREADS        = 0

Change the 0 to any number to able to generate the graphs. 0 means no thread for creation of graphs. I have changed it as:

DOT_NUM_THREADS        = 25

After changing both things you will have successful Graphs available to your project.

like image 96
Vineet1982 Avatar answered Feb 09 '26 03:02

Vineet1982



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!