macOS
brew install uftracelocal Homebrew formula metadata
安装
brew install uftracelocal Homebrew formula metadata
sudo apt install uftraceDebian stable package indexes · uftrace · 来源: deb.debian.org
nix profile install nixpkgs#uftracenixpkgs package indexes · pkgs/by-name/uf/uftrace/package.nix · 来源: api.github.com
sudo zypper install uftraceopenSUSE Tumbleweed package metadata · uftrace · 来源: download.opensuse.org
概览
Function graph tracer for C/C++/Rust
历史
uftrace is a userspace function graph tracer for C, C++, Rust, and Python programs. It records function entry and exit timing, can combine user, library, kernel, event, and scheduling information, and presents the execution flow through replay, reports, graphs, scripts, a TUI, and export formats.
The official repository was created in 2014. The README says uftrace was heavily inspired by the Linux kernel ftrace framework, and that the name combines user and ftrace.
The project began with compiler-supported function tracing but later added dynamic tracing. The README describes that shift explicitly: it initially supported tracing with compiler support, then gained the ability to trace without recompilation by analyzing function prologues and dynamically patching instructions.
Recent releases show the tool continuing to broaden language, architecture, and analysis support. The NEWS file records Python tracing in v0.14, RISC-V support in v0.15, separate debug-file support in v0.16, watchpoints in v0.17, filter-condition work in v0.18, and latency percentile scripting plus Chrome dump timestamp improvements in v0.19.
uftrace's adoption niche is developers and performance investigators who want call-graph-level tracing from a command-line tool, especially on Linux. Its package-manager footprint in this batch includes Homebrew, Debian, Nix, Ubuntu, and openSUSE, showing cross-distribution demand beyond its upstream GitHub audience.
The project also maintains package-awareness in its README by displaying Repology packaging status, a small signal that upstream expects distribution packages to be a major discovery and installation path.
Users can run uftrace live against a program, or record first and replay/report/graph/dump/analyze the saved `uftrace.data` directory. The command set includes `record`, `replay`, `report`, `live`, `info`, `dump`, `recv`, `graph`, `script`, and `tui`.
The tracing modes cover compiler instrumentation such as `-pg`, `-finstrument-functions`, and `-fpatchable-function-entry`, dynamic patching with `-P.`, PLT/library call tracing, Python tracing, kernel tracing through Linux ftrace, Linux event tracing, perf_event scheduling and PMU information, and SystemTap SDT user events.
uftrace also supports filters, function arguments and return values, Chrome trace viewer output, flame graphs, graphviz and mermaid call graphs, source-line information, and scripts through Python/LuaJIT APIs.
For package nerds, uftrace sits in the sweet spot between `strace`, profilers, kernel ftrace, and language-specific tracers. It is a single CLI that exposes a deep stack of optional capabilities, so distribution builds and optional dependencies materially affect what the installed package can do.
It is also notable because it brings kernel-tracing ideas to userspace debugging workflows while remaining scriptable and inspectable from the shell. That makes it attractive in package-manager ecosystems where developers want performance tools available with one install command.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
uftrace | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/namhyung/uftrace
安装元数据
| 软件包键 | brew:uftrace |
|---|---|
| 版本 | 0.19 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/uftrace |
| 主页 | https://uftrace.github.io/slide/ |
| 仓库 | https://github.com/namhyung/uftrace |
| 上游文档 | https://github.com/namhyung/uftrace#readme |
| 许可证 | GPL-2.0-only |
| 源码归档 | https://github.com/namhyung/uftrace/archive/refs/tags/v0.19.tar.gz |
| 依赖 | capstone, elfutils, libunwind, luajit, ncurses, python@3.14 |
| 构建依赖 | pandoc, pkgconf |
| Bottle | 可用 (于 arm64_linux, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | uftrace |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
uftrace 0.17-1
Traces and analyzes execution of programs written in C/C++
https://github.com/namhyung/uftrace
sudo apt install uftraceuftrace
nix profile install nixpkgs#uftraceuftrace 0.15.2-1build2
Traces and analyzes execution of programs written in C/C++
https://github.com/namhyung/uftrace
sudo apt install uftraceuftrace 0.19-1.2
A function call graph tracer for C, C++, Rust and Python programs
https://github.com/namhyung/uftrace
sudo zypper install uftrace来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.