tracing function with Graphviz

I was searching for a tool to trace the function flow to help me understand the code. I came across the article "visualize function calls with graphviz" by Tim Jones.
Visualize function calls with Graphviz

I was able to obtain the flow diagram for simple programs and also for the example program mentioned in the article.

But failed when tried to use for large project. I included instrument.c file in the Makefile under the list of source files to be compiled. instrument.o file was generated but trace.txt was not generated. Also included -g and -finstrument-functions..

CFLAGS = -g -finstrument-functions

Can anyone guide me, if you have used that tool...

Thanks,
Chandra