Perfetto and Tracy Profiling
Adds Perfetto or Tracy tracing to C++ code and queries the results, so you see why one frame or request is slow.
Claude's review
7/10 Runnable Perfetto and Tracy instrumentation, trace SQL, headless capture and a troubleshooting table.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Instrumentation tracing skill for Perfetto and Tracy. Use when adding trace events or zones to C/C++ code, recording a timeline of frames, requests or tasks, querying traces with SQL in Perfetto's trace processor, capturing Tracy profiles headlessly in CI, or choosing between tracing and sampling profilers. Activates on queries about Perfetto, Perfetto SDK, TRACE_EVENT, trace_processor_shell, pftrace, ui.perfetto.dev, Tracy, ZoneScoped, FrameMark, tracy-capture, or timeline tracing.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: tracing-profilers
description: Instrumentation tracing skill for Perfetto and Tracy. Use when adding trace events or zones to C/C++ code, recording a timeline of frames, requests or tasks, querying traces with SQL in Perfetto's trace processor, capturing Tracy profiles headlessly in CI, or choosing between tracing and sampling profilers. Activates on queries about Perfetto, Perfetto SDK, TRACE_EVENT, trace_processor_shell, pftrace, ui.perfetto.dev, Tracy, ZoneScoped, FrameMark, tracy-capture, or timeline tracing.
---
# Tracing Profilers: Perfetto and Tracy
## Purpose
Guide agents through instrumentation-based timeline tracing (checked with Perfetto v59.1 and Tracy 0.15.0): adding events to code, recording traces, analysing them with SQL or CSV, and choosing between tracing and sampling.
## Triggers
- "Why does one frame/request take longer than the others?"
- "How do I add Perfetto trace events to my C++ program?"
- "How do I query a Perfetto trace with SQL?"
- "How do I instrument a game loop with Tracy?"
- "Can I capture a Tracy profile without the GUI?"
- "Should I use a tracing or a sampling profiler?"
## Workflow
### 1. Tracing vs sampling
| Question | Tool |
|----------|------|
| Where does CPU time go on average? | Sampling: `perf`, flame graphs (`skills/profilers/linux-perf`) |
| Why was *this* frame or request slow? Ordering, waits, overlaps | Tracing: Perfetto, Tracy |
| Long-running services, low overhead, many processes | Perfetto (SDK + system tracing, SQL analysis) |
| Games, real-time loops, interactive live view | Tracy (live GUI, frame marks, very low per-zone cost) |
Instrumentation only records what you mark, so start with coarse spans (frame, request, job)
and refine where the timeline shows gaps.
### 2. Perfetto SDK: track events
The SDK ships as two amalgamated files (`perfetto-cpp-sdk-src.zip`: `perfetto.h`, `perfetto.cc`).
```cpp
// app.cc — Perfetto SDK track events: in-process tracing to a file
...From mohitmishra786's repository, MIT licence.
Related skills
-
Checked
Kotlin Toolchain CLI
Builds, tests and packages Kotlin projects with the new JetBrains Kotlin Toolchain CLI, formerly called Amper.
7/101 credit -
Checked
Rust best practices
Writes and reviews idiomatic, maintainable Rust code and runs a checklist before handing it back to you.
7/101 credit -
Checked
Port code to Rust
Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.
9/101 credit -
Checked
Rust code review
Reviews Rust code for idiom, errors, safety and API design, with a ranked report and a fix for every finding.
8/101 credit -
Checked
Java Debugging Guide
Finds the cause of Java bugs and failing tests, and attaches a debugger safely in Maven, Gradle, Spring or Docker.
7/101 credit -
Checked
Multi axis code review
Reviews a diff for correctness, design, tests and security with severity labels, so only solid code merges.
8/101 credit