Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doc:codeviz [2008/11/18 19:05] mdc |
doc:codeviz [2008/11/19 08:25] (current) mdc |
||
---|---|---|---|
Line 69: | Line 69: | ||
===== Creating nice call graphs ===== | ===== Creating nice call graphs ===== | ||
- | To make a nice call graph of ''rtl_open for instance'', we can do: | + | To make a nice call graph of ''rtl8169_poll for instance'', we can do: |
$ gengraph -f rtl8169_poll -d 3 output-font=Arial --output-layout LR --plain | $ gengraph -f rtl8169_poll -d 3 output-font=Arial --output-layout LR --plain | ||
- | This does a call graph of the function rtl8169_open, depth 3, left-to-right orientation, and requests that output be saved for input to the ''dot'' program. | + | This does a call graph of the function rtl8169_poll, depth 3, left-to-right orientation, and requests that output be saved for input to the ''dot'' program. |
''dot'' is the program that renders the outupt from gengraph: | ''dot'' is the program that renders the outupt from gengraph: | ||
- | $ dot -Gcenter=1 -Gsize=11,8.5 -Gmargin=.333 -Tps -o rtl8169_poll.ps < rtl8169_poll.plain | + | $ dot -GPAPERSIZE=letter -Gsize=8,10.5 -Gcenter=1 -Gmargin=.25 -Tps -o rtl8169_poll.ps < rtl8169_poll.plain |
- | ''dot'' draw the call graph according to the instructions in the ''.plain'' file, and outputs a file in whatever -T says (postscript in this case. png is also popular). | + | ''dot'' draws the call graph according to the instructions in the ''.plain'' file, and outputs a file in whatever -T says (postscript in this case. png is also popular). |
We can also request a ''.pdf'' be created from the ''.ps'' file using ''ps2pdf'': | We can also request a ''.pdf'' be created from the ''.ps'' file using ''ps2pdf'': | ||
- | $ ps2pdf rtl_poll.ps | + | $ ps2pdf rtl8169_poll.ps |
===== Automating the process ===== | ===== Automating the process ===== | ||