mirror of
https://github.com/hohn/codeql-sample-polkit.git
synced 2025-12-16 05:43:04 +01:00
Add svg rendering of CFG
This commit is contained in:
committed by
=Michael Hohn
parent
1b8412ca1d
commit
9e8345152e
18186
PrintCFG.dgml/cpp/example/polkit/cfg.svg
Normal file
18186
PrintCFG.dgml/cpp/example/polkit/cfg.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 943 KiB |
@@ -25,7 +25,12 @@ tidy -xml $PRE.dgml | sponge $PRE.dgml
|
||||
./dgml2dot < $PRE.dgml > $PRE.dot
|
||||
|
||||
# Produce the layed-out DAG
|
||||
# Render -- slow steps:
|
||||
dot -Tsvg < $PRE.dot > $PRE.svg &
|
||||
dot -Tpdf < $PRE.dot > $PRE.pdf &
|
||||
|
||||
# View
|
||||
open -a safari $PRE.svg
|
||||
open $PRE.pdf
|
||||
|
||||
# Faster than dot, as sanity check:
|
||||
|
||||
Reference in New Issue
Block a user