rokath/trice
关于
🟢 超快速、超小型的 C/C++ 跟踪与日志记录,即使在中断期间也能使用 ⚡,支持类似 printf 的语法和 PC 实时可视化 💻
开发工具实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +5
- 1个月
- +24
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Trice — Trace IDs for Embedded C
Hi, I am Trice.*

Log C-code in 3 or 7 Assembler instructions (< ~16 clocks) per call.1
Printf-like calls.2 Compact records.3 Even from interrupt handlers.4 Compiler-independent.5 ID-free user code.6 Aliases for legacy code.7 Flash ~1 KB; no printf lib8
Features at a glance — capabilities, introduction versions and obsolete features, with links to examples and details.
See the moments that matter: a fleeting interrupt, a changing sensor value, or the response to a command.9 Trice brings them into view while your firmware runs. Read events as text,10 work with structured values,11 or watch measurements come alive in a plot.12
Start with one task:
| I want to… | Start here |
|---|---|
| See a log without a board | First PC log |
| Log from my firmware | Firmware walkthrough, then choose a transport |
| Save measurements for a spreadsheet or plot | Two values per CSV row |
Use the Guide to find other tasks and the full reference.
Before upgrading a 1.x project, read the migration guide: format braces, CLI options, tags and generated paths have changed. Keep old captures with their matching host tool and dictionaries.
Keep interrupt logging light: transmit raw hardware counter stamps and let the host reconstruct wraps and convert units. Moving this arithmetic to the host can significantly reduce target CPU work, especially when logging in interrupt handlers.
Small demo animation

If Trice helps your work, support the project.
Footnotes:
* The name combines TRace IDs, C and Embedded systems.
- Record creation in an optimized configuration; transmission is handled separately. See the measurement and configuration.
- Printf-like syntax and supported formats.
- Compact binary records and transfer size.
- Trice calls can be used directly inside interrupt handlers. The example output shows interrupt-originated
ISR:messages mixed with events from normal application code. - Target-code portability and modularity.
- Bind keeps numeric IDs out of user log calls; see its supported constructs and compiler requirements.
- Aliases for existing logging and assert macros.
- Small configurations and measured memory use.
- Asynchronous Broadcast Commands and responses.
- Text output and event boundaries.
- Structured Logging with named values.
- Live visualization with the LabPlot demo.
探索相关项目
加载中…