# 使用 Homebrew 安装 counts

查看 counts 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:counts
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install counts
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:counts
- **软件包管理器:** Homebrew
- **版本:** 1.0.7
- **来源摘要:** Tool for ad hoc profiling
- **主页:** <https://github.com/nnethercote/counts>
- **仓库:** <https://github.com/nnethercote/counts>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- counts (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.7
## 项目历史与用法

counts is a Rust command-line tool for ad hoc profiling by tallying repeated text lines and presenting frequency and weighted-frequency summaries.

### 项目历史

The public repository was created in 2018. The README positions `counts` as an improved alternative to the Unix `sort | uniq -c` pipeline for profiling data gathered from logging print statements.

The project reached a 1.0.0 release in 2023 and continued with later 1.0.x releases.

### 采用历史

Official installation is through `cargo install counts`, with Homebrew adding a binary-package route for users who prefer system package managers.

### 使用方式

The tool is commonly used by inserting temporary logging into a program, piping or saving those logs, and then using `counts` to aggregate hot paths, loop counts, allocation sizes, or other domain-specific measurements.

The README includes a Firefox heap allocator instrumentation example, showing `counts` applied to millions of log lines and weighted byte totals.

### 为什么软件包爱好者会关心

For package nerds, `counts` is interesting because it deliberately packages a Unix-pipeline-shaped workflow as a fast single-purpose Rust binary: no daemon, no config, and no profiler integration required.

### 时间线

- 2018: Public GitHub repository created.
- 2020: 0.1.2 release published.
- 2023: 1.0.0 release published.
- 2026: 1.0.7 release published.

### Related projects

- Rust
- cargo install
- sort
- uniq

### 来源

- <https://github.com/nnethercote/counts>
- <https://api.github.com/repos/nnethercote/counts>
- <https://github.com/nnethercote/counts/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/counts.yml](https://github.com/mxcl/pkgdb/blob/main/combined/counts.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
