Logo: J6 Ucp Perfetto Trace Analysis

J6 Ucp Perfetto Trace Analysis

Organisatioun
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.

Iwwersiicht

EditeurHorizonRobotics
RepositoryOE-Skills
Skill-Nummj6-ucp-perfetto-trace-analysis
Stären
28
Forks
4
Matgeliwwert Dateien
8
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 8 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    HorizonRobotics huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill J6 Ucp Perfetto Trace Analysis an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/HorizonRobotics/OE-Skills/tree/main/horizon/skills/ucp/j6-ucp-perfetto-trace-analysis
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert J6 Ucp Perfetto Trace Analysis an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet J6 Ucp Perfetto Trace Analysis automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass J6 Ucp Perfetto Trace Analysis net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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...

Firwat J6 Ucp Perfetto Trace Analysis op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. J6 Ucp Perfetto Trace Analysis besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech J6 Ucp Perfetto Trace Analysis an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/HorizonRobotics/OE-Skills/tree/main/horizon/skills/ucp/j6-ucp-perfetto-trace-analysis an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen J6 Ucp Perfetto Trace Analysis benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat J6 Ucp Perfetto Trace Analysis benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir J6 Ucp Perfetto Trace Analysis domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill J6 Ucp Perfetto Trace Analysis gratis?

Jo. HorizonRobotics huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇