Visualizing entire Chromium include graph
Published on: 2025-06-28 13:19:02
Published: May 21, 2025 | at 10:00 AM
In this post I will describe the process of visualizing the Chromium include graph with the help of one of my side projects - clang-include-graph.
The main motivation for this work was to test the new release of clang-include-graph against a large code base.
In the next sections I will describe all steps needed to reproduce the final graph, including building Chromium to obtain the compile_commands.json and generating a GraphML include graph representation using clang-include-graph , which will then be used to visualize the graph using Gephi, but if you’re in a hurry:
TL;DR -> The full graph
Table of contents
clang-include-graph overview
clang-include-graph is a simple Clang-based command line tool for analyzing C/C++ project include graphs. As of version 0.2.0 it provides the following features:
Generating include graph in several formats: Graphviz PlantUML GraphML JSON
Topologically ordered include list
Include tree and reverse include
... Read full article.