Aller au contenu
Skillpedia
Programmation générale25k · #10064

trace-analysis

Ce qu’il fait

Cette compétence montre à votre IA comment analyser les fichiers de trace pour trouver la cause des parties lentes ou gelées d'une application. Elle s'adresse aux ingénieurs qui étudient des problèmes de performance, comme les saccades de l'interface.

Quand l’utiliser

  • ✓Quand un fichier de trace montre que le thread principal était bloqué ou que l'interface semblait lente.
  • ✓Quand un thread en attente doit être remonté jusqu'au thread qui l'a réveillé.
  • ✓Quand vous devez voir ce qu'attendait un thread endormi ou bloqué.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/chromium/chromium/blob/main/agents/skills/trace-analysis/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Mon application se fige un instant. Pouvez-vous examiner ce fichier de trace et me dire quel thread a causé le retard ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'IA observe quel thread attendait et suit les enregistrements de réveil pour trouver le thread qui l'a libéré. Elle vérifie aussi les appels système pour voir sur quoi le thread en attente était bloqué.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.

Questions fréquentes

Qu'est-ce qu'un fichier de trace ?

Un fichier de trace enregistre ce que chaque partie d'un programme faisait au fil du temps. Il aide à repérer les points lents.

Pourquoi ne pas simplement regarder les appels parents ?

Les appels parents montrent seulement le chemin sur un thread. La cause peut venir d'un autre thread ; la compétence suit donc les liens de réveil.

Faut-il des outils spéciaux ?

La compétence mentionne des requêtes SQL sur les données de trace. Votre IA peut avoir besoin d'accéder à l'outil d'analyse de traces pour les exécuter.

Détails

Description originale de l’auteur

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

repo: chromium/chromium

Popularité

Étoiles GitHub
25k
Position au classement
#10064
Licence
BSD-3-Clause
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires