trace-analysis
What it does
This skill shows your AI how to analyze trace files to find the cause of slow or frozen parts of an app. It is for engineers who investigate performance problems such as UI jank.
When to use it
- ✓When a trace file shows the main thread was blocked or the interface felt slow.
- ✓When a waiting thread needs to be traced back to the thread that woke it up.
- ✓When you need to see what a sleeping or blocked thread was waiting for.
Skill link
https://github.com/chromium/chromium/blob/main/agents/skills/trace-analysis/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My app freezes for a moment. Can you look at this trace file and tell me which thread caused the delay?”
5 new skills a week. 1 minute to read.
How it works
The AI looks at which thread was waiting and follows the wake-up records to find the thread that released it. It also checks system calls to see what the waiting thread was blocked on.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Skill: Trace Analysis for Blocked Threads
When analyzing traces for UI jank or blocked threads (e.g., monitor contention on main thread):
- Don't just look at the ancestors of a slice: Looking at ancestors only shows the calling hierarchy on that thread. It might lead to dead ends or vague links if the callback was posted or triggered by another event loop.
- Follow the 'Woken By' or 'Waking' metadata: Look at the 'Running' or
'Runnable' task on the timeline to inspect what event or thread woke it up or
sent work to it. This bridges cross-thread and async gaps. In SQL queries,
utilize the
waker_utidandwaker_idcolumns in thethread_statetable to find the hard waker thread that moved the target from a sleeping to a runnable state. - Look at syscalls to understand why a thread is not runnable: If a thread
is listed as
SleepingorBlocked(and notRunnable), look at recorded syscalls (such asSYS_futex) to understand what operation or system lock it was waiting for. This adds context on what exact kernel blocker stalled the thread. - Trace cross-process flows (IPC/Binder): If a thread was woken by
system_serveror another process (like Play Store'scom.android.vending), find out what service or operation was being called or completed (e.g. searching forunbindServiceLockedoronAppUpdateInfoinsliceorargstable). Usingwaker_utidto locate the waking thread allows identifying the exact operation handle on that waker thread, creating a causal chain across processes instead of relying on luck or timing estimates. - Identify the chain of events: Chrome -> Play Core library -> System Server (handling connection or binder completion) -> Event handled by background vs UI thread. This gives context on why a shared lock was taken and held synchronously.
This approach avoids getting stuck in opaque library calls and allows tracking complete cross-process flows.
FAQ
What is a trace file?
A trace file records what each part of a program was doing over time. It helps find slow spots.
Why not just look at the parent calls?
Parent calls only show the path on one thread. The cause may come from another thread, so the skill follows the wake-up links.
Does this need special tools?
The skill mentions SQL queries on trace data. Your AI may need access to the trace analysis tool to run them.
Details
Original description by the author
Skill for analyzing trace files and finding hard causal links across threads and processes (using waker_utid).
repo: chromium/chromium
Popularity
- GitHub stars
- 25k
- Ranking position
- #10064
- License
- BSD-3-Clause
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
fuzzing
25kHelps your agent write fuzz tests that feed many random inputs into code to find crashes and bugs in C++ code.
gn-deps-debugging
25kHelps your agent fix build errors caused by missing or wrong dependencies in GN build files, without adding broad, unneeded ones.
java-memory-leaks
25kHelps your agent find and fix Java memory leaks in Android apps by reading leak reports from LeakCanary.
jni-type-conversion
25kHelps your agent replace manual Java-to-C++ conversion code with simpler @JniType annotations in Android code.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.