Saltar al contenido
Skillpedia
Programación general25 mil · #10064

trace-analysis

Qué hace

Esta skill enseña a tu IA a analizar archivos de traza para encontrar la causa de partes lentas o congeladas de una app. Está pensada para ingenieros que investigan problemas de rendimiento como el jank de la interfaz.

Cuándo usarla

  • ✓Cuando un archivo de traza muestra que el hilo principal estaba bloqueado o la interfaz iba lenta.
  • ✓Cuando hay que rastrear un hilo en espera hasta el hilo que lo despertó.
  • ✓Cuando necesitas ver qué esperaba un hilo dormido o bloqueado.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/chromium/chromium/blob/main/agents/skills/trace-analysis/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi app se congela un momento. ¿Puedes mirar este archivo de traza y decirme qué hilo causó el retraso?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La IA mira qué hilo estaba esperando y sigue los registros de despertar para encontrar el hilo que lo liberó. También revisa las llamadas al sistema para ver en qué estaba bloqueado el hilo en espera.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.

Preguntas frecuentes

¿Qué es un archivo de traza?

Un archivo de traza registra lo que hacía cada parte de un programa a lo largo del tiempo, lo que ayuda a encontrar puntos lentos.

¿Por qué no mirar solo las llamadas padre?

Las llamadas padre solo muestran el camino en un hilo. La causa puede venir de otro hilo, así que la skill sigue los enlaces de despertar.

¿Necesita herramientas especiales?

La skill menciona consultas SQL sobre datos de traza. Tu IA puede necesitar acceso a la herramienta de análisis de trazas para ejecutarlas.

Detalles

Descripción original del autor

Skill for analyzing trace files and finding hard causal links across threads and processes (using waker_utid).

repo: chromium/chromium

Popularidad

Estrellas en GitHub
25 mil
Posición en el ranking
#10064
Licencia
BSD-3-Clause
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas