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.
자주 묻는 질문
추적 파일이란 무엇인가요?
프로그램의 각 부분이 시간에 따라 무엇을 하고 있었는지 기록한 파일입니다. 느린 지점을 찾는 데 도움이 됩니다.
부모 호출만 보면 안 되나요?
부모 호출은 한 스레드의 경로만 보여 줍니다. 원인이 다른 스레드에서 올 수 있으므로 이 스킬은 깨우기 연결을 따라갑니다.
특별한 도구가 필요한가요?
스킬은 추적 데이터에 대한 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 주석으로 바꾸도록 돕습니다.