Логотип J6 Ucp Perfetto Trace Analysis

J6 Ucp Perfetto Trace Analysis

Організація
HorizonRobotics
j6-ucp-perfetto-trace-analysis

Use this skill whenever the user wants to quickly locate, diagnose, or analyze likely performance bottlenecks in a UCP model inference Perfetto trace. Trigger on requests about UCP inference traces, `.pftrace` files, inference latency, slow inference, pipeline stalls, CPU/BPU gaps, OpInfer delays, dispatch or response delay, low effective occupancy, critical-path investigation, or trace-based performance triage in the UCP inference path. This skill is specialized for UCP / UCP-like inference-chain performance analysis and fast bottleneck localization, not generic Perfetto profiling unrelated to UCP inference.

Огляд

ВидавецьHorizonRobotics
РепозиторійOE-Skills
Назва навичкиj6-ucp-perfetto-trace-analysis
Зірки
28
Форки
4
Файли в пакеті
8
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 8

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: HorizonRobotics. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ J6 Ucp Perfetto Trace Analysis у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/HorizonRobotics/OE-Skills/tree/main/horizon/skills/ucp/j6-ucp-perfetto-trace-analysis
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HorizonRobotics/OE-Skills.git /tmp/OE-Skills
mkdir -p .claude/skills
cp -r /tmp/OE-Skills/horizon/skills/ucp/j6-ucp-perfetto-trace-analysis .claude/skills/j6-ucp-perfetto-trace-analysis
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку J6 Ucp Perfetto Trace Analysis в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку J6 Ucp Perfetto Trace Analysis, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка J6 Ucp Perfetto Trace Analysis не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

UCP Perfetto Inference Analysis

Version: v1.1.0

Use this skill for UCP model inference Perfetto traces when the goal is to quickly find, triage, and explain likely performance issues in the inference path.

It is intentionally scoped: the skill is optimized for fast bottleneck localization inside UCP inference traces, then maps that work onto a fixed set of validated analysis directions so the output stays repeatable instead of drifting into generic Perfetto exploration.

What this skill is for

Use this skill when the user wants to:

  • analyze a UCP inference .pftrace / Perfetto trace
  • quickly find likely bottlenecks, hotspots, or latency contributors in the UCP inference path
  • investigate slow inference, critical-path delay, CPU/BPU handoff gaps, OpInfer delay, dispatch / response delay, or low effective occupancy
  • run one of the validated UCP bottleneck directions in this skill
  • generate the default four-direction Markdown report

Do not use this skill for:

  • generic Perfetto profiling with no UCP inference focus
  • arbitrary performance investigations outside UCP inference
  • UI-only trace browsing with no SQL, filtering, or scripted analysis
  • non-UCP CPU profiling or unrelated workloads

Supported directions

These four directions are the entire scope of the skill’s default report workflow:

  • UCP Critical Path Slice Analysis (Excluding BPU and CPU Operators)
  • UCP CPU Operator Slice Analysis
  • BPU flow dispatch / response delay
  • Corrected BPU effective occupancy

Internal CLI values used by the bundled script:

  • all (default report mode)
  • dnn_name
  • opinfer_desc_flow
  • bpu_flow_delay
  • bpu_effective_occupancy

Read references/directions.md for the exact rule definitions, thresholds, grouping semantics, and output expectations.

Default workflow

The bundled analyzer is scripts/analyze_trace.py. Prefer it before writing new automation.

Default behavior:

  1. Probe the trace schema and relevant argument structure.
  2. Run all four validated directions.
  3. Export one Markdown report.
  4. Return the report path and a short completion note.
  5. Stop unless the user explicitly asks for deeper follow-up analysis.

Do not proactively ask whether the user wants deeper analysis after the default report is complete.

Use single-direction mode only when the user explicitly asks for focused/manual output instead of the full report.

Input and clarification rules

Minimum required input:

  • a trace file path, or a clear way to access the trace

Ask only when the answer would materially change results inside the supported directions, for example:

  • target direction is unclear
  • threshold semantics are unclear
  • flow-position semantics are unclear
  • relevant package / process / thread / time window is necessary to scope the trace safely
  • hardware-pool semantics are unclear and would change occupancy results

Do not turn intake into a checklist when the user has already specified a clear target.

Language rule

If the desired conclusion language is not already clear, ask whether the final interpretation should be in Chinese or English.

This applies to the conclusion text. SQL, identifiers, and stable field names do not need localization unless the user explicitly asks for it.

Execution guidance

Probe first. Do not assume args layout, flow shape, thread-state values, or hardware-pool semantics before checking the actual trace.

Prefer direct SQL when the rule is simple. Prefer Python trace_processor when the analysis needs multiple probe stages, custom interval logic, occupancy reconstruction, or reusable automation.

Keep the work inside the four supported directions. Do not invent new analysis paths unless the skill itself is being intentionally extended.

Output contract

The default artifact is a single Markdown report covering all four directions.

The terminal should only provide a concise recap of what was exported.

Do not use the default completion message to prompt for extra analysis that falls outside the skill’s normal scope.

For each direction, the report should include:

  • a rule description
  • a grouped summary table
  • an offender table when applicable
  • a short conclusion paragraph
  • a clear note when the direction is skipped or has no anomalies

Always include a fast locate_sql statement in detailed offender output.

Detailed reporting rules live in references/output.md.

Verification expectations

Before finalizing analysis:

  • confirm the actual args keys and value types used in this trace
  • confirm relevant track.name and flow structure in this trace
  • sanity-check representative offenders against raw timestamps and durations
  • reject implausible results and re-check ownership or grouping semantics before reporting

Reference files

  • references/setup.md — installation, binary fallback, troubleshooting
  • references/bpu_trace_setup.md — how to enable BPU Trace (hardware switch, config, and full workflow)
  • references/output.md — report-first output contract and language behavior
  • references/sql_patterns.md — reusable SQL probes and locate patterns
  • references/directions.md — exact semantics for the four supported directions
  • scripts/analyze_trace.py — bundled reusable analyzer

Example invocation

bash
python scripts/analyze_trace.py /path/to/trace.pftrace
python scripts/analyze_trace.py /path/to/trace.pftrace --analysis-direction dnn_name
python scripts/analyze_trace.py /path/to/trace.pftrace --analysis-direction opinfer_desc_flow --bottleneck-ratio-threshold 1.5 --bottleneck-diff-ms 1
python scripts/analyze_trace.py /path/to/trace.pftrace --analysis-direction bpu_flow_delay
python scripts/analyze_trace.py /path/to/trace.pftrace --analysis-direction bpu_effective_occupancy

When to read bpu_trace_setup.md

Read references/bpu_trace_setup.md and relay its content to the user when either of these occurs:

  1. Missing BPU trace data detected during analysis — If the bpu_flow_delay or bpu_effective_occupancy direction finds the bpu_trace table empty or absent, the trace file was captured without BPU trace enabled. Tell the user that BPU trace data is missing, explain that BPU trace requires separate enabling steps, and provide the setup instructions from references/bpu_trace_setup.md so they can recapture the trace with BPU data.

  2. User asks how to enable or capture BPU trace — If the user asks about enabling BPU trace, how to capture BPU data, or why BPU-related analysis is unavailable, read and relay the setup guide from references/bpu_trace_setup.md.

Do not proactively push BPU trace setup instructions when the trace already contains valid BPU data, or when the user's question is unrelated to BPU trace collection.

Scope boundary

The normal completion condition for this skill is:

  • all four validated directions have been evaluated, or the requested supported direction has been completed
  • the Markdown report has been generated when using default report mode
  • the result path or focused output has been returned to the user

Further iterative investigation is outside the default contract unless the user explicitly asks for follow-up work.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ J6 Ucp Perfetto Trace Analysis?

Use this skill whenever the user wants to quickly locate, diagnose, or analyze likely performance bottlenecks in a UCP model inference Perfetto trace. Trigger on requests about UCP inference traces, `.pftrace` files, inference latency, slow inference, pipeline stalls, CPU/BPU gaps, OpInfer delays, dispatch or response delay, low effective occupancy, critical-path investigation, or trace-based performance triage in the UCP inference path. This skill is specialized for UCP / UCP-like inference-chain performance analysis and fast bottleneck localization, not generic Perfetto profiling unrelate...

Навіщо використовувати J6 Ucp Perfetto Trace Analysis у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. J6 Ucp Perfetto Trace Analysis — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити J6 Ucp Perfetto Trace Analysis у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/HorizonRobotics/OE-Skills/tree/main/horizon/skills/ucp/j6-ucp-perfetto-trace-analysis. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати J6 Ucp Perfetto Trace Analysis?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати J6 Ucp Perfetto Trace Analysis?

Зі скількома забажаєте. У TypingMind ви можете використовувати J6 Ucp Perfetto Trace Analysis із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ J6 Ucp Perfetto Trace Analysis?

Так. На GitHub цю навичку публікує HorizonRobotics за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇