Quickly identify and visualize the parts of your C++ code that slow down compilation: raw GCC timings, include-graph analysis, build-cache heatmaps, and on-demand live compile feedback.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A VS Code extension to help C++ developers understand, visualize, and optimize their compile-time performance.
Features
Raw Analysis
Use GCC’s -ftime-report to get a phase-by-phase breakdown of where your compiler spends time.
Include Graph
With -H you can see which headers are included most frequently or to the greatest depth.
Build-Cache Heatmap
Track incremental build times for a selected translation unit over your last 20 builds. Colors range from light (fast) to dark red (slow).
Live Analysis
Start/stop on-demand live compile-time feedback in a dedicated view, so you can instantly see how your edits affect compilation.
Cache Management
Clear previous build history with a single command to reset measurements.
Usage
Open the Command Palette
Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).
Type Compile-Time Hotspots:
Then pick any of the following commands:
Raw Analysis — Compile-Time Hotspots: Raw Analysis
Include Graph — Compile-Time Hotspots: Include Graph