# Install clang-build-analyzer with Homebrew, Nix

Tool to analyze compilation time. Version 1.6.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:clang-build-analyzer
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clang-build-analyzer
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#clangbuildanalyzer
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cl/clangbuildanalyzer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:clang-build-analyzer
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/clang-build-analyzer>
- **Version:** 1.6.0
- **Source summary:** Tool to analyze compilation time
- **Homepage:** <https://github.com/aras-p/ClangBuildAnalyzer>
- **Repository:** <https://github.com/aras-p/ClangBuildAnalyzer>
- **Upstream docs:** <https://github.com/aras-p/ClangBuildAnalyzer#readme>
- **License:** Unlicense AND Zlib AND MIT AND BSL-1.0 AND BSD-3-Clause AND Apache-2.0 AND BSD-2-Clause AND (Apache-2.0 WITH LLVM-exception)
- **Source archive:** <https://github.com/aras-p/ClangBuildAnalyzer/archive/refs/tags/v1.6.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ClangBuildAnalyzer (cli)
- ClangBuildAnalyzer (alias)

## Build dependencies

- cmake

## Uses from macOS

- llvm

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.6.0
- Local data: ok
- Upstream repository: https://github.com/aras-p/ClangBuildAnalyzer
- Upstream latest detected: v1.6.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Clang Build Analyzer is a C and C++ build analysis tool that aggregates Clang -ftime-trace JSON files and reports where compilation time is spent. It is a package-nerd tool for people optimizing slow native builds rather than a general application framework.

### Project history

The repository was created in August 2019 after Clang 9 introduced -ftime-trace. The README says the tool takes the single-file trace output generated by Clang and aggregates many compilation traces into summaries of slow files, templates, functions, code generation, and expensive headers.

### Adoption history

The supplied package-manager data lists Homebrew and Nix packaging. Release metadata shows an initial 1.0.0 release labeled 'Initial release' and later releases tracking newer Clang support, including Clang 19 support in 1.6.0.

### How it is used

A typical workflow starts capture with ClangBuildAnalyzer --start, builds with Clang 9 or later using -ftime-trace, stops capture with --stop, and runs --analyze on the produced capture file. A ClangBuildAnalyzer.ini file in the working directory controls how many expensive files, templates, functions, and headers are reported.

### Why package nerds care

It matters because it packages a practical workflow around a compiler diagnostic format. For large C++ codebases, it turns a pile of per-object JSON traces into actionable package-maintainer and build-engineer questions: which headers, templates, source files, or compiler phases are costing rebuild time?

### Timeline

- 2019: Repository created after Clang 9 documented -ftime-trace.
- 2020: v1.0.0 initial release published on GitHub.
- 2020: v1.2.0 focused on optimizations for large builds.
- 2023: v1.5.0 improved expensive-header information.
- 2025: v1.6.0 added Clang 19 support and fixes.

### Related projects

- Related projects include Clang, LLVM, Clang's -ftime-trace support, Chrome trace viewers, speedscope.app, and native build systems such as Make, CMake, Xcode, and Visual Studio.

### Sources

- <https://github.com/aras-p/ClangBuildAnalyzer>
- <https://raw.githubusercontent.com/aras-p/ClangBuildAnalyzer/main/readme.md>
- <https://raw.githubusercontent.com/aras-p/ClangBuildAnalyzer/main/ClangBuildAnalyzer.ini>
- <https://api.github.com/repos/aras-p/ClangBuildAnalyzer/releases>
- <https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./ClangBuildAnalyzer.ini
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clang-build-analyzer
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - clangbuildanalyzer: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/cl/clangbuildanalyzer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [gradle-profiler](https://www.automicvault.com/pkg/brew/gradle-profiler/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, profiling.
- [uftrace](https://www.automicvault.com/pkg/brew/uftrace/) - Shares av.db curated category or tags: cli, cpp, developer-tools, profiling.
- [cargo-bloat](https://www.automicvault.com/pkg/brew/cargo-bloat/) - Shares av.db curated category or tags: cli, developer-tools, profiling.
- [cargo-flamegraph](https://www.automicvault.com/pkg/brew/cargo-flamegraph/) - Shares av.db curated category or tags: cli, developer-tools, profiling.
- [cargo-instruments](https://www.automicvault.com/pkg/brew/cargo-instruments/) - Shares av.db curated category or tags: cli, developer-tools, profiling.
- [ccache](https://www.automicvault.com/pkg/brew/ccache/) - Shares av.db curated category or tags: build-tools, clang, cli, developer-tools.
- [compiledb](https://www.automicvault.com/pkg/brew/compiledb/) - Shares av.db curated category or tags: build-tools, clang, cli, developer-tools.
- [counts](https://www.automicvault.com/pkg/brew/counts/) - Shares av.db curated category or tags: cli, developer-tools, profiling.
- [clang-include-graph](https://www.automicvault.com/pkg/brew/clang-include-graph/) - Package names and metadata indicate a similar tool family. Shared terms: analysis, clang, cli, cpp, developer.
- [clang-uml](https://www.automicvault.com/pkg/brew/clang-uml/) - Package names and metadata indicate a similar tool family. Shared terms: analysis, clang, cli, cpp, developer.

## Combined YAML source

View the package source record on GitHub. [combined/clang-build-analyzer.yml](https://github.com/automic-vault/db/blob/main/combined/clang-build-analyzer.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
