# aras-p/ClangBuildAnalyzer

Clang build analysis tool using -ftime-trace

Repository: https://github.com/aras-p/ClangBuildAnalyzer
Canonical: https://ross.abutalabs.com/products/clangbuildanalyzer
Language: C++
License: Unlicense
License Family: permissive
Topics: clang, build-analysis
Last push: 2025-03-21T04:55:04+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 12, release rhythm 8, longevity 100
- inputs: {"age_days": 2573, "days_push": 530, "days_rel": 605, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1253, forks 77 (observed 2026-08-28T04:04:08.623392+00:00)

## What it is
A command-line tool that aggregates Clang -ftime-trace JSON reports across a whole C/C++ build and summarizes what took the most compile time. It reports slowest files to parse, template instantiation costs, codegen hotspots, and header include statistics.

## Use cases
- find which source files are slowest to compile
- identify expensive C++ template instantiations
- analyze header include chains and parsing time
- aggregate clang ftime-trace reports across a build
- speed up C++ build times
- find functions with slow codegen and optimization

## When to choose
- you build C/C++ with Clang 9+ and want to reduce compile times
- you need project-wide aggregation of -ftime-trace data
- you want to find slow headers or template instantiation bottlenecks

## When to avoid
- your build uses GCC or MSVC rather than Clang
- you need per-file interactive flame charts instead of aggregate summaries
- you are profiling runtime performance rather than compile time

## Facets
- artifact type: cli-tool
- maturity: stable
- function: developer-tools, benchmarking, build-tool
- domain: developer-tools, performance, compilers
- platform: cli, cross-platform, cpp
- tags: clang, ftime-trace, build-analysis, compilation-profiling, c-plus-plus

## Member repositories
- aras-p/ClangBuildAnalyzer (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.623392+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:07:27.731253+00:00, confidence not recorded.
  - readme: https://github.com/aras-p/ClangBuildAnalyzer (fetched 2026-08-28T04:04:08.623392+00:00, sha 32ff195582f4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
