perfetto-tracing

perfetto-tracing is a skill for Claude Code from jack1590/RokuMCP. It costs 71 tokens per session (639 once invoked), scanned A, original, MIT.

A tool for recording and examining Perfetto traces from Roku devices. Perfetto traces are timelines of system activity that can show where an app spends time.

In plain words
What is it for?
Use it to capture a trace, investigate a performance slowdown, or compare two traces.
Why use it?
It helps identify dropped frames, expensive screen rendering, excessive event notifications, timing problems, and thread-related issues.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the roku-mcp plugin — 9 skills, 1 MCP server shipped together

Good fit Use it to capture a trace, investigate a performance slowdown, or compare two traces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jack1590/rokumcp/perfetto-tracing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jack1590/RokuMCP --skill perfetto-tracing
Clone the repo
git clone --depth 1 https://github.com/jack1590/RokuMCP

Made for: Claude Code.

Or install roku-mcp, the plugin that ships this one along with the rest of its 9 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for perfetto-tracing

README.md
[![agentmods](https://agentmods.dev/badge/skills/jack1590/rokumcp/perfetto-tracing/github.svg)](https://agentmods.dev/skills/jack1590/rokumcp/perfetto-tracing)
Your own site
<a href="https://agentmods.dev/skills/jack1590/rokumcp/perfetto-tracing"><img src="https://agentmods.dev/badge/skills/jack1590/rokumcp/perfetto-tracing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for perfetto-tracing

Your own site · 80×15
<a href="https://agentmods.dev/skills/jack1590/rokumcp/perfetto-tracing"><img src="https://agentmods.dev/badge/skills/jack1590/rokumcp/perfetto-tracing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 639 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.00639
Opus 5.5 $0.00028 $0.00256
Sonnet 5.5 $0.00014 $0.00128
Haiku 4.5 $0.00007 $0.00064

Measured 2d ago against content hash 9f8a86700b1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

perfetto-tracing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/perfetto-tracing/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trace frame drops and slow UI

Perfetto needs Roku OS 15.1+ on a LAN device. On a Cloud Device or older OS, use the bsprof-profiling skill.

Steps

The order is strict; skipping a step gives an empty trace.

  1. roku_perfetto_enable (channel dev by default).
  2. Relaunch the channel: roku_deploy, or roku_launch appId=dev restart=true, then roku_sleep 3000 to 5000 ms.
  3. roku_perfetto_start.
  4. Reproduce the slow interaction (roku_keypress_sequence, etc.).
  5. roku_perfetto_stop: returns the .trace path, size and duration.
  6. analyze_perfetto mode=summary, then the mode the summary points to: frame-drops, key-events, observers, rendezvous, set-fields, threads.
  7. query_perfetto for custom PerfettoSQL; compare_perfetto to diff two traces. Traces also open at ui.perfetto.dev.

In code mode (roku_run)

await roku.perfetto.enable({});
await roku.device.launch({ appId: 'dev', restart: true });
await roku.device.sleep({ durationMs: 4000 });
await roku.perfetto.start({ outDir: 'traces' });
await roku.input.keys({ keys: ['Down', 'Down', 'Down', 'Right'], delayMs: 200 });
const trace = await roku.perfetto.stop();
return await roku.perfetto.analyze({ filePath: trace.filePath, mode: 'frame-drops', top: 10 });

In roku_run, outDir is under roku-run/. Recording keeps state between calls, so the CLI cannot record; it can analyze (rokuctl perfetto.analyze <file> summary).

When it goes wrong

Symptom Cause Fix
Empty trace Channel not relaunched after enable Follow the order: enable, relaunch, start
"not supported on Roku Cloud Emulator devices" Perfetto needs direct LAN access Use a LAN device, or bsprof-profiling
"No active Perfetto recording" Stop without start, or the server restarted Start again
First analysis is slow trace_processor downloads on first use Expected once
roku_run error output_too_large The report is over 100 KiB Lower top, or roku.fs.write('trace-report.json', JSON.stringify(report)) and return the path

Read the full file on GitHub · 45 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +26 lines · +6 tokens per session 9f8a86700b1c
  2. 4d ago Changed 76667166a56f
  3. 1mo ago First seen · 19 lines · 65 tokens per session scan A d25ce82e5a7f

Subscribe to this mod's changes

perfetto-tracing is a skill published in the GitHub repository jack1590/RokuMCP (6 stars, last pushed 3d ago), licensed MIT. It adds 71 tokens to every session and 639 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.

Related

perfetto-tracing compared with skills from other repositories

perfetto-tracing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
perfetto-tracingjack1590/RokuMCPSkill63d agoMITA71Claude Code
gke-ai-troubleshooting-tpu-dynamic-slices-monitoringgoogle/skillsSkill25ktodayApache-2.0A107Claude Code, Codex
gke-ai-troubleshooting-tpu-vbar-oomgoogle/skillsSkill25ktodayApache-2.0A125Claude Code, Codex
doca-flowNVIDIA/skillsSkill4.2k2d agoApache-2.0A224Claude Code
competition-firmware-layoutzhaoxuya520/reverse-skillSkill45k16d agoMITA110Codex
diagnose-driver-installNVIDIA/deepopsSkill1.5k3d agoBSD-3-ClauseA47Claude Code, Codex
catc-troubleshootautomateyournetwork/netclawSkill739todayApache-2.0A114Claude Code