Visualizing Chromium's Include Graph: A 150MB GraphML Adventure
2025-05-21
This post details visualizing Chromium's massive include graph using clang-include-graph, a command-line tool. The process involved building Chromium to generate compile_commands.json, then using clang-include-graph to produce a 150MB GraphML file. This file, containing over 140,000 nodes and 1.3 million edges, was visualized with Gephi. Python scripts analyzed the graph, revealing interesting statistics like a 92-node strongly connected component responsible for 99% of the cycles. The author explores various visualization layouts and discusses the challenges of working with such a large dataset.
Development