본문으로 건너뛰기
Skillpedia
일반 코딩25k · #10064

trace-analysis

하는 일

이 스킬은 추적 파일을 분석해 앱의 느리거나 멈춘 부분의 원인을 찾는 방법을 AI에 보여 줍니다. UI 버벅임 같은 성능 문제를 조사하는 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓추적 파일에서 메인 스레드가 막혔거나 인터페이스가 느리게 느껴질 때.
  • ✓대기 중인 스레드를 그 스레드를 깨운 스레드까지 거슬러 추적해야 할 때.
  • ✓잠자거나 막힌 스레드가 무엇을 기다리고 있었는지 보고 싶을 때.

스킬 링크

https://github.com/chromium/chromium/blob/main/agents/skills/trace-analysis/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/chromium/chromium/blob/main/agents/skills/trace-analysis/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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):

  1. 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.
  2. 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_utid and waker_id columns in the thread_state table to find the hard waker thread that moved the target from a sleeping to a runnable state.
  3. Look at syscalls to understand why a thread is not runnable: If a thread is listed as Sleeping or Blocked (and not Runnable), look at recorded syscalls (such as SYS_futex) to understand what operation or system lock it was waiting for. This adds context on what exact kernel blocker stalled the thread.
  4. Trace cross-process flows (IPC/Binder): If a thread was woken by system_server or another process (like Play Store's com.android.vending), find out what service or operation was being called or completed (e.g. searching for unbindServiceLocked or onAppUpdateInfo in slice or args table). Using waker_utid to 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.
  5. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬