[libcxx-commits] [PATCH] D99124: [libc++] Simpler Python script for generating a graph of libc++'s header dependencies
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 22 15:56:20 PDT 2021
Quuxplusone created this revision.
Quuxplusone added reviewers: ldionne, cjdb, libc++, EricWF.
Quuxplusone added a project: libc++.
Herald added a subscriber: arichardson.
Quuxplusone requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.
I've temporarily named this script `graph_header_deps2.py` because `graph_header_deps.py` already exists — @ericwf wrote it in February 2020. My attempts to play around with `graph_header_deps.py` were mostly fruitless; I needed to modify it in various ways to make it work without a lot of structure around it, and then even when I got it working, it generated pretty ugly graphs.
Existing graph_header_deps.py usage (after my local changes to simplify the usage) (producing https://i.imgur.com/zATrsaP.jpg )
time ./graph_header_deps.py --libcxx-only -o foo --clang-command ~/llvm-project/build/bin/clang++
dot -Tpng < foo/all_headers.dot > old.png
old.png: PNG image data, 25882 x 3035, 8-bit/color RGBA, non-interlaced
New graph_header_deps2.py usage (producing https://i.imgur.com/ZU0G52U.png )
time ./graph_header_deps2.py | dot -Tpng > new.png
new.png: PNG image data, 6162 x 1344, 8-bit/color RGBA, non-interlaced
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 22067 bytes
Desc: not available
More information about the libcxx-commits