trace-analysis
できること
このスキルは、トレースファイルを分析して、アプリの遅い部分や固まった部分の原因を見つける方法をAIに示します。UIのカクつきなどの性能の問題を調べるエンジニア向けです。
使う場面
- ✓トレースファイルで、メインのスレッドがブロックされ、画面が遅く感じられたとき。
- ✓待機しているスレッドを、それを起こしたスレッドまでたどる必要があるとき。
- ✓眠っているスレッドやブロックされたスレッドが何を待っていたかを見たいとき。
スキルのリンク
https://github.com/chromium/chromium/blob/main/agents/skills/trace-analysis/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“アプリが一瞬固まります。このトレースファイルを見て、どのスレッドが遅延を起こしたか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、どのスレッドが待機していたかを見て、起こす記録をたどり、それを解放したスレッドを見つけます。また、システムコールを確認して、待機しているスレッドが何でブロックされていたかを調べます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
トレースファイルとは何ですか?
プログラムの各部分が時間とともに何をしていたかを記録したものです。遅い箇所を見つけるのに役立ちます。
親の呼び出しだけを見ればよいのではないですか?
親の呼び出しは、1つのスレッドの経路しか示しません。原因は別のスレッドにあるかもしれないので、このスキルは起こす関係をたどります。
特別なツールが必要ですか?
このスキルはトレースのデータに対するSQLクエリに触れています。実行するには、AIがトレース分析ツールにアクセスできる必要があるかもしれません。
詳細
作者による元の説明
Skill for analyzing trace files and finding hard causal links across threads and processes (using waker_utid).
repo: chromium/chromium
人気
- GitHubのスター
- 25k
- ランキング
- #10064
- ライセンス
- BSD-3-Clause
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
fuzzing
25kエージェントが、多くのランダムな入力をコードに与えてクラッシュやバグを見つけるファジングテストを、C++のコードで書けるよう支援します。
gn-deps-debugging
25kエージェントが、GNのビルドファイルにある依存関係の不足や誤りによるビルドエラーを、広すぎる不要な依存関係を追加せずに直せるよう支援します。
java-memory-leaks
25kエージェントが、LeakCanaryのリークレポートを読んで、Androidアプリの Javaのメモリリークを見つけ、修正できるよう支援します。
jni-type-conversion
25kエージェントが、Androidのコードで、手作業によるJavaからC++への変換のコードを、より簡単な@JniTypeアノテーションに置き換えられるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。