Cross-compiler build-time profiling and attribution
Problem
Build-time analysis tools are per toolchain (Clang -ftime-trace with ClangBuildAnalyzer, MSVC vcperf), so projects that build with several compilers cannot compare or track build cost over time.
Hypothesis
A tool that normalizes traces across Clang, GCC and MSVC and attributes cost to headers, templates and dependencies over time might help projects keep build times down.
A CLI that reads Clang -ftime-trace and MSVC build-insights output into one schema, attributes time to headers and template instantiations, and stores per-commit history for CI.
Evidence
- time-trace: timeline / flame chart profiler for Clang (origin of -ftime-trace)article · aras-p.info
- ClangBuildAnalyzer: Clang build analysis tool using -ftime-tracedoc · github.com
- vcperf: MSVC build-time analysis tooldoc · github.com
- 2025 C++ Developer Survey summary: 'Fix Compilation Times' among the primary themesdata · isocpp.org
Existing solutions
- ClangBuildAnalyzerpartialClang -ftime-trace only
- vcperfpartialMSVC only
- include-what-you-usepartialReduces includes; does not measure build time
- ccachepartialCaches compilations; does not attribute cost
Attached signals
Recent issues and discussions in 12 tracked projects (Apache TVM, CCCL (Thrust, CUB, libcudacxx), Gazebo (gz-sim), Intel oneAPI DPC++ compiler (intel/llvm) and 8 more) mention “compile time”. This is an automatically detected signal, not a validated need.
12 projects25 issues/discussionscurated pain phrase