I got my graph with using gprof,gprof2dot.py and Graphviz.However i want to access the information of how many nodes,edges there.
I compiled the code with profiling enabled , so after running the executable gmon.out was created. Then gprof ./xmltest ./gmon.out > result.txt result.txt contains generated flat profile and call graph information.
After that used this command gprof ./xmltest | ./gprof2dot.py | dot -Tpng -o result.png to create the visualized graph. However, i need the number of nodes and edges but i cannot access that info.