4 ms·
Could you expand on the graphviz use in dbg context (or ref it)? Is it to draw the call graph? How it's actualy done, with printfs or some lib?
by zoomablemind 6y ago
Could you expand on the graphviz use in dbg context (or ref it)?
Is it to draw the call graph? How it's actualy done, with printfs or some lib?
- tmh88j 6y agoI use it with kcachegrind for profiling, the source being output from xdebug. https://xdebug.org/docs/profiler https://xdebug.org/docs/profiler http://kcachegrind.sourceforge.net/html/Home.html http://kcachegrind.sourceforge.net/html/Home.html
- seanmcdirmid 6y agoYou can use it for whatever you want. Instead of dumping text to a log file, you can dump out graph nodes and connection info to a dot file instead, to then be laid out and rendered into a graph by dotty or whatever else you want to use. It doesn’t require any extra libraries.
- TeMPOraL 6y agoI googled for "dotty" mentioned downthread (didn't know about this tool) and found this PDF: https://www.graphviz.org/pdf/dottyguide.pdf https://www.graphviz.org/pdf/dottyguide.pdf. Section 3.2.2 ldbx, on page 19, (21 in PDF), gives an example of using graphs for debugging a C application.