Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 async-profiler

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install async-profiler

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install async-profiler

MacPorts ports tree · java/async-profiler/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#async-profiler

nixpkgs package indexes · pkgs/by-name/as/async-profiler/package.nix · 来源: api.github.com

概览

软件包摘要

Sampling CPU & HEAP profiler for Java using AsyncGetCallTrace + perf_events

命令和别名

  • asprof
  • jfrconv

历史

项目历史与用法

async-profiler is a low-overhead sampling profiler for HotSpot-based Java runtimes. Its package-manager identity is unusually strong because the everyday tool is a small native CLI, `asprof`, that produces artifacts Java engineers already trade around: flame graphs, collapsed stacks, JFR recordings, traces, trees, heatmaps, and converter outputs.

项目历史

The project started in 2016 with an initial proof of concept for profiling Java without the safepoint bias that affected many traditional JVM profilers. The README describes the core design as combining HotSpot-specific stack collection with native facilities such as perf events, so it can show Java frames alongside native, kernel, GC, and JIT compiler activity.

Over time async-profiler grew from a CPU sampler into a broader observability utility. Official documentation now covers CPU, allocation, native memory, lock, wall-clock, hardware/software counter, container, Java Flight Recorder, FlameGraph, OTLP, pprof, and converter workflows.

采用历史

The project became a default recommendation in the JVM performance community because it is scriptable, produces portable output, and does not require a heavyweight GUI profiler. The package is distributed through Homebrew, MacPorts, and Nix in the supplied package metadata, while upstream publishes Linux and macOS binaries plus nightly builds from GitHub Actions.

Recent 4.x releases show continued production-oriented maintenance rather than archival status: v4.3 added native lock profiling, latency filtering, Prometheus-format metrics, and Java-agent/JMX control, while v4.4 added differential flame graphs and call-trace memory limits.

使用方式

The normal package-manager workflow is to install the CLI and run `asprof` against a live JVM PID, for example saving a 30-second profile to an HTML flame graph. More advanced workflows attach it as a Java agent, run continuous loops, emit JFR/OTLP/pprof-compatible data, or convert recordings with the bundled converter tooling.

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

async-profiler is one of those packages whose formula matters more than its size suggests: a native tool with JVM-specific privileges, OS-specific packaging, architecture-specific binaries, and output formats that plug into a large performance-debugging ecosystem. It is also a good example of a CLI package that package managers make discoverable to users who otherwise would only encounter it through conference talks or performance postmortems.

时间线

  • 2016: Initial Git commit and proof-of-concept async profiler work.
  • v1.x: Early public release series established the standalone profiler package.
  • 2026: v4.3 added native lock profiling, latency filtering, Prometheus metrics, and Java-agent/JMX control.
  • 2026: v4.4 added differential flame graphs and further FlameGraph/JFR/OTLP improvements.

Related projects

  • The project sits near HotSpot, Linux perf events, Java Flight Recorder, Brendan Gregg-style FlameGraphs, OpenTelemetry, and pprof-style profiling workflows.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:sync

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
asprofcli全局可执行文件
jfrconvcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本4.4
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v4.4

https://github.com/async-profiler/async-profiler

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:async-profiler
版本4.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/async-profiler
主页https://github.com/async-profiler/async-profiler
仓库https://github.com/async-profiler/async-profiler
上游文档https://github.com/async-profiler/async-profiler#readme
许可证Apache-2.0
源码归档https://github.com/async-profiler/async-profiler/archive/refs/tags/v4.4.tar.gz
最后更新2026-06-22T14:02:47-07:00
Pulseupdated
构建依赖cmake, openjdk
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameasync-profiler
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

async-profiler

nix profile install nixpkgs#async-profiler
  • normalized package name match
  • 匹配方式:Async Profiler
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/as/async-profiler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

async-profiler

sudo port install async-profiler
  • normalized package name match
  • 匹配方式:Async Profiler
MacPorts ports tree · api.github.com · MacPorts ports tree: java/async-profiler/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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