trace-analysis
यह क्या करती है
यह स्किल आपके AI को trace फ़ाइलों का विश्लेषण करके ऐप के धीमे या जमे हुए हिस्सों का कारण खोजना दिखाती है। यह उन इंजीनियरों के लिए है जो UI jank जैसी प्रदर्शन समस्याओं की जाँच करते हैं।
कब इस्तेमाल करें
- ✓जब trace फ़ाइल दिखाए कि मुख्य थ्रेड रुका था या इंटरफ़ेस धीमा लगा।
- ✓जब किसी प्रतीक्षा करते थ्रेड को उस थ्रेड तक वापस ट्रेस करना हो जिसने उसे जगाया।
- ✓जब आपको देखना है कि सोया या रुका हुआ थ्रेड किसका इंतज़ार कर रहा था।
Skill का लिंक
https://github.com/chromium/chromium/blob/main/agents/skills/trace-analysis/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा ऐप एक पल के लिए जम जाता है। क्या आप यह trace फ़ाइल देखकर बता सकते हैं कि किस थ्रेड ने देरी की?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI देखता है कि कौन सा थ्रेड प्रतीक्षा कर रहा था, और wake-up रिकॉर्ड का पालन करके वह थ्रेड खोजता है जिसने उसे छोड़ा। वह यह भी जाँचता है कि प्रतीक्षा करता थ्रेड किस system call पर रुका था।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
trace फ़ाइल क्या है?
trace फ़ाइल रिकॉर्ड करती है कि किसी प्रोग्राम का हर हिस्सा समय के साथ क्या कर रहा था। इससे धीमे हिस्से खोजने में मदद मिलती है।
क्या केवल parent calls देखना काफ़ी नहीं?
Parent calls केवल एक थ्रेड पर रास्ता दिखाते हैं। कारण दूसरे थ्रेड से आ सकता है, इसलिए स्किल wake-up लिंक का पालन करती है।
क्या इसके लिए खास टूल चाहिए?
स्किल trace डेटा पर SQL क्वेरी का ज़िक्र करती है। उन्हें चलाने के लिए आपके AI को trace विश्लेषण टूल तक पहुँच चाहिए।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
fuzzing
25kयह आपके एजेंट को फ़ज़ टेस्ट लिखने में मदद करती है, जो कोड में बहुत से यादृच्छिक इनपुट डालकर C++ कोड में क्रैश और बग खोजते हैं।
gn-deps-debugging
25kयह आपके एजेंट को GN build फ़ाइलों में गायब या गलत निर्भरताओं से होने वाली build त्रुटियाँ ठीक करने में मदद करती है, बिना बड़ी और अनावश्यक निर्भरताएँ जोड़े।
java-memory-leaks
25kयह आपके एजेंट को LeakCanary की लीक रिपोर्ट पढ़कर Android ऐप्स में Java मेमोरी लीक खोजने और ठीक करने में मदद करती है।
jni-type-conversion
25kयह आपके एजेंट को Android कोड में हाथ से लिखे Java-से-C++ रूपांतरण कोड की जगह सरल @JniType annotations लगाने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।